lsst.afw  13.0-110-ge674a0930
Public Types | Public Member Functions | Static Public Member Functions | List of all members
lsst::afw::image::Exposure< ImageT, MaskT, VarianceT > Class Template Reference

A class to contain the data, WCS, and other information needed to describe an image of the sky. More...

#include <Exposure.h>

Inheritance diagram for lsst::afw::image::Exposure< ImageT, MaskT, VarianceT >:

Public Types

typedef MaskedImage< ImageT, MaskT, VarianceT > MaskedImageT
 

Public Member Functions

 Exposure (unsigned int width, unsigned int height, std::shared_ptr< Wcs const > wcs=std::shared_ptr< Wcs const >())
 Construct an Exposure with a blank MaskedImage of specified size (default 0x0) and a Wcs (which may be default constructed) More...
 
 Exposure (lsst::afw::geom::Extent2I const &dimensions=lsst::afw::geom::Extent2I(), std::shared_ptr< Wcs const > wcs=std::shared_ptr< Wcs const >())
 Construct an Exposure with a blank MaskedImage of specified size (default 0x0) and a Wcs (which may be default constructed) More...
 
 Exposure (lsst::afw::geom::Box2I const &bbox, std::shared_ptr< Wcs const > wcs=std::shared_ptr< Wcs const >())
 Construct an Exposure with a blank MaskedImage of specified size (default 0x0) and a Wcs (which may be default constructed) More...
 
 Exposure (MaskedImageT &maskedImage, std::shared_ptr< Wcs const > wcs=std::shared_ptr< Wcs const >())
 Construct an Exposure from a MaskedImage and an optional Wcs. More...
 
 Exposure (MaskedImageT &maskedImage, std::shared_ptr< ExposureInfo > info)
 Construct an Exposure from a MaskedImage and an ExposureInfo. More...
 
 Exposure (std::string const &fileName, geom::Box2I const &bbox=geom::Box2I(), ImageOrigin origin=PARENT, bool conformMasks=false)
 Construct an Exposure by reading a regular FITS file. More...
 
 Exposure (fits::MemFileManager &manager, geom::Box2I const &bbox=geom::Box2I(), ImageOrigin origin=PARENT, bool conformMasks=false)
 Construct an Exposure by reading a FITS image in memory. More...
 
 Exposure (fits::Fits &fitsfile, geom::Box2I const &bbox=geom::Box2I(), ImageOrigin origin=PARENT, bool conformMasks=false)
 Construct an Exposure from an already-open FITS object. More...
 
 Exposure (Exposure const &src, bool const deep=false)
 Copy an Exposure. More...
 
 Exposure (Exposure const &src, lsst::afw::geom::Box2I const &bbox, ImageOrigin const origin=PARENT, bool const deep=false)
 Construct a subExposure given an Exposure and a bounding box. More...
 
template<typename OtherPixelT >
 Exposure (Exposure< OtherPixelT, MaskT, VarianceT > const &rhs, const bool deep)
 generalised copy constructor; defined here in the header so that the compiler can instantiate N(N-1)/2 conversions between N ImageBase types. More...
 
virtual ~Exposure ()
 Destructor. More...
 
MaskedImageT getMaskedImage ()
 Return the MaskedImage. More...
 
MaskedImageT getMaskedImage () const
 Return the MaskedImage. More...
 
std::shared_ptr< Wcs const > getWcs () const
 
std::shared_ptr< Wcs > getWcs ()
 
std::shared_ptr< lsst::afw::cameraGeom::Detector const > getDetector () const
 Return the Exposure's Detector information. More...
 
Filter getFilter () const
 Return the Exposure's filter. More...
 
std::shared_ptr< lsst::daf::base::PropertySet > getMetadata () const
 Return flexible metadata. More...
 
void setMetadata (std::shared_ptr< lsst::daf::base::PropertySet > metadata)
 
int getWidth () const
 Return the Exposure's width. More...
 
int getHeight () const
 Return the Exposure's height. More...
 
geom::Extent2I getDimensions () const
 Return the Exposure's size. More...
 
int getX0 () const
 Return the Exposure's column-origin. More...
 
int getY0 () const
 Return the Exposure's row-origin. More...
 
geom::Point2I getXY0 () const
 Return the Exposure's origin. More...
 
