File UnitSystem.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 meas
namespace modelfit
struct LocalUnitTransform
#include <UnitSystem.h>

A local mapping between two UnitSystems.

LocalUnitTransform is “local” because it linearizes the Wcs and evaluates the PhotoCalib transform at a particular predifined point, allowing it to represent the geometric transform as an AffineTransform and the photometric transform as a simple scaling.

Public Functions

LocalUnitTransform(geom::Point2D const &sourcePixel, UnitSystem const &source, UnitSystem const &destination)
LocalUnitTransform()

Construct an identity transform for both geometry and flux.

Public Members

geom::AffineTransform geometric

Maps source pixel coordinates to destination pixel coordinates.

double flux

Multiply source fluxes by this to get destination fluxes.

double sb

Multiply source surface brightnesses by this to get destination surface brightnesses.

struct UnitSystem
#include <UnitSystem.h>

A simple struct that combines a Wcs and a PhotoCalib.

Public Functions

UnitSystem(geom::SpherePoint const &position, std::shared_ptr<const afw::image::PhotoCalib> photoCalib, double flux)

Construct a “standard” UnitSystem.

This constructs a UnitSystem with a TAN Wcs centered on the given position, with flux units set such that unit flux is the given magnitude. See modelfitUnits for an explanation of why we frequently use this system.

UnitSystem(geom::SpherePoint const &position, Scalar mag)
UnitSystem(std::shared_ptr<afw::geom::SkyWcs const> wcs_, std::shared_ptr<afw::image::PhotoCalib const> photoCalib)

Construct a UnitSystem from a given Wcs and PhotoCalib.

template<typename T>
UnitSystem(afw::image::Exposure<T> const &exposure)

Construct a UnitSystem by extracting the Wcs and PhotoCalib from an Exposure (implicit)

Public Members

std::shared_ptr<afw::geom::SkyWcs const> wcs
std::shared_ptr<afw::image::PhotoCalib const> photoCalib

Private Functions

std::shared_ptr<const afw::image::PhotoCalib> validatePhotoCalib(std::shared_ptr<const afw::image::PhotoCalib> photoCalib)

Private Static Functions

static std::shared_ptr<const afw::image::PhotoCalib> getDefaultPhotoCalib()