lsst.afw  16.0-76-g802307b6d+1
Classes | Public Member Functions | Friends | List of all members
lsst::afw::image::ExposureInfo Class Referencefinal

A collection of all the things that make an Exposure different from a MaskedImage. More...

#include <ExposureInfo.h>

Public Member Functions

bool hasWcs () const
 Does this exposure have a Wcs? More...
 
std::shared_ptr< geom::SkyWcs const > getWcs () const
 Return the WCS of the exposure. More...
 
void setWcs (std::shared_ptr< geom::SkyWcs const > wcs)
 Set the WCS of the exposure. More...
 
bool hasDetector () const
 Does this exposure have Detector information? More...
 
std::shared_ptr< cameraGeom::Detector const > getDetector () const
 Return the exposure's Detector information. More...
 
void setDetector (std::shared_ptr< cameraGeom::Detector const > detector)
 Set the exposure's Detector information. More...
 
Filter getFilter () const
 Return the exposure's filter. More...
 
void setFilter (Filter const &filter)
 Set the exposure's filter. More...
 
bool hasCalib () const
 Does this exposure have a Calib? More...
 
std::shared_ptr< Calib > getCalib ()
 Return the exposure's photometric calibration. More...
 
std::shared_ptr< Calib const > getCalib () const
 Return the exposure's photometric calibration. More...
 
void setCalib (std::shared_ptr< Calib const > calib)
 Set the Exposure's Calib object. More...
 
std::shared_ptr< daf::base::PropertySet > getMetadata () const
 Return flexible metadata. More...
 
void setMetadata (std::shared_ptr< daf::base::PropertySet > metadata)
 Set the flexible metadata. More...
 
bool hasPsf () const
 Does this exposure have a Psf? More...
 
std::shared_ptr< detection::Psf > getPsf () const
 Return the exposure's point-spread function. More...
 
void setPsf (std::shared_ptr< detection::Psf const > psf)
 Set the exposure's point-spread function. More...
 
bool hasValidPolygon () const
 Does this exposure have a valid Polygon. More...
 
std::shared_ptr< geom::polygon::Polygon const > getValidPolygon () const
 Return the valid Polygon. More...
 
void setValidPolygon (std::shared_ptr< geom::polygon::Polygon const > polygon)
 Set the exposure's valid Polygon. More...
 
bool hasApCorrMap () const
 Return true if the exposure has an aperture correction map. More...
 
std::shared_ptr< ApCorrMap > getApCorrMap ()
 Return the exposure's aperture correction map (null pointer if !hasApCorrMap()) More...
 
std::shared_ptr< ApCorrMap const > getApCorrMap () const
 Return the exposure's aperture correction map (null pointer if !hasApCorrMap()) More...
 
void setApCorrMap (std::shared_ptr< ApCorrMap > apCorrMap)
 Set the exposure's aperture correction map (null pointer if !hasApCorrMap()) More...
 
void initApCorrMap ()
 Set the exposure's aperture correction map to a new, empty map. More...
 
bool hasCoaddInputs () const
 Does this exposure have coadd provenance catalogs? More...
 
void setCoaddInputs (std::shared_ptr< CoaddInputs > coaddInputs)
 Set the exposure's coadd provenance catalogs. More...
 
std::shared_ptr< CoaddInputs > getCoaddInputs () const
 Return a pair of catalogs that record the inputs, if this Exposure is a coadd (otherwise null). More...
 
std::shared_ptr< image::VisitInfo const > getVisitInfo () const
 Return the exposure's visit info. More...
 
bool hasVisitInfo () const
 Does this exposure have visit info? More...
 
void setVisitInfo (std::shared_ptr< image::VisitInfo const > const visitInfo)
 Set the exposure's visit info. More...
 
bool hasTransmissionCurve () const
 Does this exposure have a transmission curve? More...
 
std::shared_ptr< TransmissionCurve const > getTransmissionCurve () const
 Return the exposure's transmission curve. More...
 
