lsst.afw  18.0.0-6-g7484c24d0
Classes | Public Member Functions | Static 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 hasPhotoCalib () const
 Does this exposure have a photometric calibration? More...
 
std::shared_ptr< PhotoCalib const > getPhotoCalib () const
 Return the exposure's photometric calibration. More...
 
void setPhotoCalib (std::shared_ptr< PhotoCalib const > photoCalib)
 Set the Exposure's PhotoCalib object. More...
 
bool hasCalib () const
 Does this exposure have a photometric calibration? More...
 
std::shared_ptr< PhotoCalib const > getCalib () const
 Return the exposure's photometric calibration. More...
 
void setCalib (std::shared_ptr< PhotoCalib const > photoCalib)
 Set the Exposure's PhotoCalib 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< PhotoCalib const > const &photoCalib=std::shared_ptr< PhotoCalib 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 ()
 

Static Public Member Functions

static int getFitsSerializationVersion ()
 Get the version of FITS serialization that this ExposureInfo understands. More...
 
static std::string const & getFitsSerializationVersionName ()
 Get the version of FITS serialization version info name. More...
 

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 setter for Wcs clones its input arguments (this is a departure from the previous behavior for 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 88 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< PhotoCalib const > const &  photoCalib = std::shared_ptr<PhotoCalib 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 PhotoCalib and/or PropertySet pointer is passed (the default), a new PhotoCalib and/or PropertyList will be created. To set these pointers to null, you must explicitly call setPhotoCalib or setMetadata after construction.

Definition at line 66 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 89 of file ExposureInfo.cc.

◆ ExposureInfo() [3/4]

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

Definition at line 103 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 105 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 172 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 175 of file ExposureInfo.h.

◆ getCalib()

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

Return the exposure's photometric calibration.

Definition at line 130 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 195 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 103 of file ExposureInfo.h.

◆ getFilter()

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

Return the exposure's filter.

Definition at line 109 of file ExposureInfo.h.

◆ getFitsSerializationVersion()

int lsst::afw::image::ExposureInfo::getFitsSerializationVersion ( )
static

Get the version of FITS serialization that this ExposureInfo understands.

Definition at line 44 of file ExposureInfo.cc.

◆ getFitsSerializationVersionName()

std::string const & lsst::afw::image::ExposureInfo::getFitsSerializationVersionName ( )
static

Get the version of FITS serialization version info name.

Definition at line 52 of file ExposureInfo.cc.

◆ getMetadata()

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

Return flexible metadata.

Definition at line 141 of file ExposureInfo.h.

◆ getPhotoCalib()

std::shared_ptr<PhotoCalib const> lsst::afw::image::ExposureInfo::getPhotoCalib ( ) const
inline

Return the exposure's photometric calibration.

Definition at line 118 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 150 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 210 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 163 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 198 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 94 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 169 of file ExposureInfo.h.

◆ hasCalib()

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

Does this exposure have a photometric calibration?

Definition at line 124 of file ExposureInfo.h.

◆ hasCoaddInputs()

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

Does this exposure have coadd provenance catalogs?

Definition at line 189 of file ExposureInfo.h.

◆ hasDetector()

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

Does this exposure have Detector information?

Definition at line 100 of file ExposureInfo.h.

◆ hasPhotoCalib()

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

Does this exposure have a photometric calibration?

Definition at line 115 of file ExposureInfo.h.

◆ hasPsf()

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

Does this exposure have a Psf?

Definition at line 147 of file ExposureInfo.h.

◆ hasTransmissionCurve()

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

Does this exposure have a transmission curve?

Definition at line 207 of file ExposureInfo.h.

◆ hasValidPolygon()

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

Does this exposure have a valid Polygon.

Definition at line 160 of file ExposureInfo.h.

◆ hasVisitInfo()

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

Does this exposure have visit info?

Definition at line 201 of file ExposureInfo.h.

◆ hasWcs()

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

Does this exposure have a Wcs?

Definition at line 91 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 139 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 120 of file ExposureInfo.cc.

◆ operator=() [2/2]

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

Definition at line 137 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 178 of file ExposureInfo.h.

◆ setCalib()

void lsst::afw::image::ExposureInfo::setCalib ( std::shared_ptr< PhotoCalib const >  photoCalib)
inline

Set the Exposure's PhotoCalib object.

Definition at line 135 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 192 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 106 of file ExposureInfo.h.

◆ setFilter()

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

Set the exposure's filter.

Definition at line 112 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 144 of file ExposureInfo.h.

◆ setPhotoCalib()

void lsst::afw::image::ExposureInfo::setPhotoCalib ( std::shared_ptr< PhotoCalib const >  photoCalib)
inline

Set the Exposure's PhotoCalib object.

Definition at line 121 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 153 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 213 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 166 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 204 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 97 of file ExposureInfo.h.

Friends And Related Function Documentation

◆ Exposure

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

Definition at line 262 of file ExposureInfo.h.


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