geom::Box2I getBBox (ImageOrigin const origin=PARENT) const
 
void setXY0 (geom::Point2I const &origin)
 Set the Exposure's origin (including correcting the Wcs) More...
 
void setMaskedImage (MaskedImageT &maskedImage)
 Set the MaskedImage of the Exposure. More...
 
void setWcs (std::shared_ptr< Wcs > wcs)
 
void setDetector (std::shared_ptr< lsst::afw::cameraGeom::Detector const > detector)
 Set the Exposure's Detector information. More...
 
void setFilter (Filter const &filter)
 Set the Exposure's filter. More...
 
void setCalib (std::shared_ptr< Calib > calib)
 Set the Exposure's Calib object. More...
 
std::shared_ptr< Calib > getCalib ()
 Return the Exposure's Calib object. More...
 
std::shared_ptr< Calib const > getCalib () const
 Return the Exposure's Calib object. More...
 
void setPsf (std::shared_ptr< lsst::afw::detection::Psf const > psf)
 Set the Exposure's Psf. More...
 
std::shared_ptr< lsst::afw::detection::Psf > getPsf ()
 Return the Exposure's Psf object. More...
 
std::shared_ptr< lsst::afw::detection::Psf const > getPsf () const
 Return the Exposure's Psf object. More...
 
bool hasPsf () const
 Does this Exposure have a Psf? More...
 
bool hasWcs () const
 Does this Exposure have a Wcs? More...
 
std::shared_ptr< ExposureInfo > getInfo ()
 Get the ExposureInfo that aggregates all the non-image components. Never null. More...
 
std::shared_ptr< ExposureInfo const > getInfo () const
 Get the ExposureInfo that aggregates all the non-image components. Never null. More...
 
void setInfo (std::shared_ptr< ExposureInfo > exposureInfo)
 Set the ExposureInfo that aggregates all the non-image components. More...
 
void writeFits (std::string const &fileName) const
 Write an Exposure to a regular multi-extension FITS file. More...
 
void writeFits (fits::MemFileManager &manager) const
 Write an Exposure to a multi-extension FITS file in memory. More...
 
void writeFits (fits::Fits &fitsfile) const
 Write an Exposure to an already-open FITS file object. More...
 
void writeFits (std::string const &fileName, fits::ImageWriteOptions const &imageOptions, fits::ImageWriteOptions const &maskOptions, fits::ImageWriteOptions const &varianceOptions) const
 Write an Exposure to a regular multi-extension FITS file. More...
 
void writeFits (fits::MemFileManager &manager, fits::ImageWriteOptions const &imageOptions, fits::ImageWriteOptions const &maskOptions, fits::ImageWriteOptions const &varianceOptions) const
 Write an Exposure to a regular multi-extension FITS file. More...
 
void writeFits (fits::Fits &fitsfile, fits::ImageWriteOptions const &imageOptions, fits::ImageWriteOptions const &maskOptions, fits::ImageWriteOptions const &varianceOptions) const
 Write an Exposure to a regular multi-extension FITS file. More...
 

Static Public Member Functions

static Exposure readFits (std::string const &filename)
 Read an Exposure from a regular FITS file. More...
 
static Exposure readFits (fits::MemFileManager &manager)
 Read an Exposure from a FITS RAM file. More...
 

Detailed Description

template<typename ImageT, typename MaskT = lsst::afw::image::MaskPixel, typename VarianceT = lsst::afw::image::VariancePixel>
class lsst::afw::image::Exposure< ImageT, MaskT, VarianceT >

A class to contain the data, WCS, and other information needed to describe an image of the sky.

Exposure Class Implementation for LSST: a templated framework class for creating an Exposure from a MaskedImage and a Wcs.

An Exposure is required to take one afwImage::MaskedImage or a region (col, row) defining the size of a MaskedImage (this can be of size 0,0). An Exposure can (but is not required to) contain a afwImage::Wcs.

The template types should optimally be a float, double, unsigned int 16 bit, or unsigned int 32 bit for the image (pixel) type and an unsigned int 32 bit for the mask type. These types have been explicitly instantiated for the Exposure class. All MaskedImage and Wcs constructors are 'const' to allow for views and copying.

