Skip to content
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

DM-20163: Use PixelAreaBoundedField in fgcmcal calibration outputs #9

Merged
merged 4 commits into from Jan 10, 2020

Conversation

erykoff
Copy link
Collaborator

@erykoff erykoff commented Jan 7, 2020

Updates to fgcm to support decomposition of wcs jacobian and superstar/gray components for fgcmcal.

Input magnitudes are now sanitized and flagged if they are bad, so that nans
don't spoil everything.  The input airmass of all observations is checked
to confirm that they are within range of the LUT.  Otherwise, the LUT code
will not work properly.  When "fgcmcal" (lsst) output is selected all
zeropoints are possibly variable and flux-based, allowing better composition
of constituent parts.
Copy link

@jmeyers314 jmeyers314 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@@ -116,6 +116,8 @@ def __init__(self,fgcmConfig):

self.seeingSubExposure = fgcmConfig.seeingSubExposure

self.secZenithRange = 1. / np.cos(np.radians(fgcmConfig.zenithRange))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel free to ignore, but I've always preferred np.deg2rad() over np.radians since then in the input units are clear.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll make this change in the next version of fgcm. I don't know why I'm using radians here, since I do usually use deg2rad.

@erykoff erykoff merged commit eb7864d into lsst-dev Jan 10, 2020
@erykoff erykoff deleted the tickets/DM-20163 branch January 10, 2020 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants