File AstrometryModel.h

namespace lsst

Class for a simple mapping implementing a generic AstrometryTransform.

Remove all non-astronomical counts from the Chunk Exposure’s pixels.

Forward declarations for lsst::utils::Cache

For details on the Cache class, see the Cache.h file.

It uses a template rather than a pointer so that the derived classes can use the specifics of the transform. The class simplePolyMapping overloads a few routines.

A base class for image defects

Numeric constants used by the Integrate.h integrator routines.

Compute Image Statistics

Note

Gauss-Kronrod-Patterson quadrature coefficients for use in quadpack routine qng. These coefficients were calculated with 101 decimal digit arithmetic by L. W. Fullerton, Bell Labs, Nov 1981.

Note

The Statistics class itself can only handle lsst::afw::image::MaskedImage() types. The philosophy has been to handle other types by making them look like lsst::afw::image::MaskedImage() and reusing that code. Users should have no need to instantiate a Statistics object directly, but should use the overloaded makeStatistics() factory functions.

namespace jointcal
class AstrometryModel
#include <AstrometryModel.h>

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.