An Exposure can get and return its MaskedImage, Wcs, and a subExposure. The getSubExposure member takes a BBox region defining the subRegion of the original Exposure to be returned. The member retrieves the MaskedImage corresponding to the subRegion. The MaskedImage class throws an exception for any subRegion extending beyond the original MaskedImage bounding box. This member is not yet fully implemented because it requires the Wcs class to return the Wcs metadata to the member so the CRPIX values of the Wcs can be adjusted to reflect the new subMaskedImage origin. The getSubExposure member will eventually return a subExposure consisting of the subMAskedImage and the Wcs object with its corresponding adjusted metadata.

The hasWcs member is used to determine if the Exposure has a Wcs. It is not required to have one.

Definition at line 76 of file Exposure.h.

Member Typedef Documentation

◆ MaskedImageT

template<typename ImageT, typename MaskT = lsst::afw::image::MaskPixel, typename VarianceT = lsst::afw::image::VariancePixel>
typedef MaskedImage<ImageT, MaskT, VarianceT> lsst::afw::image::Exposure< ImageT, MaskT, VarianceT >::MaskedImageT

Definition at line 78 of file Exposure.h.

Constructor & Destructor Documentation

◆ Exposure() [1/11]

template<typename ImageT , typename MaskT , typename VarianceT >
lsst::afw::image::Exposure< ImageT, MaskT, VarianceT >::Exposure ( unsigned int  width,
unsigned int  height,
std::shared_ptr< Wcs const >  wcs = std::shared_ptr<Wcs const>() 
)
explicit

Construct an Exposure with a blank MaskedImage of specified size (default 0x0) and a Wcs (which may be default constructed)

Parameters
widthnumber of columns
heightnumber of rows
wcsthe Wcs

Definition at line 50 of file Exposure.cc.

◆ Exposure() [2/11]

template<typename ImageT , typename MaskT , typename VarianceT >
lsst::afw::image::Exposure< ImageT, MaskT, VarianceT >::Exposure ( lsst::afw::geom::Extent2I const &  dimensions = lsst::afw::geom::Extent2I(),
std::shared_ptr< Wcs const >  wcs = std::shared_ptr<Wcs const>() 
)
explicit

Construct an Exposure with a blank MaskedImage of specified size (default 0x0) and a Wcs (which may be default constructed)

Parameters
dimensionsdesired image width/height
wcsthe Wcs

Definition at line 55 of file Exposure.cc.

◆ Exposure() [3/11]

template<typename ImageT , typename MaskT , typename VarianceT >
lsst::afw::image::Exposure< ImageT, MaskT, VarianceT >::Exposure ( lsst::afw::geom::Box2I const &  bbox,
std::shared_ptr< Wcs const >  wcs = std::shared_ptr<Wcs const>() 
)
explicit

Construct an Exposure with a blank MaskedImage of specified size (default 0x0) and a Wcs (which may be default constructed)

Parameters
bboxdesired image width/height, and origin
wcsthe Wcs

Definition at line 59 of file Exposure.cc.

◆ Exposure() [4/11]

template<typename ImageT , typename MaskT , typename VarianceT >
lsst::afw::image::Exposure< ImageT, MaskT, VarianceT >::Exposure ( MaskedImageT &  maskedImage,
std::shared_ptr< Wcs const >  wcs = std::shared_ptr<Wcs const>() 
)
explicit

Construct an Exposure from a MaskedImage and an optional Wcs.

Parameters
maskedImagethe MaskedImage
wcsthe Wcs

Definition at line 63 of file Exposure.cc.

◆ Exposure() [5/11]

template<typename ImageT , typename MaskT , typename VarianceT >
lsst::afw::image::Exposure< ImageT, MaskT, VarianceT >::Exposure ( MaskedImageT &  maskedImage,
std::shared_ptr< ExposureInfo >  info 
)
explicit

Construct an Exposure from a MaskedImage and an ExposureInfo.

If the ExposureInfo is an empty pointer then a new empty ExposureInfo is used

Parameters
maskedImagethe MaskedImage
infothe ExposureInfo

Definition at line 67 of file Exposure.cc.

◆ Exposure() [6/11]

template<typename ImageT , typename MaskT , typename VarianceT >
lsst::afw::image::Exposure< ImageT, MaskT, VarianceT >::Exposure ( std::string const &  fileName,
geom::Box2I const &  bbox = geom::Box2I(),
ImageOrigin  origin = PARENT,
bool  conformMasks = false 
)
explicit

