LSSTApplications
19.0.0-14-gb0260a2+72efe9b372,20.0.0+7927753e06,20.0.0+8829bf0056,20.0.0+995114c5d2,20.0.0+b6f4b2abd1,20.0.0+bddc4f4cbe,20.0.0-1-g253301a+8829bf0056,20.0.0-1-g2b7511a+0d71a2d77f,20.0.0-1-g5b95a8c+7461dd0434,20.0.0-12-g321c96ea+23efe4bbff,20.0.0-16-gfab17e72e+fdf35455f6,20.0.0-2-g0070d88+ba3ffc8f0b,20.0.0-2-g4dae9ad+ee58a624b3,20.0.0-2-g61b8584+5d3db074ba,20.0.0-2-gb780d76+d529cf1a41,20.0.0-2-ged6426c+226a441f5f,20.0.0-2-gf072044+8829bf0056,20.0.0-2-gf1f7952+ee58a624b3,20.0.0-20-geae50cf+e37fec0aee,20.0.0-25-g3dcad98+544a109665,20.0.0-25-g5eafb0f+ee58a624b3,20.0.0-27-g64178ef+f1f297b00a,20.0.0-3-g4cc78c6+e0676b0dc8,20.0.0-3-g8f21e14+4fd2c12c9a,20.0.0-3-gbd60e8c+187b78b4b8,20.0.0-3-gbecbe05+48431fa087,20.0.0-38-ge4adf513+a12e1f8e37,20.0.0-4-g97dc21a+544a109665,20.0.0-4-gb4befbc+087873070b,20.0.0-4-gf910f65+5d3db074ba,20.0.0-5-gdfe0fee+199202a608,20.0.0-5-gfbfe500+d529cf1a41,20.0.0-6-g64f541c+d529cf1a41,20.0.0-6-g9a5b7a1+a1cd37312e,20.0.0-68-ga3f3dda+5fca18c6a4,20.0.0-9-g4aef684+e18322736b,w.2020.45
LSSTDataManagementBasePackage
|
Go to the documentation of this file.
24 #ifndef LSST_MEAS_MODELFIT_GeneralPsfFitter_h_INCLUDED
25 #define LSST_MEAS_MODELFIT_GeneralPsfFitter_h_INCLUDED
41 namespace lsst {
namespace meas {
namespace modelfit {
56 "shapelet order for this component; negative to disable this component completely"
60 "sigma (in pixels) in an isotropic 2-d Gaussian prior on the center of this shapelet component, "
61 "relative to the center of the PSF image"
65 "sigma in an isotropic 2-d Gaussian prior on the conformal-shear ellipticity eta"
69 "Sets the fiducial radius of this component relative to the 'primary radius' of the PSF: either "
70 "the second-moments radius of the PSF image (in an initial fit), or the radius of the primary "
71 "component in a previous fit. Ignored if the previous fit included this component (as then we "
72 "can just use that radius)."
76 "sigma in a Gaussian prior on ln(radius/fiducialRadius)"
98 "Innermost shapelet expansion, used to fit PSFs with very sharp cores"
103 "Primary shapelet expansion, typically used to fit the bulk of the PSF "
108 "Wing shapelet expansion (between primary and outer), typically used to fit the wings of the PSF"
113 "Outermost shapelet expansion, used to fit PSFs with very broad wings"
118 "Configuration of the optimizer used to do the fitting"
122 defaultNoiseSigma,
double,
"Default value for the noiseSigma parameter in GeneralPsfFitter.apply()"
219 int * pState =
nullptr
225 int * pState =
nullptr
249 int * pState =
nullptr
255 int * pState =
nullptr
319 ndarray::Array<Pixel const,2,1>
const &
image,
323 ndarray::Array<Scalar const,1,1>
const & fixed
327 ndarray::Array<Pixel,2,-1>
const & modelMatrix,
328 ndarray::Array<Scalar const,1,1>
const & nonlinear,
329 bool doApplyWeights=
true
341 #endif // !LSST_MEAS_MODELFIT_GeneralPsfFitter_h_INCLUDED
GeneralPsfFitterControl Control
Backwards-compatibility support for depersisting the old Calib (FluxMag0/FluxMag0Err) objects.
void computeModelMatrix(ndarray::Array< Pixel, 2,-1 > const &modelMatrix, ndarray::Array< Scalar const, 1, 1 > const &nonlinear, bool doApplyWeights=true) const override
Evaluate the model for the given vector of nonlinear parameters.
GeneralPsfFitterComponentControl wings
"Wing shapelet expansion (between primary and outer), typically used to fit the wings of the PSF" ;
Record class that contains measurements made on a single exposure.
Base class for Bayesian priors.
Control object used to define one piece of multishapelet fit to a PSF model; see GeneralPsfFitterCont...
double ellipticityPriorSigma
"sigma in an isotropic 2-d Gaussian prior on the conformal-shear ellipticity eta" ;
void measure(afw::table::SourceRecord &measRecord, afw::image::Image< double > const &image, shapelet::MultiShapeletFunction const &initial) const
void measure(afw::table::SourceRecord &measRecord, afw::image::Image< double > const &image, afw::geom::ellipses::Quadrupole const &moments) const
double Scalar
Typedefs to be used for probability and parameter values.
afw::table::Key< double > sigma
Exception to be thrown when a measurement algorithm experiences a known failure mode.
static base::FlagDefinitionList const & getFlagDefinitions()
GeneralPsfFitterControl()
Abstract base class and concrete factories that define multi-shapelet galaxy models.
Defines the fields and offsets for a table.
int order
"shapelet order for this component; negative to disable this component completely" ;
shapelet::MultiShapeletFunction apply(afw::image::Image< Pixel > const &image, shapelet::MultiShapeletFunction const &initial, Scalar noiseSigma=-1, int *pState=nullptr) const
Perform a fit to a PSF image, using a previous fit as a starting point.
Base class for optimizer/sampler likelihood functions that compute likelihood at a point.
Control object used to configure a multishapelet fit to a PSF model; see GeneralPsfFitter.
Class for fitting multishapelet models to PSF images.
vector-type utility class to build a collection of FlagDefinitions
void fail(afw::table::SourceRecord &measRecord, lsst::meas::base::MeasurementError *error=nullptr) const
double positionPriorSigma
"sigma (in pixels) in an isotropic 2-d Gaussian prior on the center of this shapelet component,...
Configuration object for Optimizer.
double radiusPriorSigma
"sigma in a Gaussian prior on ln(radius/fiducialRadius)" ;
shapelet::MultiShapeletFunction apply(afw::image::Image< double > const &image, shapelet::MultiShapeletFunction const &initial, Scalar noiseSigma=-1, int *pState=nullptr) const
Utility class for handling flag fields that indicate the failure modes of an algorithm.
shapelet::MultiShapeletFunction apply(afw::image::Image< double > const &image, afw::geom::ellipses::Quadrupole const &moments, Scalar noiseSigma=-1, int *pState=nullptr) const
GeneralPsfFitterComponentControl outer
"Outermost shapelet expansion, used to fit PSFs with very broad wings" ;
MultiShapeletPsfLikelihood(ndarray::Array< Pixel const, 2, 1 > const &image, geom::Point2I const &xy0, boost::shared_ptr< Model > model, Scalar sigma, ndarray::Array< Scalar const, 1, 1 > const &fixed)
GeneralPsfFitterAlgorithm(GeneralPsfFitterControl const &ctrl, afw::table::Schema &schema, std::string const &prefix)
static base::FlagDefinition const EXCEPTION
#define LSST_CONTROL_FIELD(NAME, TYPE, DOC)
A preprocessor macro used to define fields in C++ "control object" structs.
virtual ~MultiShapeletPsfLikelihood()
Likelihood object used to fit multishapelet models to PSF model images; mostly for internal use by Ge...
double radiusFactor
"Sets the fiducial radius of this component relative to the 'primary radius' of the PSF: either " "th...
A base class for image defects.
static base::FlagDefinition const MAX_INNER_ITERATIONS
boost::shared_ptr< Model > getModel() const
Return the Model object that corresponds to the configuration.
An ellipse core with quadrupole moments as parameters.
shapelet::MultiShapeletFunction apply(afw::image::Image< Pixel > const &image, afw::geom::ellipses::Quadrupole const &moments, Scalar noiseSigma=-1, int *pState=nullptr) const
Perform an initial fit to a PSF image.
Simple class used to define and document flags The name and doc constitute the identity of the FlagDe...
static base::FlagDefinition const CONTAINS_NAN
GeneralPsfFitter(GeneralPsfFitterControl const &ctrl)
Initialize the fitter class with the given control object.
shapelet::MultiShapeletFunctionKey addFields(afw::table::Schema &schema, std::string const &prefix) const
Add fields to a Schema that can be used to store the MultiShapeletFunction returned by apply().
GeneralPsfFitterComponentControl primary
"Primary shapelet expansion, typically used to fit the bulk of the PSF " ;
GeneralPsfFitterComponentControl inner
"Innermost shapelet expansion, used to fit PSFs with very sharp cores" ;
shapelet::MultiShapeletFunctionKey getKey()
#define LSST_NESTED_CONTROL_FIELD(NAME, MODULE, TYPE, DOC)
A preprocessor macro used to define fields in C++ "control object" structs, for nested control object...
A multi-scale shapelet function.
OptimizerControl optimizer
"Configuration of the optimizer used to do the fitting" ;
static base::FlagDefinition const FAILURE
shapelet::MultiShapeletFunction adapt(shapelet::MultiShapeletFunction const &previousFit, boost::shared_ptr< Model > previousModel) const
Adapt a differently-configured previous fit to be used as an starting point for this GeneralPsfFitter...
Class that maps MultiShapeletFunction objects to fields in afw::table objects.
boost::shared_ptr< Prior > getPrior() const
Return the Prior object that corresponds to the configuration.
GeneralPsfFitterComponentControl(int order_=0, double radiusFactor_=1.0)
double defaultNoiseSigma
"Default value for the noiseSigma parameter in GeneralPsfFitter.apply()" ;
static base::FlagDefinition const MAX_OUTER_ITERATIONS