-
Notifications
You must be signed in to change notification settings - Fork 18
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-42979: Use calibFlux for source selector #983
base: main
Are you sure you want to change the base?
Conversation
self.star_selector["science"].signalToNoise.fluxField = "slot_CalibFlux_instFlux" | ||
self.star_selector["science"].signalToNoise.errField = "slot_CalibFlux_instFluxErr" |
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.
What was the default for these? I would have thought that CalibFlux
was the default, but ScienceSourceSelector defaults to PsfFlux
. That surprises me, and I wonder if we have other places that have been inadvertently using the wrong flux?
Although, you shouldn't have a negative flux if we're restricting to S/N>10, since N is always positive, no?
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.
These defaulted to PsfFlux, and none of the later source selectors apply a N/N cut. They all assume that has been taken care of by this first selector, so if a source with valid PsfFlux but negative CalibFlux makes it through this selection it gets used for photometry.
db843b0
to
517812e
Compare
517812e
to
3e1e105
Compare
224260c
to
d116f3b
Compare
This ensures that the flux used in photometric calibration is a valid value. Otherwise the PsfFlux is used for selection and slot_CalibFlux is used for calibration.
d116f3b
to
03f5e07
Compare
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.
We verified these changes fix the warning and underlying problem, and do not change the photometric calibration for LSSTComCam. More details on Jira.
No description provided.