Construct an Exposure by reading a regular FITS file.

Parameters
[in]fileNameFile to read.
[in]bboxIf non-empty, read only the pixels within the bounding box.
[in]originCoordinate system of the bounding box; if PARENT, the bounding box should take into account the xy0 saved with the image.
[in]conformMasksIf true, make Mask conform to the mask layout in the file.

Definition at line 86 of file Exposure.cc.

◆ Exposure() [7/11]

template<typename ImageT , typename MaskT , typename VarianceT >
lsst::afw::image::Exposure< ImageT, MaskT, VarianceT >::Exposure ( fits::MemFileManager &  manager,
geom::Box2I const &  bbox = geom::Box2I(),
ImageOrigin  origin = PARENT,
bool  conformMasks = false 
)
explicit

Construct an Exposure by reading a FITS image in memory.

Parameters
[in]managerAn object that manages the memory buffer to read.
[in]bboxIf non-empty, read only the pixels within the bounding box.
[in]originCoordinate system of the bounding box; if PARENT, the bounding box should take into account the xy0 saved with the image.
[in]conformMasksIf true, make Mask conform to the mask layout in the file.

Definition at line 94 of file Exposure.cc.

◆ Exposure() [8/11]

template<typename ImageT , typename MaskT , typename VarianceT >
lsst::afw::image::Exposure< ImageT, MaskT, VarianceT >::Exposure ( fits::Fits &  fitsfile,
geom::Box2I const &  bbox = geom::Box2I(),
ImageOrigin  origin = PARENT,
bool  conformMasks = false 
)
explicit

Construct an Exposure from an already-open FITS object.

Parameters
[in]fitsfileA FITS object to read from. Current HDU is ignored.
[in]bboxIf non-empty, read only the pixels within the bounding box.
[in]originCoordinate system of the bounding box; if PARENT, the bounding box should take into account the xy0 saved with the image.
[in]conformMasksIf true, make Mask conform to the mask layout in the file.

Definition at line 102 of file Exposure.cc.

◆ Exposure() [9/11]

template<typename ImageT , typename MaskT , typename VarianceT >
lsst::afw::image::Exposure< ImageT, MaskT, VarianceT >::Exposure ( Exposure< ImageT, MaskT, VarianceT > const &  src,
bool const  deep = false 
)

Copy an Exposure.

Parameters
srcParent Exposure
deepShould we copy the pixels?

Definition at line 73 of file Exposure.cc.

◆ Exposure() [10/11]

template<typename ImageT , typename MaskT , typename VarianceT >
lsst::afw::image::Exposure< ImageT, MaskT, VarianceT >::Exposure ( Exposure< ImageT, MaskT, VarianceT > const &  src,
lsst::afw::geom::Box2I const &  bbox,
ImageOrigin const  origin = PARENT,
bool const  deep = false 
)

Construct a subExposure given an Exposure and a bounding box.

Parameters
srcParent Exposure
bboxDesired region in Exposure
originCoordinate system for bbox
deepShould we copy the pixels?
Exceptions
lsst::pex::exceptions::InvalidParameterErrorif the requested subRegion is not fully contained by the original MaskedImage BBox.

Definition at line 79 of file Exposure.cc.

◆ Exposure() [11/11]

template<typename ImageT, typename MaskT = lsst::afw::image::MaskPixel, typename VarianceT = lsst::afw::image::VariancePixel>
template<typename OtherPixelT >
lsst::afw::image::Exposure< ImageT, MaskT, VarianceT >::Exposure ( Exposure< OtherPixelT, MaskT, VarianceT > const &  rhs,
const bool  deep 
)
inline

generalised copy constructor; defined here in the header so that the compiler can instantiate N(N-1)/2 conversions between N ImageBase types.

We only support converting the Image part

Parameters
rhsInput Exposure
deepMust be true; needed to disambiguate

Definition at line 187 of file Exposure.h.

◆ ~Exposure()

template<typename ImageT , typename MaskT , typename VarianceT >
lsst::afw::image::Exposure< ImageT, MaskT, VarianceT >::~Exposure ( )
virtual

Destructor.

Definition at line 118 of file Exposure.cc.

Member Function Documentation

◆ getBBox()

