24 #if !defined(LSST_MEAS_ALGORITHMS_COADDPSF_H)
25 #define LSST_MEAS_ALGORITHMS_COADDPSF_H
29 #include "lsst/pex/config.h"
40 namespace algorithms {
45 "Name of warping kernel; choices: lanczos3,lanczos4,lanczos5,bilinear,nearest");
46 LSST_CONTROL_FIELD(
cacheSize,
int,
"Warping kernel cache size");
afw::table::Key< int > coaddWcs
afw::table::Key< int > cacheSize
afw::table::PointKey< double > averagePosition
afw::table::Key< std::string > warpingKernelName
io::OutputArchiveHandle OutputArchiveHandle
CoaddPsfControl(std::string _warpingKernelName="lanczos3", int _cacheSize=10000)
int cacheSize
"Warping kernel cache size" ;
std::string warpingKernelName
"Name of warping kernel; choices: lanczos3,lanczos4,lanczos5,bilinear,nearest" ;
CoaddPsf is the Psf derived to be used for non-PSF-matched Coadd images.
std::string getPersistenceName() const override
std::shared_ptr< afw::detection::Psf > clone() const override
Polymorphic deep copy. Usually unnecessary, as Psfs are immutable.
CoaddPsf(afw::table::ExposureCatalog const &catalog, afw::geom::SkyWcs const &coaddWcs, CoaddPsfControl const &ctrl, std::string const &weightFieldName="weight")
Constructor for CoaddPsf.
std::shared_ptr< afw::detection::Psf const > getPsf(int index)
Get the Psf of the component image at index.
void write(OutputArchiveHandle &handle) const override
std::string getPythonModule() const override
double getWeight(int index)
Get the weight of the component image at index.
bool isPersistable() const noexcept override
Return true if the CoaddPsf persistable (always true).
afw::table::RecordId getId(int index)
Get the exposure ID of the component image at index.
geom::Box2I getBBox(int index)
Get the bounding box (in component image Pixel coordinates) of the component image at index.
std::shared_ptr< afw::detection::Psf::Image > doComputeKernelImage(geom::Point2D const &ccdXY, afw::image::Color const &color) const override
std::shared_ptr< afw::detection::Psf > resized(int width, int height) const override
Return a clone with specified kernel dimensions.
afw::geom::SkyWcs getCoaddWcs()
Return the Wcs of the coadd (defines the coordinate system of the Psf).
std::shared_ptr< afw::geom::polygon::Polygon const > getValidPolygon(int index)
Get the validPolygon (in component image Pixel coordinates) of the component image at index.
CoaddPsf(afw::table::ExposureCatalog const &catalog, afw::geom::SkyWcs const &coaddWcs, std::string const &weightFieldName="weight", std::string const &warpingKernelName="lanczos3", int cacheSize=10000)
Main constructors for CoaddPsf.
geom::Box2I doComputeBBox(geom::Point2D const &position, afw::image::Color const &color) const override
geom::Point2D getAveragePosition() const override
Return the average of the positions of the stars that went into this Psf.
int getComponentCount() const
Return the number of component Psfs in this CoaddPsf.
afw::geom::SkyWcs getWcs(int index)
Get the Wcs of the component image at index.
An intermediate base class for Psfs that use an image representation.