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

make source of Kron radius configurable for forced mode #12

Merged
merged 1 commit into from
Dec 20, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 4 additions & 1 deletion include/lsst/meas/extensions/photometryKron.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ class KronFluxControl {
"Use the Footprint size as part of initial estimate of Kron radius");
LSST_CONTROL_FIELD(smoothingSigma, double,
"Smooth image with N(0, smoothingSigma^2) Gaussian while estimating R_K");
LSST_CONTROL_FIELD(refRadiusName, std::string,
"Name of field specifying reference Kron radius for forced measurement");

KronFluxControl() :
fixed(false),
Expand All @@ -72,7 +74,8 @@ class KronFluxControl {
minimumRadius(0.0),
enforceMinimumRadius(true),
useFootprintRadius(false),
smoothingSigma(-1.0)
smoothingSigma(-1.0),
refRadiusName("ext_photometryKron_KronFlux_radius")
{}
};

Expand Down
2 changes: 1 addition & 1 deletion src/KronPhotometry.cc
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ void KronFluxAlgorithm::_applyForced(
afw::geom::AffineTransform const & refToMeas
) const
{
float const radius = reference.get(reference.getSchema().find<float>(_name + "_radius").key);
float const radius = reference.get(reference.getSchema().find<float>(_ctrl.refRadiusName).key);
KronAperture const aperture(reference, refToMeas, radius);
_applyAperture(source, exposure, aperture);
if (exposure.getPsf()) {
Expand Down