-
Notifications
You must be signed in to change notification settings - Fork 12
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
Conversation
This also adds a task docstring.
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.
Looks good; comments are mostly requests for clarification and/or nitpicks which you can deal with as you see fit.
doc/lsst.meas.algorithms/tasks/lsst.meas.algorithms.NormalizedCalibrationFluxTask.rst
Outdated
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(): |
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.
I think this can be removed now that the class has a docstring.
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.
9078e89
to
88eda44
Compare
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).
88eda44
to
d040808
Compare
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.