template<typename ImageT, typename MaskT = lsst::afw::image::MaskPixel, typename VarianceT = lsst::afw::image::VariancePixel>
geom::Box2I lsst::afw::image::Exposure< ImageT, MaskT, VarianceT >::getBBox ( ImageOrigin const  origin = PARENT) const
inline

Definition at line 251 of file Exposure.h.

◆ getCalib() [1/2]

template<typename ImageT, typename MaskT = lsst::afw::image::MaskPixel, typename VarianceT = lsst::afw::image::VariancePixel>
std::shared_ptr<Calib> lsst::afw::image::Exposure< ImageT, MaskT, VarianceT >::getCalib ( )
inline

Return the Exposure's Calib object.

Definition at line 276 of file Exposure.h.

◆ getCalib() [2/2]

template<typename ImageT, typename MaskT = lsst::afw::image::MaskPixel, typename VarianceT = lsst::afw::image::VariancePixel>
std::shared_ptr<Calib const> lsst::afw::image::Exposure< ImageT, MaskT, VarianceT >::getCalib ( ) const
inline

Return the Exposure's Calib object.

Definition at line 278 of file Exposure.h.

◆ getDetector()

template<typename ImageT, typename MaskT = lsst::afw::image::MaskPixel, typename VarianceT = lsst::afw::image::VariancePixel>
std::shared_ptr<lsst::afw::cameraGeom::Detector const> lsst::afw::image::Exposure< ImageT, MaskT, VarianceT >::getDetector ( ) const
inline

Return the Exposure's Detector information.

Definition at line 213 of file Exposure.h.

◆ getDimensions()

template<typename ImageT, typename MaskT = lsst::afw::image::MaskPixel, typename VarianceT = lsst::afw::image::VariancePixel>
geom::Extent2I lsst::afw::image::Exposure< ImageT, MaskT, VarianceT >::getDimensions ( ) const
inline

Return the Exposure's size.

Definition at line 227 of file Exposure.h.

◆ getFilter()

template<typename ImageT, typename MaskT = lsst::afw::image::MaskPixel, typename VarianceT = lsst::afw::image::VariancePixel>
Filter lsst::afw::image::Exposure< ImageT, MaskT, VarianceT >::getFilter ( ) const
inline

Return the Exposure's filter.

Definition at line 217 of file Exposure.h.

◆ getHeight()

template<typename ImageT, typename MaskT = lsst::afw::image::MaskPixel, typename VarianceT = lsst::afw::image::VariancePixel>
int lsst::afw::image::Exposure< ImageT, MaskT, VarianceT >::getHeight ( ) const
inline

Return the Exposure's height.

Definition at line 225 of file Exposure.h.

◆ getInfo() [1/2]

template<typename ImageT, typename MaskT = lsst::afw::image::MaskPixel, typename VarianceT = lsst::afw::image::VariancePixel>
std::shared_ptr<ExposureInfo> lsst::afw::image::Exposure< ImageT, MaskT, VarianceT >::getInfo ( )
inline

Get the ExposureInfo that aggregates all the non-image components. Never null.

Definition at line 294 of file Exposure.h.

◆ getInfo() [2/2]

template<typename ImageT, typename MaskT = lsst::afw::image::MaskPixel, typename VarianceT = lsst::afw::image::VariancePixel>
std::shared_ptr<ExposureInfo const> lsst::afw::image::Exposure< ImageT, MaskT, VarianceT >::getInfo ( ) const
inline

Get the ExposureInfo that aggregates all the non-image components. Never null.

Definition at line 297 of file Exposure.h.

◆ getMaskedImage() [1/2]

template<typename ImageT, typename MaskT = lsst::afw::image::MaskPixel, typename VarianceT = lsst::afw::image::VariancePixel>
MaskedImageT lsst::afw::image::Exposure< ImageT, MaskT, VarianceT >::getMaskedImage ( )
inline

Return the MaskedImage.

Definition at line 205 of file Exposure.h.

◆ getMaskedImage() [2/2]

template<typename ImageT, typename MaskT = lsst::afw::image::MaskPixel, typename VarianceT = lsst::afw::image::VariancePixel>
MaskedImageT lsst::afw::image::Exposure< ImageT, MaskT, VarianceT >::getMaskedImage ( ) const
inline

Return the MaskedImage.

Definition at line 207 of file Exposure.h.

◆ getMetadata()

