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

Merged
merged 3 commits into from
Jan 15, 2025
Merged

Conversation

abudlong
Copy link
Contributor

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.

@abudlong abudlong force-pushed the tickets/DM-42979 branch 3 times, most recently from d116f3b to 03f5e07 Compare November 6, 2024 17:45
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.

@abudlong abudlong force-pushed the tickets/DM-42979 branch 6 times, most recently from c173305 to 532aae3 Compare December 22, 2024 17:19
@abudlong abudlong requested a review from erykoff December 22, 2024 22:25
isullivan and others added 3 commits January 14, 2025 07:43
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.
@abudlong abudlong merged commit afaee74 into main Jan 15, 2025
2 checks passed
@abudlong abudlong deleted the tickets/DM-42979 branch January 15, 2025 01:09
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.

4 participants