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-34628: Variance underestimated in patch overlaps in templates #234

Merged
merged 1 commit into from Nov 10, 2022

Conversation

isullivan
Copy link
Contributor

No description provided.

@yalsayyad yalsayyad changed the title DM-34628: Fix template variance plane overlap bug DM-34628: Variance underestimated in patch overlaps in templates Nov 3, 2022
@@ -571,7 +571,7 @@ def run(self, coaddExposures, bbox, wcs, dataIds, **kwargs):
statsCtrl = afwMath.StatisticsControl()
statsCtrl.setNanSafe(True)
statsCtrl.setWeighted(True)
statsCtrl.setCalcErrorFromInputVariance(True)
statsCtrl.setCalcErrorMosiacMode(True)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
statsCtrl.setCalcErrorMosiacMode(True)
statsCtrl.setCalcErrorMosaicMode(True)

@yalsayyad yalsayyad force-pushed the tickets/DM-34628 branch 2 times, most recently from b92460f to bb6e703 Compare November 9, 2022 01:52
While mosaicking coadds to make templates, use the mean
variances of neighboring coadds to construct the template
variance plane in the patch overlap region. The
coadds have had identical visits contributing to them
and are approximately 100% correlated.

While they may not be exactly 100% correlated (they've had different
backgrounds applied) they are much much closer to 100% correlated
than 0% like calcErrorFromInputVariance assumes.
@yalsayyad yalsayyad merged commit 1e9febc into main Nov 10, 2022
@yalsayyad yalsayyad deleted the tickets/DM-34628 branch November 10, 2022 03:02
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.

None yet

2 participants