template<typename ImageT, typename MaskT = lsst::afw::image::MaskPixel, typename VarianceT = lsst::afw::image::VariancePixel>
std::shared_ptr<lsst::daf::base::PropertySet> lsst::afw::image::Exposure< ImageT, MaskT, VarianceT >::getMetadata ( ) const
inline

Return flexible metadata.

Definition at line 219 of file Exposure.h.

◆ getPsf() [1/2]

template<typename ImageT, typename MaskT = lsst::afw::image::MaskPixel, typename VarianceT = lsst::afw::image::VariancePixel>
std::shared_ptr<lsst::afw::detection::Psf> lsst::afw::image::Exposure< ImageT, MaskT, VarianceT >::getPsf ( )
inline

Return the Exposure's Psf object.

Definition at line 283 of file Exposure.h.

◆ getPsf() [2/2]

template<typename ImageT, typename MaskT = lsst::afw::image::MaskPixel, typename VarianceT = lsst::afw::image::VariancePixel>
std::shared_ptr<lsst::afw::detection::Psf const> lsst::afw::image::Exposure< ImageT, MaskT, VarianceT >::getPsf ( ) const
inline

Return the Exposure's Psf object.

Definition at line 285 of file Exposure.h.

◆ getWcs() [1/2]

template<typename ImageT, typename MaskT = lsst::afw::image::MaskPixel, typename VarianceT = lsst::afw::image::VariancePixel>
std::shared_ptr<Wcs const> lsst::afw::image::Exposure< ImageT, MaskT, VarianceT >::getWcs ( ) const
inline

Definition at line 209 of file Exposure.h.

◆ getWcs() [2/2]

template<typename ImageT, typename MaskT = lsst::afw::image::MaskPixel, typename VarianceT = lsst::afw::image::VariancePixel>
std::shared_ptr<Wcs> lsst::afw::image::Exposure< ImageT, MaskT, VarianceT >::getWcs ( )
inline

Definition at line 210 of file Exposure.h.

◆ getWidth()

template<typename ImageT, typename MaskT = lsst::afw::image::MaskPixel, typename VarianceT = lsst::afw::image::VariancePixel>
int lsst::afw::image::Exposure< ImageT, MaskT, VarianceT >::getWidth ( ) const
inline

Return the Exposure's width.

Definition at line 223 of file Exposure.h.

◆ getX0()

template<typename ImageT, typename MaskT = lsst::afw::image::MaskPixel, typename VarianceT = lsst::afw::image::VariancePixel>
int lsst::afw::image::Exposure< ImageT, MaskT, VarianceT >::getX0 ( ) const
inline

Return the Exposure's column-origin.

See also
getXY0()

Definition at line 234 of file Exposure.h.

◆ getXY0()

template<typename ImageT, typename MaskT = lsst::afw::image::MaskPixel, typename VarianceT = lsst::afw::image::VariancePixel>
geom::Point2I lsst::afw::image::Exposure< ImageT, MaskT, VarianceT >::getXY0 ( ) const
inline

Return the Exposure's origin.

This will usually be (0, 0) except for images created using the Exposure(fileName, hdu, BBox, mode) ctor or Exposure(Exposure, BBox) cctor The origin can be reset with setXY0

Definition at line 249 of file Exposure.h.

◆ getY0()

template<typename ImageT, typename MaskT = lsst::afw::image::MaskPixel, typename VarianceT = lsst::afw::image::VariancePixel>
int lsst::afw::image::Exposure< ImageT, MaskT, VarianceT >::getY0 ( ) const
inline

Return the Exposure's row-origin.

See also
getXY0()

Definition at line 240 of file Exposure.h.

◆ hasPsf()

template<typename ImageT, typename MaskT = lsst::afw::image::MaskPixel, typename VarianceT = lsst::afw::image::VariancePixel>
bool lsst::afw::image::Exposure< ImageT, MaskT, VarianceT >::hasPsf ( ) const
inline

Does this Exposure have a Psf?

Definition at line 288 of file Exposure.h.

◆ hasWcs()

template<typename ImageT, typename MaskT = lsst::afw::image::MaskPixel, typename VarianceT = lsst::afw::image::VariancePixel>
bool lsst::afw::image::Exposure< ImageT, MaskT, VarianceT >::hasWcs ( ) const
inline

