File PixelAreaBoundedField.h

A BoundedField that gives the amount a pixel is distorted at each point.

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 afw
namespace math
class PixelAreaBoundedField : public lsst::afw::math::BoundedField
#include <PixelAreaBoundedField.h>

A BoundedField that evaluate the pixel area of a SkyWcs in angular units.

Typically used to move an image or source flux between surface brightness and fluence.

Public Functions

PixelAreaBoundedField(lsst::geom::Box2I const &bbox, std::shared_ptr<geom::SkyWcs const> skyWcs, lsst::geom::AngleUnit const &unit = lsst::geom::radians, double scaling = 1.0)

Create a PixelAreaBoundedField from a SkyWcs.

Parameters
  • [in] bbox: Pixel bounding box over which the WCS is valid.

  • [in] skyWcs: WCS that maps pixels to and from sky coordinates.

  • [in] unit: Angular unit that is used (squared) for the fields values.

  • [in] scaling: Factor all field values should be scaled by.

Exceptions
  • pex::exception::InvalidParameterError: Thrown if skyWcs is null.

~PixelAreaBoundedField()
PixelAreaBoundedField(PixelAreaBoundedField const&)
PixelAreaBoundedField(PixelAreaBoundedField&&)
PixelAreaBoundedField &operator=(PixelAreaBoundedField const&)
PixelAreaBoundedField &operator=(PixelAreaBoundedField&&)
double evaluate(lsst::geom::Point2D const &position) const

Evaluate the field at the given point.

This is the only abstract method to be implemented by subclasses.

Subclasses should not provide bounds checking on the given position; this is the responsibility of the user, who can almost always do it more efficiently.

ndarray::Array<double, 1, 1> evaluate(ndarray::Array<double const, 1> const &x, ndarray::Array<double const, 1> const &y) const

Evaluate the field at multiple arbitrary points

There is no bounds-checking on the given positions; this is the responsibility of the user, who can almost always do it more efficiently.

Return

an array of output values, same shape as x and y

Parameters
  • [in] x: array of x coordinates, same shape as y

  • [in] y: array of y coordinates, same shape as x

bool isPersistable() const

PixelAreaBoundedField is persistable if and only if the nested SkyWcs is.

std::shared_ptr<BoundedField> operator*(double const scale) const

Return a scaled BoundedField

Parameters
  • [in] scale: Scaling factor

bool operator==(BoundedField const &rhs) const

BoundedFields (of the same sublcass) are equal if their bounding boxes and parameters are equal.

Protected Functions

std::string getPersistenceName() const

Return the unique name used to persist this object and look up its factory.

Must be less than ArchiveIndexSchema::MAX_NAME_LENGTH characters.

std::string getPythonModule() const

Return the fully-qualified Python module that should be imported to guarantee that its factory is registered.

Must be less than ArchiveIndexSchema::MAX_MODULE_LENGTH characters.

Will be ignored if empty.

void write(OutputArchiveHandle &handle) const

Write the object to one or more catalogs.

The handle object passed to this function provides an interface for adding new catalogs and adding nested objects to the same archive (while checking for duplicates). See OutputArchiveHandle for more information.

Private Functions

std::string toString() const

Private Members

std::shared_ptr<geom::SkyWcs const> _skyWcs
double _scaling