pre_nirspec_spectrum2d_reader

mosviz.loaders.pre_nirspec_spectrum2d_reader(file_name)[source]

Data loader for simulated NIRSpec 2D spectrum.

This function extracts the DATA, QUALITY, and VAR extensions and returns them as a glue Data object.

It then uses the header keywords of the DATA extension to detemine the wavelengths.