void setTransmissionCurve (std::shared_ptr< TransmissionCurve const > tc)
 Set the exposure's transmission curve. More...
 
 ExposureInfo (std::shared_ptr< geom::SkyWcs const > const &wcs=std::shared_ptr< geom::SkyWcs const >(), std::shared_ptr< detection::Psf const > const &psf=std::shared_ptr< detection::Psf const >(), std::shared_ptr< Calib const > const &calib=std::shared_ptr< Calib const >(), std::shared_ptr< cameraGeom::Detector const > const &detector=std::shared_ptr< cameraGeom::Detector const >(), std::shared_ptr< geom::polygon::Polygon const > const &polygon=std::shared_ptr< geom::polygon::Polygon const >(), Filter const &filter=Filter(), std::shared_ptr< daf::base::PropertySet > const &metadata=std::shared_ptr< daf::base::PropertySet >(), std::shared_ptr< CoaddInputs > const &coaddInputs=std::shared_ptr< CoaddInputs >(), std::shared_ptr< ApCorrMap > const &apCorrMap=std::shared_ptr< ApCorrMap >(), std::shared_ptr< image::VisitInfo const > const &visitInfo=std::shared_ptr< image::VisitInfo const >(), std::shared_ptr< TransmissionCurve const > const &transmissionCurve=std::shared_ptr< TransmissionCurve >())
 Construct an ExposureInfo from its various components. More...
 
 ExposureInfo (ExposureInfo const &other)
 Copy constructor; deep-copies all components except the metadata. More...
 
 ExposureInfo (ExposureInfo &&other)
 
 ExposureInfo (ExposureInfo const &other, bool copyMetadata)
 Copy constructor; deep-copies everything, possibly including the metadata. More...
 
ExposureInfo & operator= (ExposureInfo const &other)
 Assignment; deep-copies all components except the metadata. More...
 
ExposureInfo & operator= (ExposureInfo &&other)
 
 ~ExposureInfo ()
 

Friends

template<typename ImageT , typename MaskT , typename VarianceT >
class Exposure
 

Detailed Description

A collection of all the things that make an Exposure different from a MaskedImage.

The constness semantics of the things held by ExposureInfo are admittedly a bit of a mess, but they're that way to preserve backwards compatibility for now. Eventually I'd like to make a lot of these things immutable, but in the meantime, here's the summary:

