24#if !defined(LSST_MEAS_ALGORITHMS_COADDPSF_H)
25#define LSST_MEAS_ALGORITHMS_COADDPSF_H
29#include "lsst/pex/config.h"
45 "Name of warping kernel; choices: lanczos3,lanczos4,lanczos5,bilinear,nearest");
46 LSST_CONTROL_FIELD(
cacheSize,
int,
"Warping kernel cache size");
78 std::string const& warpingKernelName =
"lanczos3",
int cacheSize = 10000);
96 :
CoaddPsf(catalog, coaddWcs, weightFieldName, ctrl.warpingKernelName, ctrl.cacheSize) {}
102 int cacheSize = 10000
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" ;
std::string getPersistenceName() const override
std::shared_ptr< afw::detection::Psf > clone() const override
Polymorphic deep copy. Usually unnecessary, as Psfs are immutable.
void write(OutputArchiveHandle &handle) const override
std::string getPythonModule() const override
bool isPersistable() const noexcept override
Return true if the CoaddPsf persistable (always true).
int getTract(int index) const
Get the tract ID of the component image at the given index.
afw::table::RecordId getId(int index) const
Get the exposure ID of the component image at index.
CoaddPsf(afw::table::ExposureCatalog const &catalog, std::shared_ptr< afw::geom::SkyWcs const > coaddWcs, CoaddPsfControl const &ctrl, std::string const &weightFieldName="weight")
Constructor for CoaddPsf.
std::shared_ptr< afw::geom::polygon::Polygon const > getValidPolygon(int index) const
Get the validPolygon (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
CoaddPsf(afw::table::ExposureCatalog const &catalog, std::shared_ptr< afw::geom::SkyWcs const > coaddWcs, std::string const &weightFieldName="weight", std::string const &warpingKernelName="lanczos3", int cacheSize=10000)
Main constructors for CoaddPsf.
std::shared_ptr< afw::detection::Psf > resized(int width, int height) const override
Return a clone with specified kernel dimensions.
std::shared_ptr< afw::detection::Psf const > getPsf(int index) const
Get the Psf of the component image at index.
std::shared_ptr< afw::geom::SkyWcs const > getWcs(int index) const
Get the Wcs of the component image at index.
int getPatch(int index) const
Get the patch ID of the component image at the given index.
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.
geom::Box2I getBBox(int index) const
Get the bounding box (in component image Pixel coordinates) of the component image at index.
double getWeight(int index) const
Get the weight of the component image at index.
std::shared_ptr< afw::geom::SkyWcs const > getCoaddWcs() const
Return the Wcs of the coadd (defines the coordinate system of the Psf).
ImagePsf(bool isFixed=false)
ExposureCatalogT< ExposureRecord > ExposureCatalog
Point< double, 2 > Point2D