|
LSSTApplications
1.1.2+25,10.0+13,10.0+132,10.0+133,10.0+224,10.0+41,10.0+8,10.0-1-g0f53050+14,10.0-1-g4b7b172+19,10.0-1-g61a5bae+98,10.0-1-g7408a83+3,10.0-1-gc1e0f5a+19,10.0-1-gdb4482e+14,10.0-11-g3947115+2,10.0-12-g8719d8b+2,10.0-15-ga3f480f+1,10.0-2-g4f67435,10.0-2-gcb4bc6c+26,10.0-28-gf7f57a9+1,10.0-3-g1bbe32c+14,10.0-3-g5b46d21,10.0-4-g027f45f+5,10.0-4-g86f66b5+2,10.0-4-gc4fccf3+24,10.0-40-g4349866+2,10.0-5-g766159b,10.0-5-gca2295e+25,10.0-6-g462a451+1
LSSTDataManagementBasePackage
|
A collection of all the things that make an Exposure different from a MaskedImage. More...
#include <ExposureInfo.h>
Classes | |
| struct | FitsWriteData |
| A struct passed back and forth between Exposure and ExposureInfo when writing FITS files. More... | |
Public Member Functions | |
| bool | hasWcs () const |
| Does this exposure have a Wcs? More... | |
| boost::shared_ptr< Wcs > | getWcs () |
| Return the coordinate system of the exposure. More... | |
| boost::shared_ptr< Wcs const > | getWcs () const |
| Return the coordinate system of the exposure. More... | |
| void | setWcs (boost::shared_ptr< Wcs const > wcs) |
| Set the coordinate system of the exposure. More... | |
| bool | hasDetector () const |
| Does this exposure have Detector information? More... | |
| boost::shared_ptr < cameraGeom::Detector const > | getDetector () const |
| Return the exposure's Detector information. More... | |
| void | setDetector (boost::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... | |
| boost::shared_ptr< Calib > | getCalib () |
| Return the exposure's photometric calibration. More... | |
| boost::shared_ptr< Calib const > | getCalib () const |
| Return the exposure's photometric calibration. More... | |
| void | setCalib (boost::shared_ptr< Calib const > calib) |
| Set the Exposure's Calib object. More... | |
| boost::shared_ptr < daf::base::PropertySet > | getMetadata () const |
| Return flexible metadata. More... | |
| void | setMetadata (boost::shared_ptr< daf::base::PropertySet > metadata) |
| Set the flexible metadata. More... | |
| bool | hasPsf () const |
| Does this exposure have a Psf? More... | |
| boost::shared_ptr< detection::Psf > | getPsf () const |
| Return the exposure's point-spread function. More... | |
| void | setPsf (boost::shared_ptr< detection::Psf const > psf) |
| Set the exposure's point-spread function. More... | |
| bool | hasCoaddInputs () const |
| Does this exposure have coadd provenance catalogs? More... | |
| void | setCoaddInputs (boost::shared_ptr< CoaddInputs > coaddInputs) |
| Set the exposure's coadd provenance catalogs. More... | |
| boost::shared_ptr< CoaddInputs > | getCoaddInputs () const |
| Return a pair of catalogs that record the inputs, if this Exposure is a coadd (otherwise null). More... | |
| ExposureInfo (boost::shared_ptr< Wcs const > const &wcs=boost::shared_ptr< Wcs const >(), boost::shared_ptr< detection::Psf const > const &psf=boost::shared_ptr< detection::Psf const >(), boost::shared_ptr< Calib const > const &calib=boost::shared_ptr< Calib const >(), boost::shared_ptr< cameraGeom::Detector const > const &detector=boost::shared_ptr< cameraGeom::Detector const >(), Filter const &filter=Filter(), boost::shared_ptr< daf::base::PropertySet > const &metadata=boost::shared_ptr< daf::base::PropertySet >(), boost::shared_ptr< CoaddInputs > const &coaddInputs=boost::shared_ptr< CoaddInputs >()) | |
| Construct an ExposureInfo from its various components. More... | |
| ExposureInfo (ExposureInfo const &other) | |
| Copy constructor; deep-copies all components except the metadata. More... | |
| 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 () | |
Private Member Functions | |
| FitsWriteData | _startWriteFits (geom::Point2I const &xy0=geom::Point2I()) const |
| Start the process of writing an exposure to FITS. More... | |
| void | _finishWriteFits (fits::Fits &fitsfile, FitsWriteData const &data) const |
| Write any additional non-image HDUs to a FITS file. More... | |
| void | _readFits (fits::Fits &fitsfile, boost::shared_ptr< daf::base::PropertySet > metadata, boost::shared_ptr< daf::base::PropertySet > imageMetadata) |
| Read from a FITS file and metadata. More... | |
Static Private Member Functions | |
| static boost::shared_ptr< Calib > | _cloneCalib (boost::shared_ptr< Calib const > calib) |
| static boost::shared_ptr< Wcs > | _cloneWcs (boost::shared_ptr< Wcs const > wcs) |
Private Attributes | |
| boost::shared_ptr< Wcs > | _wcs |
| boost::shared_ptr< detection::Psf > | _psf |
| boost::shared_ptr< Calib > | _calib |
| boost::shared_ptr < cameraGeom::Detector const > | _detector |
| Filter | _filter |
| boost::shared_ptr < daf::base::PropertySet > | _metadata |
| boost::shared_ptr< CoaddInputs > | _coaddInputs |
Friends | |
| template<typename ImageT , typename MaskT , typename VarianceT > | |
| class | Exposure |
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 75 of file ExposureInfo.h.
|
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 64 of file ExposureInfo.cc.
| 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.
| lsst.afw.image::ExposureInfo::ExposureInfo | ( | ExposureInfo const & | other, |
| bool | copyMetadata | ||
| ) |
Copy constructor; deep-copies everything, possibly including the metadata.
Definition at line 91 of file ExposureInfo.cc.
| lsst.afw.image::ExposureInfo::~ExposureInfo | ( | ) |
Definition at line 116 of file ExposureInfo.cc.
|
staticprivate |
Definition at line 58 of file ExposureInfo.cc.
|
private |
Write any additional non-image HDUs to a FITS file.
| [in] | fitsfile | Open FITS object to write to. Does not need to be positioned to any particular HDU. |
The additional HDUs will be appended to the FITS file, and should line up with the HDU index keys included in the result of getFitsMetadata() if this is called after writing the MaskedImage HDUs.
Definition at line 189 of file ExposureInfo.cc.
|
private |
Read from a FITS file and metadata.
This operates in-place on this instead of returning a new object, because it will usually only be called by the exposure constructor, which starts by default-constructing the ExposureInfo.
Definition at line 193 of file ExposureInfo.cc.
|
private |
Start the process of writing an exposure to FITS.
| [in] | xy0 | The origin of the exposure associated with this object, used to install a linear offset-only WCS in the FITS header. |
We need to define these keywords properly! XXX
Definition at line 119 of file ExposureInfo.cc.
|
inline |
|
inline |
|
inline |
Return a pair of catalogs that record the inputs, if this Exposure is a coadd (otherwise null).
Definition at line 143 of file ExposureInfo.h.
|
inline |
Return the exposure's Detector information.
Definition at line 94 of file ExposureInfo.h.
|
inline |
|
inline |
Return flexible metadata.
Definition at line 118 of file ExposureInfo.h.
|
inline |
Return the exposure's point-spread function.
Definition at line 127 of file ExposureInfo.h.
|
inline |
|
inline |
|
inline |
|
inline |
Does this exposure have coadd provenance catalogs?
Definition at line 137 of file ExposureInfo.h.
|
inline |
Does this exposure have Detector information?
Definition at line 91 of file ExposureInfo.h.
|
inline |
Does this exposure have a Psf?
Definition at line 124 of file ExposureInfo.h.
|
inline |
| ExposureInfo & lsst.afw.image::ExposureInfo::operator= | ( | ExposureInfo const & | other | ) |
Assignment; deep-copies all components except the metadata.
Definition at line 103 of file ExposureInfo.cc.
|
inline |
Set the Exposure's Calib object.
Definition at line 115 of file ExposureInfo.h.
|
inline |
Set the exposure's coadd provenance catalogs.
Definition at line 140 of file ExposureInfo.h.
|
inline |
Set the exposure's Detector information.
Definition at line 97 of file ExposureInfo.h.
|
inline |
|
inline |
Set the flexible metadata.
Definition at line 121 of file ExposureInfo.h.
|
inline |
Set the exposure's point-spread function.
Definition at line 130 of file ExposureInfo.h.
|
inline |
Set the coordinate system of the exposure.
Definition at line 88 of file ExposureInfo.h.
|
friend |
Definition at line 176 of file ExposureInfo.h.
|
private |
Definition at line 241 of file ExposureInfo.h.
|
private |
Definition at line 245 of file ExposureInfo.h.
|
private |
Definition at line 242 of file ExposureInfo.h.
|
private |
Definition at line 243 of file ExposureInfo.h.
|
private |
Definition at line 244 of file ExposureInfo.h.
|
private |
Definition at line 240 of file ExposureInfo.h.
|
private |
Definition at line 239 of file ExposureInfo.h.
1.8.5