Class KronFluxAlgorithm¶
Defined in File photometryKron.h
Inheritance Relationships¶
Base Type¶
public lsst::meas::base::SimpleAlgorithm
(Class SimpleAlgorithm)
Class Documentation¶
-
class
KronFluxAlgorithm
: public lsst::meas::base::SimpleAlgorithm¶ A measurement algorithm that estimates flux using Kron photometry.
Public Types
-
typedef KronFluxControl
Control
¶ A typedef to the Control object for this algorithm, defined above. The control object contains the configuration parameters for this algorithm.
Public Functions
-
KronFluxAlgorithm
(Control const &ctrl, std::string const &name, afw::table::Schema &schema, daf::base::PropertySet &metadata)¶
-
virtual void
measure
(afw::table::SourceRecord &measRecord, afw::image::Exposure<float> const &exposure) const¶ Called to measure a single child source in an image.
Before this method is called, all neighbors will be replaced with noise, using the outputs of the deblender. Outputs should be saved in the given SourceRecord, which can also be used to obtain centroid (see SafeCentroidExtractor) and shape (see SafeShapeExtractor) information.
-
virtual void
measureForced
(afw::table::SourceRecord &measRecord, afw::image::Exposure<float> const &exposure, afw::table::SourceRecord const &refRecord, afw::geom::SkyWcs const &refWcs) const¶ Called to measure a single child source in an image.
Before this method is called, all neighbors will be replaced with noise, using the outputs of the deblender. Outputs should be saved in the given SourceRecord, which can also be used to obtain centroid (see SafeCentroidExtractor) and shape (see SafeShapeExtractor) information.
-
virtual void
fail
(afw::table::SourceRecord &measRecord, meas::base::MeasurementError *error = NULL) const¶ Handle an exception thrown by the current algorithm by setting flags in the given record.
fail() is called by the measurement framework when an exception is allowed to propagate out of one the algorithm’s measure() methods. It should generally set both a general failure flag for the algorithm as well as a specific flag indicating the error condition, if possible. To aid in this, if the exception was an instance of MeasurementError, it will be passed in, carrying information about what flag to set.
An algorithm can also to chose to set flags within its own measure() methods, and then just return, rather than throw an exception. However, fail() should be implemented even when all known failure modes do not throw exceptions, to ensure that unexpected exceptions thrown in lower-level code are properly handled.
Public Static Functions
-
static meas::base::FlagDefinitionList const &
getFlagDefinitions
()¶
Public Static Attributes
-
meas::base::FlagDefinition const
FAILURE
¶
-
meas::base::FlagDefinition const
EDGE
¶
-
meas::base::FlagDefinition const
BAD_SHAPE_NO_PSF
¶
-
meas::base::FlagDefinition const
NO_MINIMUM_RADIUS
¶
-
meas::base::FlagDefinition const
NO_FALLBACK_RADIUS
¶
-
meas::base::FlagDefinition const
BAD_RADIUS
¶
-
meas::base::FlagDefinition const
USED_MINIMUM_RADIUS
¶
-
meas::base::FlagDefinition const
USED_PSF_RADIUS
¶
-
meas::base::FlagDefinition const
SMALL_RADIUS
¶
-
meas::base::FlagDefinition const
BAD_SHAPE
¶
-
typedef KronFluxControl