New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stdstar correct sky and flat fiber; scale ivar #1817
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the bug fix. It does indeed improve the fit of standard stars.
I see the original code and this new version are missing the transformation to convert fiberflat wavelength from the Kitt Peak frame to the solar system barycenter. It is included in the routine fiberflat.apply_fiberflat(frame, fiberflat)
. It would be better to use directly this function here.
For the record: the reason why the results are different when using |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great. I checked the code and successfully ran std star fit for one tile and got slightly reduced rms.
This PR fixes #1810 for standard star fitting:
Testing on all exposures of 20210531, this results in a distinct improvement in the scatter of the data-model G-R colors:
The test outputs are in
/global/cfs/cdirs/desi/users/sjbailey/spectro/redux/stdstar
, which used guadalupe inputs and re-ran just the stdstar fitting step for each tile.