sdss / lvmdrp

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

Implementing reduction sequence for twilights #48

Closed ajmejia closed 6 months ago

ajmejia commented 8 months ago

This branch implements the full reduction sequence of the twilight sequence in the following way:

The reduction of the twillight sequence is run as follows:

drp twilight -e EXP1,EXP2,...,EXPN

or

drp twilight -e EXP1,EXPN

to expand exposure numbers into a list [EXP1,EXP2,...,EXPN]. You can also pass multiple exposure number ranges

drp twilight -e EXP1,EXPN -e EXP1,EXPM

See drp twilight --help for more options

During the reduction of twilights some QA plots are produced, namely: *twilight_continuum_fit, *twilight_flatfielded and *twilight_fiberflat_fit; to show the iterative continuum fitting, the resulting flatfielded twilight and the fiberflat, respectively.

ajmejia commented 6 months ago

There's still a remaining 3-5% systematic error when flatfielding twilight exposures using the master fiberflats created. This is shown in the following plot:

image

These systematic errors seem to be correlated with the mean count level as shown in this plot:

image

Where the colors mean the same as in the previous plot. We will fix this issue in a different PR.