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-31880: Update to version 3.9.0 with new reference star plots and cuts. #29
Conversation
Add reference star color term residual plots.
Add reference residual color plots, reference color cuts, and per-exposure offset option.
fgcm/fgcmGray.py
Outdated
@@ -1227,6 +1229,125 @@ def computeCCDAndExpDeltaMagBkg(self): | |||
self.fgcmLog.info('Computed ccdDeltaBkg and expDeltaBkg in %.2f seconds.' % | |||
(time.time() - startTime)) | |||
|
|||
def computeExposureReferenceOffsets(self): | |||
"""Compute exposure reference offsets.""" |
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.
Future you might appreciate a more detailed description here...
fgcm/fgcmParameters.py
Outdated
try: | ||
self.compExpRefOffset = np.atleast_1d(inParams['COMPEXPREFOFFSET'][0]) | ||
except: | ||
# FIXME |
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.
How/when?
fgcm/fgcmStars.py
Outdated
@@ -1532,6 +1548,7 @@ def performColorCuts(self): | |||
|
|||
self.fgcmLog.info('Flag %d stars of %d with BAD_COLOR' % (bad.size,self.nStars)) | |||
|
|||
# This config says "apply standard color cuts to reference stars" |
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.
Don't know what "standard" means here...
fgcm/fgcmChisq.py
Outdated
@@ -620,6 +621,12 @@ def _magWorker(self, goodStarsAndObs): | |||
# Regular non-sub-ccd | |||
obsMagGO[ok] += ccdGray[obsExpIndexGO[ok], obsCCDIndexGO[ok]] | |||
|
|||
if self.useExposureReferenceOffset: | |||
# Apply the reference offsets as well. | |||
# (There will probably be a sign error) |
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.
!!
Fix colorterm labels and other improvements.
No description provided.