OttoStruve / muler

A Python package for working with pipeline-produced spectra from IGRINS, HPF, and Keck NIRSPEC
https://muler.readthedocs.io
MIT License
15 stars 9 forks source link

IGRINSSpectrumList Note #151

Open ericasaw opened 10 months ago

ericasaw commented 10 months ago

Just a reminder for us later, IGRINSSpectrumList in the current main version of muler v.0.4.0 doesnt allow you to pass in an array of fluxes and wavelengths to construct an IGRINSSpectrumList object. This should be fixed in the newest add_flux_calibration branch--but just a note for us later

gully commented 10 months ago

On tradeoff with this directly-populate approach is that the IGRINSSpectrumList will lack metadata associated with the spectrum (such as time stamps, RA, and Dec). So certain opertations, like barycentric_correct won't work. That's fine, we'll simply want to anticipate such scenarios by raising informative error messages when users attempt to call IGRINSSpectrumList when such metadata is not present.