The setters for Wcs and Calib clone their input arguments (this is a departure from the previous behavior for Calib and Wcs but it's safer w.r.t. aliasing and it matches the old (and current) behavior of the Exposure and ExposureInfo constructors, which clone their arguments. The setter for Psf and constructors do not clone the Psf, as Psfs are immutable and hence we don't need to ensure strict ownership. The setter for Detector does not clone its input argument, because while it technically isn't, we can safely consider a Detector to be immutable once it's attached to an ExposureInfo.

Definition at line 87 of file ExposureInfo.h.

Constructor & Destructor Documentation

◆ ExposureInfo() [1/4]

lsst::afw::image::ExposureInfo::ExposureInfo ( std::shared_ptr< geom::SkyWcs const > const &  wcs = std::shared_ptr<geom::SkyWcs const>(),
std::shared_ptr< detection::Psf const > const &  psf = std::shared_ptr<detection::Psf const>(),
std::shared_ptr< Calib const > const &  calib = std::shared_ptr<Calib const>(),
std::shared_ptr< cameraGeom::Detector const > const &  detector = std::shared_ptr<cameraGeom::Detector const>(),
std::shared_ptr< geom::polygon::Polygon const > const &  polygon = std::shared_ptr<geom::polygon::Polygon const>(),
Filter const &  filter = Filter(),
std::shared_ptr< daf::base::PropertySet > const &  metadata = std::shared_ptr<daf::base::PropertySet>(),
std::shared_ptr< CoaddInputs > const &  coaddInputs = std::shared_ptr<CoaddInputs>(),
std::shared_ptr< ApCorrMap > const &  apCorrMap = std::shared_ptr<ApCorrMap>(),
std::shared_ptr< image::VisitInfo const > const &  visitInfo = std::shared_ptr<image::VisitInfo const>(),
std::shared_ptr< TransmissionCurve const > const &  transmissionCurve = std::shared_ptr<TransmissionCurve>() 
)
explicit

Construct an ExposureInfo from its various components.

If a null Calib and/or PropertySet pointer is passed (the default), a new Calib and/or PropertyList will be created. To set these pointers to null, you must explicitly call setCalib or setMetadata after construction.

Definition at line 58 of file ExposureInfo.cc.

◆ ExposureInfo() [2/4]

lsst::afw::image::ExposureInfo::ExposureInfo ( ExposureInfo const &  other)

Copy constructor; deep-copies all components except the metadata.

Definition at line 81 of file ExposureInfo.cc.

◆ ExposureInfo() [3/4]

lsst::afw::image::ExposureInfo::ExposureInfo ( ExposureInfo &&  other)

Definition at line 95 of file ExposureInfo.cc.

◆ ExposureInfo() [4/4]

lsst::afw::image::ExposureInfo::ExposureInfo ( ExposureInfo const &  other,
bool  copyMetadata 
)

Copy constructor; deep-copies everything, possibly including the metadata.

Definition at line 97 of file ExposureInfo.cc.

◆ ~ExposureInfo()

lsst::afw::image::ExposureInfo::~ExposureInfo ( )
default

Member Function Documentation

◆ getApCorrMap() [1/2]

std::shared_ptr<ApCorrMap> lsst::afw::image::ExposureInfo::getApCorrMap ( )
inline

Return the exposure's aperture correction map (null pointer if !hasApCorrMap())

Definition at line 157 of file ExposureInfo.h.

◆ getApCorrMap() [2/2]

std::shared_ptr<ApCorrMap const> lsst::afw::image::ExposureInfo::getApCorrMap ( ) const
inline

Return the exposure's aperture correction map (null pointer if !hasApCorrMap())

Definition at line 160 of file ExposureInfo.h.

◆ getCalib() [1/2]

std::shared_ptr<Calib> lsst::afw::image::ExposureInfo::getCalib ( )
inline

Return the exposure's photometric calibration.

Definition at line 117 of file ExposureInfo.h.

◆ getCalib() [2/2]

std::shared_ptr<Calib const> lsst::afw::image::ExposureInfo::getCalib ( ) const
inline

Return the exposure's photometric calibration.

Definition at line 120 of file ExposureInfo.h.

◆ getCoaddInputs()

std::shared_ptr<CoaddInputs> lsst::afw::image::ExposureInfo::getCoaddInputs ( ) const
inline

Return a pair of catalogs that record the inputs, if this Exposure is a coadd (otherwise null).

Definition at line 180 of file ExposureInfo.h.

◆ getDetector()

std::shared_ptr<cameraGeom::Detector const> lsst::afw::image::ExposureInfo::getDetector ( ) const
inline

Return the exposure's Detector information.

Definition at line 102 of file ExposureInfo.h.

◆ getFilter()

Filter lsst::afw::image::ExposureInfo::getFilter ( ) const
inline

Return the exposure's filter.

Definition at line 108 of file ExposureInfo.h.

◆ getMetadata()

std::shared_ptr<daf::base::PropertySet> lsst::afw::image::ExposureInfo::getMetadata ( ) const
inline

Return flexible metadata.

Definition at line 126 of file ExposureInfo.h.

◆ getPsf()

std::shared_ptr<detection::Psf> lsst::afw::image::ExposureInfo::getPsf ( ) const
inline

Return the exposure's point-spread function.

Definition at line 135 of file ExposureInfo.h.

◆ getTransmissionCurve()

std::shared_ptr<TransmissionCurve const> lsst::afw::image::ExposureInfo::getTransmissionCurve ( ) const
inline

Return the exposure's transmission curve.

Definition at line 195 of file ExposureInfo.h.

◆ getValidPolygon()

std::shared_ptr<geom::polygon::Polygon const> lsst::afw::image::ExposureInfo::getValidPolygon ( ) const
inline

Return the valid Polygon.

Definition at line 148 of file ExposureInfo.h.

◆ getVisitInfo()

std::shared_ptr<image::VisitInfo const> lsst::afw::image::ExposureInfo::getVisitInfo ( ) const
inline

Return the exposure's visit info.

Definition at line 183 of file ExposureInfo.h.

◆ getWcs()

std::shared_ptr<geom::SkyWcs const> lsst::afw::image::ExposureInfo::getWcs ( ) const
inline

Return the WCS of the exposure.

Definition at line 93 of file ExposureInfo.h.

◆ hasApCorrMap()

bool lsst::afw::image::ExposureInfo::hasApCorrMap ( ) const
inline

Return true if the exposure has an aperture correction map.

Definition at line 154 of file ExposureInfo.h.

◆ hasCalib()

bool lsst::afw::image::ExposureInfo::hasCalib ( ) const
inline

Does this exposure have a Calib?

Definition at line 114 of file ExposureInfo.h.

◆ hasCoaddInputs()

bool lsst::afw::image::ExposureInfo::hasCoaddInputs ( ) const
inline

Does this exposure have coadd provenance catalogs?

Definition at line 174 of file ExposureInfo.h.

◆ hasDetector()

bool lsst::afw::image::ExposureInfo::hasDetector ( ) const
inline

Does this exposure have Detector information?

Definition at line 99 of file ExposureInfo.h.

◆ hasPsf()

bool lsst::afw::image::ExposureInfo::hasPsf ( ) const
inline

Does this exposure have a Psf?

Definition at line 132 of file ExposureInfo.h.

◆ hasTransmissionCurve()

bool lsst::afw::image::ExposureInfo::hasTransmissionCurve ( ) const
inline

Does this exposure have a transmission curve?

Definition at line 192 of file ExposureInfo.h.

◆ hasValidPolygon()

bool lsst::afw::image::ExposureInfo::hasValidPolygon ( ) const
inline

Does this exposure have a valid Polygon.

Definition at line 145 of file ExposureInfo.h.

◆ hasVisitInfo()

bool lsst::afw::image::ExposureInfo::hasVisitInfo ( ) const
inline

Does this exposure have visit info?

Definition at line 186 of file ExposureInfo.h.

◆ hasWcs()

bool lsst::afw::image::ExposureInfo::hasWcs ( ) const
inline

Does this exposure have a Wcs?

Definition at line 90 of file ExposureInfo.h.

◆ initApCorrMap()

void lsst::afw::image::ExposureInfo::initApCorrMap ( )

Set the exposure's aperture correction map to a new, empty map.

Note that the ExposureInfo constructors do not create an empty aperture correction map, so this method provide a convenient way to initialize one before filling it.

Definition at line 131 of file ExposureInfo.cc.

◆ operator=() [1/2]

ExposureInfo & lsst::afw::image::ExposureInfo::operator= ( ExposureInfo const &  other)

Assignment; deep-copies all components except the metadata.

Definition at line 112 of file ExposureInfo.cc.

◆ operator=() [2/2]

ExposureInfo & lsst::afw::image::ExposureInfo::operator= ( ExposureInfo &&  other)

Definition at line 129 of file ExposureInfo.cc.

◆ setApCorrMap()

void lsst::afw::image::ExposureInfo::setApCorrMap ( std::shared_ptr< ApCorrMap >  apCorrMap)
inline

Set the exposure's aperture correction map (null pointer if !hasApCorrMap())

Definition at line 163 of file ExposureInfo.h.

◆ setCalib()

void lsst::afw::image::ExposureInfo::setCalib ( std::shared_ptr< Calib const >  calib)
inline

Set the Exposure's Calib object.

Definition at line 123 of file ExposureInfo.h.

◆ setCoaddInputs()

void lsst::afw::image::ExposureInfo::setCoaddInputs ( std::shared_ptr< CoaddInputs >  coaddInputs)
inline

Set the exposure's coadd provenance catalogs.

Definition at line 177 of file ExposureInfo.h.

◆ setDetector()

void lsst::afw::image::ExposureInfo::setDetector ( std::shared_ptr< cameraGeom::Detector const >  detector)
inline

Set the exposure's Detector information.

Definition at line 105 of file ExposureInfo.h.

◆ setFilter()

void lsst::afw::image::ExposureInfo::setFilter ( Filter const &  filter)
inline

Set the exposure's filter.

Definition at line 111 of file ExposureInfo.h.

◆ setMetadata()

void lsst::afw::image::ExposureInfo::setMetadata ( std::shared_ptr< daf::base::PropertySet >  metadata)
inline

Set the flexible metadata.

Definition at line 129 of file ExposureInfo.h.

◆ setPsf()

void lsst::afw::image::ExposureInfo::setPsf ( std::shared_ptr< detection::Psf const >  psf)
inline

Set the exposure's point-spread function.

Definition at line 138 of file ExposureInfo.h.

◆ setTransmissionCurve()

void lsst::afw::image::ExposureInfo::setTransmissionCurve ( std::shared_ptr< TransmissionCurve const >  tc)
inline

Set the exposure's transmission curve.

Definition at line 198 of file ExposureInfo.h.

◆ setValidPolygon()

void lsst::afw::image::ExposureInfo::setValidPolygon ( std::shared_ptr< geom::polygon::Polygon const >  polygon)
inline

Set the exposure's valid Polygon.

Definition at line 151 of file ExposureInfo.h.

◆ setVisitInfo()

void lsst::afw::image::ExposureInfo::setVisitInfo ( std::shared_ptr< image::VisitInfo const > const  visitInfo)
inline

Set the exposure's visit info.

Definition at line 189 of file ExposureInfo.h.

◆ setWcs()

void lsst::afw::image::ExposureInfo::setWcs ( std::shared_ptr< geom::SkyWcs const >  wcs)
inline

Set the WCS of the exposure.

Definition at line 96 of file ExposureInfo.h.

Friends And Related Function Documentation

◆ Exposure

template<typename ImageT , typename MaskT , typename VarianceT >
friend class Exposure
friend

Definition at line 241 of file ExposureInfo.h.


The documentation for this class was generated from the following files: