File ApCorrMap.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 afw
namespace image
class ApCorrMap : public lsst::afw::table::io::PersistableFacade<ApCorrMap>, public Storable
#include <ApCorrMap.h>

A thin wrapper around std::map to allow aperture corrections to be attached to Exposures.

ApCorrMap simply adds error handling accessors, persistence, and a bit of encapsulation to std::map (given the simplified interface, for instance, we could switch to unordered_map or some other underyling container in the future).

Public Types

typedef Internal::const_iterator Iterator

Iterator type returned by begin() and end(). Dereferences to a pair<string,std::shared_ptr<BoundedField>>.

Public Functions

ApCorrMap()
ApCorrMap(ApCorrMap const&)
ApCorrMap(ApCorrMap&&)
ApCorrMap &operator=(ApCorrMap const&)
ApCorrMap &operator=(ApCorrMap&&)
~ApCorrMap()
Iterator begin() const
Iterator end() const
std::size_t size() const
std::shared_ptr<math::BoundedField> const operator[](std::string const &name) const

Return the field with the given name, throwing NotFoundError when the name is not present.

std::shared_ptr<math::BoundedField> const get(std::string const &name) const

Return the field with the given name, returning an empty pointer when the name is not present.

void set(std::string const &name, std::shared_ptr<math::BoundedField> field)

Add or replace an aperture correction.

bool isPersistable() const

Whether the map is persistable (true IFF all contained BoundedFields are persistable).

ApCorrMap &operator*=(double const scale)

Scale all fields by a constant.

ApCorrMap &operator/=(double const scale)
std::shared_ptr<typehandling::Storable> cloneStorable() const

Create a new ApCorrMap that is a copy of this one.

Public Static Attributes

std::size_t const MAX_NAME_LENGTH = 64

Maximum number of characters for an aperture correction name (required for persistence).

Private Types

typedef std::map<std::string, std::shared_ptr<math::BoundedField>> Internal

Private Functions

std::string getPersistenceName() const
std::string getPythonModule() const
void write(OutputArchiveHandle &handle) const

Private Members

Internal _internal