Does this Exposure have a Wcs?

Definition at line 291 of file Exposure.h.

◆ readFits() [1/2]

template<typename ImageT, typename MaskT = lsst::afw::image::MaskPixel, typename VarianceT = lsst::afw::image::VariancePixel>
static Exposure lsst::afw::image::Exposure< ImageT, MaskT, VarianceT >::readFits ( std::string const &  filename)
inlinestatic

Read an Exposure from a regular FITS file.

Parameters
[in]filenameName of the file to read.

Definition at line 386 of file Exposure.h.

◆ readFits() [2/2]

template<typename ImageT, typename MaskT = lsst::afw::image::MaskPixel, typename VarianceT = lsst::afw::image::VariancePixel>
static Exposure lsst::afw::image::Exposure< ImageT, MaskT, VarianceT >::readFits ( fits::MemFileManager &  manager)
inlinestatic

Read an Exposure from a FITS RAM file.

Parameters
[in]managerObject that manages the memory to be read.

Definition at line 395 of file Exposure.h.

◆ setCalib()

template<typename ImageT, typename MaskT = lsst::afw::image::MaskPixel, typename VarianceT = lsst::afw::image::VariancePixel>
void lsst::afw::image::Exposure< ImageT, MaskT, VarianceT >::setCalib ( std::shared_ptr< Calib >  calib)
inline

Set the Exposure's Calib object.

Definition at line 274 of file Exposure.h.

◆ setDetector()

template<typename ImageT, typename MaskT = lsst::afw::image::MaskPixel, typename VarianceT = lsst::afw::image::VariancePixel>
void lsst::afw::image::Exposure< ImageT, MaskT, VarianceT >::setDetector ( std::shared_ptr< lsst::afw::cameraGeom::Detector const >  detector)
inline

Set the Exposure's Detector information.

Definition at line 268 of file Exposure.h.

◆ setFilter()

template<typename ImageT, typename MaskT = lsst::afw::image::MaskPixel, typename VarianceT = lsst::afw::image::VariancePixel>
void lsst::afw::image::Exposure< ImageT, MaskT, VarianceT >::setFilter ( Filter const &  filter)
inline

Set the Exposure's filter.

Definition at line 272 of file Exposure.h.

◆ setInfo()

template<typename ImageT, typename MaskT = lsst::afw::image::MaskPixel, typename VarianceT = lsst::afw::image::VariancePixel>
void lsst::afw::image::Exposure< ImageT, MaskT, VarianceT >::setInfo ( std::shared_ptr< ExposureInfo >  exposureInfo)
inline

Set the ExposureInfo that aggregates all the non-image components.

Definition at line 300 of file Exposure.h.

◆ setMaskedImage()

template<typename ImageT , typename MaskT , typename VarianceT >
void lsst::afw::image::Exposure< ImageT, MaskT, VarianceT >::setMaskedImage ( MaskedImageT &  maskedImage)

Set the MaskedImage of the Exposure.

Definition at line 123 of file Exposure.cc.

◆ setMetadata()

template<typename ImageT, typename MaskT = lsst::afw::image::MaskPixel, typename VarianceT = lsst::afw::image::VariancePixel>
void lsst::afw::image::Exposure< ImageT, MaskT, VarianceT >::setMetadata ( std::shared_ptr< lsst::daf::base::PropertySet >  metadata)
inline

Definition at line 220 of file Exposure.h.

◆ setPsf()

template<typename ImageT, typename MaskT = lsst::afw::image::MaskPixel, typename VarianceT = lsst::afw::image::VariancePixel>
void lsst::afw::image::Exposure< ImageT, MaskT, VarianceT >::setPsf ( std::shared_ptr< lsst::afw::detection::Psf const >  psf)
inline

Set the Exposure's Psf.

Definition at line 280 of file Exposure.h.

◆ setWcs()

template<typename ImageT, typename MaskT = lsst::afw::image::MaskPixel, typename VarianceT = lsst::afw::image::VariancePixel>
void lsst::afw::image::Exposure< ImageT, MaskT, VarianceT >::setWcs ( std::shared_ptr< Wcs >  wcs)
inline

Definition at line 266 of file Exposure.h.

◆ setXY0()

template<typename ImageT , typename MaskT , typename VarianceT >
void lsst::afw::image::Exposure< ImageT, MaskT, VarianceT >::setXY0 ( geom::Point2I const &  origin)

