read_spectrum

popurri.spectrum.read_spectrum(filin, inst, **kwargs)

Read spectrum from file filin.

Parameters:
filinstr

File with spectrum.

inststr

Instrument keyword.

ordcut=True

carmnir

saveordnoncut=False

carmnir

Returns:
dataspecdict

Dictionary with spectrum data.

Notes

dataspec general format (some keys might be empty/nan for some instruments): - ‘w’: Wavelength array - ‘f’: Flux array - ‘fe’: Flux error array - ‘b’: Blaze function array - ‘m’: Mask array - ‘nord’: Number of orders - ‘ords’: List of orders - ‘header’: Header dictionary - ‘w1d’: Wavelength array of the coadded 1D spectrum - ‘f1d’: Flux array of the coadded 1D spectrum - ‘fe1d’: Flux error array of the coadded 1D spectrum - ‘b1d’: Blaze function array of the coadded 1D spectrum - ‘m1d’: Mask array of the coadded 1D spectrum # TODO Change/generalise as more instruments are added