lsst.meas.algorithms
20.0.0-16-g760a3dc6+b31208f437
|
Go to the documentation of this file.
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");
boost::shared_ptr< afw::detection::Psf > resized(int width, int height) const override
Return a clone with specified kernel dimensions.
afw::geom::SkyWcs getWcs(int index)
Get the Wcs of the component image at index.
int cacheSize
"Warping kernel cache size" ;
afw::table::Key< int > cacheSize
boost::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, std::string const &weightFieldName="weight", std::string const &warpingKernelName="lanczos3", int cacheSize=10000)
Main constructors for CoaddPsf.
afw::geom::SkyWcs getCoaddWcs()
Return the Wcs of the coadd (defines the coordinate system of the Psf).
afw::table::PointKey< double > averagePosition
CoaddPsf(afw::table::ExposureCatalog const &catalog, afw::geom::SkyWcs const &coaddWcs, CoaddPsfControl const &ctrl, std::string const &weightFieldName="weight")
Constructor for CoaddPsf.
void write(OutputArchiveHandle &handle) const override
afw::table::Key< std::string > warpingKernelName
CoaddPsfControl(std::string _warpingKernelName="lanczos3", int _cacheSize=10000)
std::string getPythonModule() const override
afw::table::Key< int > coaddWcs
std::string getPersistenceName() const override
geom::Box2I getBBox(int index)
Get the bounding box (in component image Pixel coordinates) of the component image at index.
std::string warpingKernelName
"Name of warping kernel; choices: lanczos3,lanczos4,lanczos5,bilinear,nearest" ;
boost::shared_ptr< afw::detection::Psf::Image > doComputeKernelImage(geom::Point2D const &ccdXY, afw::image::Color const &color) const override
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.
boost::shared_ptr< afw::geom::polygon::Polygon const > getValidPolygon(int index)
Get the validPolygon (in component image Pixel coordinates) of the component image at index.
boost::shared_ptr< afw::detection::Psf const > getPsf(int index)
Get the Psf of the component image at index.
CoaddPsf is the Psf derived to be used for non-PSF-matched Coadd images.
geom::Point2D getAveragePosition() const override
Return the average of the positions of the stars that went into this Psf.
geom::Box2I doComputeBBox(geom::Point2D const &position, afw::image::Color const &color) const override
int getComponentCount() const
Return the number of component Psfs in this CoaddPsf.
io::OutputArchiveHandle OutputArchiveHandle
An intermediate base class for Psfs that use an image representation.
double getWeight(int index)
Get the weight of the component image at index.