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-42979: Use calibFlux for source selector #983

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

abudlong
Copy link

No description provided.

Comment on lines 374 to 375
self.star_selector["science"].signalToNoise.fluxField = "slot_CalibFlux_instFlux"
self.star_selector["science"].signalToNoise.errField = "slot_CalibFlux_instFluxErr"
Copy link
Contributor

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?

Copy link
Contributor

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.

isullivan and others added 2 commits November 6, 2024 09:45
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.
Copy link
Contributor

@isullivan isullivan left a 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants