File PsfexPsf.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 extensions
namespace psfex
class PsfexPsf : public lsst::afw::table::io::PersistableFacade<PsfexPsf>, public lsst::meas::algorithms::ImagePsf
#include <PsfexPsf.h>

Represent a PSF as a linear combination of PSFEX (== Karhunen-Loeve) basis functions.

Public Functions

PsfexPsf(lsst::meas::extensions::psfex::Psf const &psf, lsst::geom::Point2D const &averagePosition = lsst::geom::Point2D())

Constructor for a PsfexPsf.

Parameters
  • psf: Psfex PSF model to be wrapped into an LSST Psf

  • averagePosition: Average position of stars used to construct the Psf.

virtual ~PsfexPsf()
virtual PTR(lsst::afw::detection::Psf) const

Polymorphic deep copy; should usually be unnecessary as Psfs are immutable.x.

virtual PTR(afw::detection::Psf)

Return a clone with specified kernel dimensions.

virtual lsst::geom::Point2D getAveragePosition() const

Return average position of stars; used as default position.

void write(lsst::afw::table::io::OutputArchiveHandle &handle) const

Public Members

virtual int height lsst::meas::extensions::psfex::PsfexPsf::const

Private Functions

PTR(lsst::afw::math::LinearCombinationKernel)
PsfexPsf()

default ctor; needed for persistence

lsst::geom::Box2I _doComputeBBox(lsst::geom::Point2D const &position, lsst::geom::Point2D const &center) const

Parameters
  • position: position within the chip

  • center: center of output image. Use (0., 0.) for a kernel image

Compute bbox of either image or kernel image, depending on provided center Does not depend on color, which is left out of parameter list to permit reuse by doComputeBBox, doCompute[Kernel]Image, and getKernel.

virtual std::string getPersistenceName() const

Name used in table persistence.

virtual std::string getPythonModule() const

The python module name (for use in table persistence)

Private Members

lsst::geom::Point2D _averagePosition
struct poly *_poly
float _pixstep
std::vector<int> _size
std::vector<float> _comp
std::vector<std::pair<double, double>> _context

Friends

friend lsst::meas::extensions::psfex::detail::PsfexPsfFactory