desihub / tutorials

DESI tutorials
BSD 3-Clause "New" or "Revised" License
43 stars 17 forks source link

add tutorial about working with Resolution HDUs #43

Open sbailey opened 4 years ago

sbailey commented 4 years ago

e.g. expand on this snippet

from desispec.interpolation import resample_flux
from desispec.resolution import Resolution
R = Resolution(spectra.resolution_data['r'][i])
txflux = R.dot(resample_flux(spectra.wave['r'], twave, tflux))
weaverba137 commented 1 year ago

@sbailey, do you know if this ever made it into a notebook?

weaverba137 commented 1 year ago

Is this important for EDR? If not, feel free to remove it from the EDR countdown project.

weaverba137 commented 1 year ago

@forero, are you aware of any existing notebooks that demonstrate resolution HDUs?

forero commented 1 year ago

@weaverba137 We have this notebook https://github.com/desihub/tutorials/blob/23.4/meetings/Dec2021/SpectroperfectionismExample.ipynb that does a basic demonstration of the concept, but it doesn't quite follow @sbailey's original idea.

forero commented 1 year ago

@sbailey Are you happy with this notebook https://github.com/desihub/tutorials/blob/23.4/meetings/Dec2021/SpectroperfectionismExample.ipynb that mentions resolution HDUs?

sbailey commented 1 year ago

@forero thanks for finding that historical notebook. Yes, that covers the topics I was thinking of for this ticket. The action item now is to make an updated version of that notebook that uses EDR data as input, and put it some place easier to find that buried under a meetings/ subdir. This might be more technical than "getting_started", but oddly we don't seem to have a directory for spectra-oriented tutorials.

forero commented 1 year ago

I haven't been able to address the issue yet. I am removing it from the EDR board for the time being.