Set the Exposure's origin (including correcting the Wcs)

The origin is usually set by the constructor, so you shouldn't need this function

Note
There are use cases (e.g. memory overlays) that may want to set these values, but don't do so unless you are an Expert.

Definition at line 128 of file Exposure.cc.

◆ writeFits() [1/6]

template<typename ImageT , typename MaskT , typename VarianceT >
void lsst::afw::image::Exposure< ImageT, MaskT, VarianceT >::writeFits ( std::string const &  fileName) const

Write an Exposure to a regular multi-extension FITS file.

Parameters
[in]fileNameName of the file to write.

As with MaskedImage persistence, an empty primary HDU will be created and all images planes will be saved to extension HDUs. Most metadata will be saved only to the header of the main image HDU, but the WCS will be saved to the header of the mask and variance as well. If present, the Psf will be written to one or more additional HDUs.

Note that the LSST pixel origin differs from the FITS convention by one, so the values of CRPIX and LTV saved in the file are not the same as those in the C++ objects in memory, but are rather modified so they are interpreted by external tools (like ds9).

Definition at line 138 of file Exposure.cc.

◆ writeFits() [2/6]

template<typename ImageT , typename MaskT , typename VarianceT >
void lsst::afw::image::Exposure< ImageT, MaskT, VarianceT >::writeFits ( fits::MemFileManager &  manager) const

Write an Exposure to a multi-extension FITS file in memory.

Parameters
[in]managerManager for the memory to write to.
See also
writeFits

Definition at line 144 of file Exposure.cc.

◆ writeFits() [3/6]

template<typename ImageT , typename MaskT , typename VarianceT >
void lsst::afw::image::Exposure< ImageT, MaskT, VarianceT >::writeFits ( fits::Fits &  fitsfile) const

Write an Exposure to an already-open FITS file object.

Parameters
[in]fitsfileFITS object to write.
See also
writeFits

Definition at line 150 of file Exposure.cc.

◆ writeFits() [4/6]

template<typename ImageT , typename MaskT , typename VarianceT >
void lsst::afw::image::Exposure< ImageT, MaskT, VarianceT >::writeFits ( std::string const &  fileName,
fits::ImageWriteOptions const &  imageOptions,
fits::ImageWriteOptions const &  maskOptions,
fits::ImageWriteOptions const &  varianceOptions 
) const

Write an Exposure to a regular multi-extension FITS file.

Parameters
[in]fileNameName of the file to write.
[in]imageOptionsOptions controlling writing of image as FITS.
[in]maskOptionsOptions controlling writing of mask as FITS.
[in]varianceOptionsOptions controlling writing of variance as FITS.

Definition at line 157 of file Exposure.cc.

◆ writeFits() [5/6]

template<typename ImageT , typename MaskT , typename VarianceT >
void lsst::afw::image::Exposure< ImageT, MaskT, VarianceT >::writeFits ( fits::MemFileManager &  manager,
fits::ImageWriteOptions const &  imageOptions,
fits::ImageWriteOptions const &  maskOptions,
fits::ImageWriteOptions const &  varianceOptions 
) const

Write an Exposure to a regular multi-extension FITS file.

Parameters
[in]managerManager for the memory to write to.
[in]imageOptionsOptions controlling writing of image as FITS.
[in]maskOptionsOptions controlling writing of mask as FITS.
[in]varianceOptionsOptions controlling writing of variance as FITS.

Definition at line 168 of file Exposure.cc.

◆ writeFits() [6/6]

template<typename ImageT , typename MaskT , typename VarianceT >
void lsst::afw::image::Exposure< ImageT, MaskT, VarianceT >::writeFits ( fits::Fits &  fitsfile,
fits::ImageWriteOptions const &  imageOptions,
fits::ImageWriteOptions const &  maskOptions,
fits::ImageWriteOptions const &  varianceOptions 
) const

Write an Exposure to a regular multi-extension FITS file.

Parameters
[in]fitsfileFITS object to which to write.
[in]imageOptionsOptions controlling writing of image as FITS.
[in]maskOptionsOptions controlling writing of mask as FITS.
[in]varianceOptionsOptions controlling writing of variance as FITS.

Definition at line 179 of file Exposure.cc.


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