sdss / lvmdrp

Local Volume Mapper (LVM) Data Reduction Pipeline
BSD 3-Clause "New" or "Revised" License
2 stars 0 forks source link

FWHM extension #50

Closed kslong closed 5 months ago

kslong commented 6 months ago

Currently, in the lvmdrp (b52ad67ebe957dff406f41168c82f5fa55cffa8b) if one plots the FWHM exenension in the calibrated data for and exposure (in this case 7755), this is what one obtains.

image

Presumably the fact that one sees sharp jumps going to 0 in the minium FWHM is due to the fact that pixels marked as bad have given no FWHM. But is this really what one wants. I suggest filling these values in

ajmejia commented 6 months ago

Hi Knox, thanks for reporting this bug. In fact, the LSF or (FWHM as it is called in the files) is a polynomial model and shouldn't have masked pixels or what it seems to be absorption features. I'll track down this one to see where it its originating.

ajmejia commented 5 months ago

This issue was caused by a bad implementation of the method apply_pixelmask in the RSS class and a bug in the definition of the weights in the from_channels method of the same class.