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-38632: Add NormalizedCompensatedFluxTask and update aperture corrections. #378

Merged
merged 5 commits into from
Jun 19, 2024

Conversation

erykoff
Copy link
Contributor

@erykoff erykoff commented Jun 7, 2024

Along with the new NormalizedCompensatedFluxTask (to normalize compensated tophats and gaussians) this adds a new "median shift" to the aperture corrections that helps reduce scatter in wide field images.

Copy link
Contributor

@taranu taranu left a comment

Choose a reason for hiding this comment

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

Looks good; comments are mostly requests for clarification and/or nitpicks which you can deal with as you see fit.

python/lsst/meas/algorithms/measureApCorr.py Show resolved Hide resolved
"""
ConfigClass = MeasureApCorrConfig
_DefaultName = "measureApCorr"

def __init__(self, schema, **kwargs):
def __init__(self, schema, namesToCorrect=None, **kwargs):
"""Construct a MeasureApCorrTask

For every name in lsst.meas.base.getApCorrNameSet():
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this can be removed now that the class has a docstring.

python/lsst/meas/algorithms/normalizedCalibrationFlux.py Outdated Show resolved Hide resolved
tests/test_normalizedCalibrationFlux.py Outdated Show resolved Hide resolved
tests/test_normalizedCalibrationFlux.py Outdated Show resolved Hide resolved
tests/test_normalizedCalibrationFlux.py Show resolved Hide resolved
tests/test_normalizedCalibrationFlux.py Show resolved Hide resolved
tests/test_normalizedCalibrationFlux.py Show resolved Hide resolved
This workaround ensures that the overall offset is less susceptable to small
outliers.  This is not an ideal solution, but does help statistics until we can
get a full rethink of the aperture correction code.
@erykoff erykoff force-pushed the tickets/DM-38632 branch from 9078e89 to 88eda44 Compare June 13, 2024 18:35
erykoff added 3 commits June 18, 2024 13:37
The default normalizes the 12 pixel aperture compensated tophat flux, and the
normalization has 1 term (order 0).  The task can also be used for more
complicated mappings such as compensated gaussians (though in practice those
had unacceptable scatter).
@erykoff erykoff force-pushed the tickets/DM-38632 branch from 88eda44 to d040808 Compare June 18, 2024 20:37
@erykoff erykoff merged commit 4e26c3a into main Jun 19, 2024
2 checks passed
@erykoff erykoff deleted the tickets/DM-38632 branch June 19, 2024 05:39
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