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-34770: Use PSF position explicitly to compute PSF size #209

Merged
merged 1 commit into from May 18, 2022

Conversation

arunkannawadi
Copy link
Member

No description provided.

@@ -67,7 +67,7 @@ void LocalBackgroundAlgorithm::measure(afw::table::SourceRecord& measRecord,
if (!psf) {
throw LSST_EXCEPT(MeasurementError, NO_PSF.doc, NO_PSF.number);
}
float const psfSigma = psf->computeShape().getDeterminantRadius();
float const psfSigma = psf->computeShape(psf->getAveragePosition()).getDeterminantRadius();
Copy link
Contributor

Choose a reason for hiding this comment

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

This should use the position at the center of the footprint. Though this will change the behavior, I believe the current behavior is incorrect.

@@ -67,7 +67,7 @@ void LocalBackgroundAlgorithm::measure(afw::table::SourceRecord& measRecord,
if (!psf) {
throw LSST_EXCEPT(MeasurementError, NO_PSF.doc, NO_PSF.number);
}
float const psfSigma = psf->computeShape().getDeterminantRadius();
float const psfSigma = psf->computeShape(psf->getAveragePosition()).getDeterminantRadius();
Copy link
Contributor

Choose a reason for hiding this comment

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

This should use the position at the center of the footprint. Though this will change the behavior, I believe the current behavior is incorrect.

Copy link
Member Author

Choose a reason for hiding this comment

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

You're absolutely right.

@arunkannawadi arunkannawadi merged commit 7820879 into main May 18, 2022
@arunkannawadi arunkannawadi deleted the tickets/DM-34770 branch May 18, 2022 04:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants