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-47919: Add configuration for cutting visits from the fit by PSF FWHM #133

Merged
merged 2 commits into from
Dec 7, 2024

Conversation

erykoff
Copy link
Contributor

@erykoff erykoff commented Dec 5, 2024

Visits that have large PSF FWHM (typically above what is considered for coadds) can now be configured to be calibrated, but skipped in the full model fit. This way bad visits won't bias the fit for the good visits, and there is less outlier rejection work. Default config is not to do any cutting at all. Note that this can be configured per-band to future proof in case we decide to go that route in our coadd selection.

When converting from psfSigma to psfFwhm the camera average pixel scale is used if the input visit tables do not have pixelScale. This is only relevant for the old test data in testdata_jointcal.

This changes the field used for computing empirical depth terms in fgcm from
the psfSigma to the psfFwhm and enables cuts on psfFwhm.
Copy link
Contributor

@laurenam laurenam left a comment

Choose a reason for hiding this comment

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

Commit message too long. Suggest "Add new configuration" -> "Add config"?

# Compute the median psf sigma and fwhm if possible.
if 'pixelScale' in summary.schema:
# This is not available in the older test summaries
pixelScales = summary['pixelScale']
Copy link
Contributor

Choose a reason for hiding this comment

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

Awesome that you are using the as-measured pixelScale...it could start to really matter for the full camera!

keytype=str,
itemtype=float,
default={},
)
Copy link
Contributor

Choose a reason for hiding this comment

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

Lovin' the per-band dict ❤️

I don't understand the second sentence...

@erykoff erykoff merged commit cab2d05 into main Dec 7, 2024
2 checks passed
@erykoff erykoff deleted the tickets/DM-47919 branch December 7, 2024 00:01
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.

2 participants