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-31880: Update to version 3.9.0 with new reference star plots and cuts. #29

Merged
merged 15 commits into from May 25, 2022

Conversation

erykoff
Copy link
Collaborator

@erykoff erykoff commented May 22, 2022

No description provided.

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."""

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...

try:
self.compExpRefOffset = np.atleast_1d(inParams['COMPEXPREFOFFSET'][0])
except:
# FIXME

Choose a reason for hiding this comment

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

How/when?

@@ -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"

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...

@@ -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)

Choose a reason for hiding this comment

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

!!

@erykoff erykoff merged commit e5db16c into lsst-dev May 25, 2022
@erykoff erykoff deleted the tickets/DM-31880 branch May 25, 2022 22:52
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