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

Add flexure correction? #54

Closed kfkaplan closed 1 year ago

kfkaplan commented 3 years ago

Is there any way to shift and resample a spectrum in pixel space instead wavelength space? I need this for flexure correction for IGRINS data.

gully commented 3 years ago

Hi @kfkaplan yes, there is a way to access the pixel coordinates with specutils: See cell [18] in this tutorial for an example that's probably not the most logical route, but could suffice as a workaround. You might look in specutils for alternative routes to access that pixel coordinate spectral_axis representation:

https://muler.readthedocs.io/en/latest/tutorials/Combining_uncertainties_with_specutils.html

Can you post your findings if you consult the specutils documentation or Issues?

kfkaplan commented 1 year ago

@ericasaw Do the rtell files correct for flexure?

kfkaplan commented 1 year ago

I am working on adding flexure correction to the IGRINS PLP. Since this correction is done on a per-exposure basis, it must be done in the IGRINS PLP and falls outside the scope of muler, since muler works with the reduced data. Because of this, I am going to close this issue.