Class AstrometryModel¶
Defined in File AstrometryModel.h
Inheritance Relationships¶
Derived Types¶
public lsst::jointcal::ConstrainedAstrometryModel
(Class ConstrainedAstrometryModel)public lsst::jointcal::SimpleAstrometryModel
(Class SimpleAstrometryModel)
Class Documentation¶
-
class
AstrometryModel
¶ Interface between AstrometryFit and the combinations of Mappings from pixels to some tangent plane (aka distortions).
- Parameters
log
: Logger to send messages to, to keep names consistent when logging.
Subclassed by lsst::jointcal::ConstrainedAstrometryModel, lsst::jointcal::SimpleAstrometryModel
Public Functions
-
AstrometryModel
(LOG_LOGGER log)¶
-
std::size_t
getNpar
(CcdImage const &ccdImage) const¶ Return the number of parameters in the mapping of CcdImage.
-
virtual const AstrometryMapping *
getMapping
(CcdImage const&) const = 0¶ Mapping associated to a given CcdImage.
-
virtual Eigen::Index
assignIndices
(std::string const &whatToFit, Eigen::Index firstIndex) = 0¶ Assign indices to parameters involved in mappings, starting at firstIndex. Returns the highest assigned index.
-
virtual void
offsetParams
(Eigen::VectorXd const &delta) = 0¶ Offset the parameters by the provided amounts (by -delta).
The shifts are applied according to the indices given in assignIndices.
- Parameters
[in] delta
: vector of offsets to apply
-
virtual const std::shared_ptr<AstrometryTransform const>
getSkyToTangentPlane
(CcdImage const &ccdImage) const = 0¶ The transformation used to project the positions of FittedStars.
This defines the coordinate system into which the Mapping of this Ccdimage maps the pixel coordinates.
-
virtual std::shared_ptr<afw::geom::SkyWcs>
makeSkyWcs
(CcdImage const &ccdImage) const = 0¶ Make a SkyWcs that contains this model.
- Return
SkyWcs containing this model.
- Parameters
ccdImage
: The exposure to create the SkyWcs for.
-
virtual void
freezeErrorTransform
() = 0¶
-
virtual std::size_t
getTotalParameters
() const = 0¶ Return the total number of parameters in this model.
-
virtual
~AstrometryModel
()¶
-
bool
validate
(CcdImageList const &ccdImageList, int ndof) const¶ Return true if this is a “reasonable” model.
- Return
True if the model is valid on all ccdImages.
- Parameters
ccdImageList
: The ccdImages to test the model validity on.ndof
: The number of degrees of freedom in the fit, e.g. from Fitterbase.computeChi2().
Protected Functions
-
virtual AstrometryMapping *
findMapping
(CcdImage const &ccdImage) const = 0¶ Return a pointer to the mapping associated with this ccdImage.
Protected Attributes
-
LOG_LOGGER
_log
¶ lsst.logging instance, to be created by a subclass so that messages have consistent name.