lsst.meas.algorithms
13.0-16-g6e7f056
|
CoaddPsf is the Psf derived to be used for non-PSF-matched Coadd images. More...
#include <CoaddPsf.h>
Classes | |
class | Factory |
Public Member Functions | |
CoaddPsf (afw::table::ExposureCatalog const &catalog, afw::image::Wcs const &coaddWcs, std::string const &weightFieldName="weight", std::string const &warpingKernelName="lanczos3", int cacheSize=10000) | |
Main constructors for CoaddPsf. More... | |
virtual boost::shared_ptr < afw::detection::Psf > | clone () const |
Polymorphic deep copy. Usually unnecessary, as Psfs are immutable. More... | |
virtual boost::shared_ptr < afw::detection::Psf > | resized (int width, int height) const |
Return a clone with specified kernel dimensions. More... | |
virtual afw::geom::Point2D | getAveragePosition () const |
Return the average of the positions of the stars that went into this Psf. More... | |
boost::shared_ptr < afw::image::Wcs const > | getCoaddWcs () |
Return the Wcs of the coadd (defines the coordinate system of the Psf). More... | |
int | getComponentCount () const |
Return the number of component Psfs in this CoaddPsf. More... | |
boost::shared_ptr < afw::detection::Psf const > | getPsf (int index) |
Get the Psf of the component image at index. More... | |
boost::shared_ptr < afw::image::Wcs const > | getWcs (int index) |
Get the Wcs of the component image at index. More... | |
double | getWeight (int index) |
Get the weight of the component image at index. More... | |
afw::table::RecordId | getId (int index) |
Get the exposure ID of the component image at index. More... | |
afw::geom::Box2I | getBBox (int index) |
Get the bounding box (in component image Pixel coordinates) of the component image at index. More... | |
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. More... | |
virtual bool | isPersistable () const |
Return true if the CoaddPsf persistable (always true). More... | |
Protected Member Functions | |
boost::shared_ptr < afw::detection::Psf::Image > | doComputeKernelImage (afw::geom::Point2D const &ccdXY, afw::image::Color const &color) const |
virtual afw::geom::Box2I | doComputeBBox (afw::geom::Point2D const &position, afw::image::Color const &color) const |
virtual std::string | getPersistenceName () const |
virtual std::string | getPythonModule () const |
virtual void | write (OutputArchiveHandle &handle) const |
CoaddPsf (afw::table::ExposureCatalog const &catalog, boost::shared_ptr< afw::image::Wcs const > coaddWcs, afw::geom::Point2D const &averagePosition, std::string const &warpingKernelName="lanczos3", int cacheSize=10000) | |
![]() | |
ImagePsf (bool isFixed=false) | |
virtual double | doComputeApertureFlux (double radius, afw::geom::Point2D const &position, afw::image::Color const &color) const |
virtual afw::geom::ellipses::Quadrupole | doComputeShape (afw::geom::Point2D const &position, afw::image::Color const &color) const |
CoaddPsf is the Psf derived to be used for non-PSF-matched Coadd images.
It incorporates the logic of James Jee's Stackfit algorithm for estimating the Psf of coadd by coadding the images of the Psf models of each input exposure.
Definition at line 45 of file CoaddPsf.h.
|
explicit |
Main constructors for CoaddPsf.
The ExposureCatalog contains info about each visit/ccd in Coadd; this must be provided to the constructor, and cannot be changed.
[in] | catalog | ExposureCatalog containing the id, bbox, wcs, psf and weight for each ccd/visit. This is usually the same catalog as the "ccds" catalog in the coadd Exposure's CoaddInputs. |
[in] | coaddWcs | Wcs for the coadd. |
[in] | weightFieldName | Field name that contains the weight of the exposure in the coadd; defaults to "weight". |
[in] | warpingKernelName | Name of warping kernel |
[in] | cacheSize | Warping kernel cache size |
Definition at line 142 of file CoaddPsf.cc.
|
explicitprotected |
catalog | Unpersisted catalog |
coaddWcs | WCS for the coadd |
averagePosition | Default position for accessors |
warpingKernelName | Warping kernel name |
cacheSize | Kernel cache size |
Definition at line 457 of file CoaddPsf.cc.
|
virtual |
Polymorphic deep copy. Usually unnecessary, as Psfs are immutable.
Definition at line 176 of file CoaddPsf.cc.
|
protectedvirtual |
Definition at line 228 of file CoaddPsf.cc.
|
protected |
Definition at line 252 of file CoaddPsf.cc.
|
inlinevirtual |
Return the average of the positions of the stars that went into this Psf.
For CoaddPsf, this is calculated as the weighted average of the average positions of all the component Psfs.
Definition at line 82 of file CoaddPsf.h.
afw::geom::Box2I lsst::meas::algorithms::CoaddPsf::getBBox | ( | int | index | ) |
Get the bounding box (in component image Pixel coordinates) of the component image at index.
[in] | index | Index of component for which the bounding box will be fetched. |
RangeError | Index of component is out of range. |
Definition at line 333 of file CoaddPsf.cc.
|
inline |
Return the Wcs of the coadd (defines the coordinate system of the Psf).
Definition at line 85 of file CoaddPsf.h.
int lsst::meas::algorithms::CoaddPsf::getComponentCount | ( | ) | const |
Return the number of component Psfs in this CoaddPsf.
Definition at line 294 of file CoaddPsf.cc.
afw::table::RecordId lsst::meas::algorithms::CoaddPsf::getId | ( | int | index | ) |
Get the exposure ID of the component image at index.
[in] | index | Index of component for which the exposure ID will be fetched. |
RangeError | Index of component is out of range. |
Definition at line 326 of file CoaddPsf.cc.
|
protectedvirtual |
Definition at line 441 of file CoaddPsf.cc.
boost::shared_ptr< afw::detection::Psf const > lsst::meas::algorithms::CoaddPsf::getPsf | ( | int | index | ) |
Get the Psf of the component image at index.
[in] | index | Index of component for which the Psf will be fetched. |
RangeError | Index of component is out of range. |
Definition at line 298 of file CoaddPsf.cc.
|
protectedvirtual |
Definition at line 443 of file CoaddPsf.cc.
boost::shared_ptr< afw::geom::polygon::Polygon const > lsst::meas::algorithms::CoaddPsf::getValidPolygon | ( | int | index | ) |
Get the validPolygon (in component image Pixel coordinates) of the component image at index.
[in] | index | Index of component for which the bounding box will be fetched. |
RangeError | Index of component is out of range. |
Definition at line 312 of file CoaddPsf.cc.
boost::shared_ptr< afw::image::Wcs const > lsst::meas::algorithms::CoaddPsf::getWcs | ( | int | index | ) |
Get the Wcs of the component image at index.
[in] | index | Index of component for which the Wcs will be fetched. |
RangeError | Index of component is out of range. |
Definition at line 305 of file CoaddPsf.cc.
double lsst::meas::algorithms::CoaddPsf::getWeight | ( | int | index | ) |
Get the weight of the component image at index.
[in] | index | Index of component for which the weight will be fetched. |
RangeError | Index of component is out of range. |
Definition at line 319 of file CoaddPsf.cc.
|
inlinevirtual |
Return true if the CoaddPsf persistable (always true).
While it's actually possible to construct a CoaddPsf that isn't persistable (because its nested Psfs and Wcss are not persistable) in artificial situations, in realistic situations it's pretty much impossible, because persistence is a necessary part of how CoaddPsfs are built. And it's simpler and much faster if we just always return true, rather than loop over the elements and check each one.
Definition at line 153 of file CoaddPsf.h.
|
virtual |
Return a clone with specified kernel dimensions.
Definition at line 180 of file CoaddPsf.cc.
|
protectedvirtual |
Definition at line 445 of file CoaddPsf.cc.