22 #ifndef LSST_AFW_IMAGE_EXPOSUREFITSREADER_H 23 #define LSST_AFW_IMAGE_EXPOSUREFITSREADER_H 163 template <
typename ImagePixelT>
166 template <
typename ImagePixelT>
186 template <
typename MaskPixelT>
189 bool allowUnsafe =
false);
204 template <
typename MaskPixelT>
222 template <
typename VariancePixelT>
225 template <
typename VariancePixelT>
228 bool allowUnsafe =
false);
246 template <
typename ImagePixelT,
typename MaskPixelT = MaskPixel,
typename VariancePixelT = VariancePixel>
249 bool conformMasks =
false,
bool allowUnsafe =
false);
266 template <
typename ImagePixelT,
typename MaskPixelT = MaskPixel,
typename VariancePixelT = VariancePixel>
269 bool conformMasks =
false,
bool allowUnsafe =
false);
280 void _ensureReaders();
282 fits::Fits *_getFitsFile() {
return _maskedImageReader._getFitsFile(); }
293 #endif // !LSST_AFW_IMAGE_EXPOSUREFITSREADER_H
lsst::geom::Box2I readBBox(ImageOrigin origin=PARENT)
Read the bounding box of the on-disk image.
std::string getFileName() const
Return the name of the file this reader targets.
std::shared_ptr< ExposureInfo > readExposureInfo()
Read the ExposureInfo containing all non-image components.
Image< VariancePixelT > readVariance(lsst::geom::Box2I const &bbox=lsst::geom::Box2I(), ImageOrigin origin=PARENT, bool allowUnsafe=false)
Read the variance plane.
A class to contain the data, WCS, and other information needed to describe an image of the sky...
std::shared_ptr< CoaddInputs > readCoaddInputs()
Read the Exposure's coadd input catalogs.
ndarray::Array< VariancePixelT, 2, 2 > readVarianceArray(lsst::geom::Box2I const &bbox=lsst::geom::Box2I(), ImageOrigin origin=PARENT, bool allowUnsafe=false)
Read the variance plane.
std::shared_ptr< VisitInfo > readVisitInfo()
Read the Exposure's visit metadata.
Image< ImagePixelT > readImage(lsst::geom::Box2I const &bbox=lsst::geom::Box2I(), ImageOrigin origin=PARENT, bool allowUnsafe=false)
Read the image plane.
ExposureFitsReader(std::string const &fileName)
Construct a FITS reader object.
A simple struct that combines the two arguments that must be passed to most cfitsio routines and cont...
std::shared_ptr< PhotoCalib > readPhotoCalib()
Read the Exposure's photometric calibration.
ExposureFitsReader & operator=(ExposureFitsReader const &)=delete
std::string readImageDType() const
Read a string describing the pixel type of the on-disk image plane.
Filter readFilter()
Read the Exposure's filter.
std::string getFileName() const
Return the name of the file this reader targets.
std::map< std::string, std::shared_ptr< table::io::Persistable > > readExtraComponents()
Read the Exposure's non-standard components.
std::shared_ptr< afw::geom::polygon::Polygon > readValidPolygon()
Read the polygon describing the region of validity for the Exposure.
~ExposureFitsReader() noexcept
A base class for image defects.
Represent a 2-dimensional array of bitmask pixels.
Lifetime-management for memory that goes into FITS memory files.
A class to manipulate images, masks, and variance as a single object.
std::string readMaskDType() const
Read a string describing the pixel type of the on-disk image plane.
Holds an integer identifier for an LSST filter.
std::shared_ptr< afw::geom::SkyWcs > readWcs()
Read the Exposure's world coordinate system.
std::shared_ptr< ApCorrMap > readApCorrMap()
Read the Exposure's aperture correction map.
MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT > readMaskedImage(lsst::geom::Box2I const &bbox=lsst::geom::Box2I(), ImageOrigin origin=PARENT, bool conformMasks=false, bool allowUnsafe=false)
Read the MaskedImage.
std::string readVarianceDType() const
Read a string describing the pixel type of the on-disk image plane.
ndarray::Array< ImagePixelT, 2, 2 > readImageArray(lsst::geom::Box2I const &bbox=lsst::geom::Box2I(), ImageOrigin origin=PARENT, bool allowUnsafe=false)
Read the image plane.
A FITS reader class for MaskedImages and their components.
lsst::geom::Point2I readXY0(lsst::geom::Box2I const &bbox=lsst::geom::Box2I(), ImageOrigin origin=PARENT)
Read the image origin from the on-disk image or a subimage thereof.
A FITS reader class for Exposures and their components.
std::shared_ptr< cameraGeom::Detector > readDetector()
Read the Exposure's detector.
ndarray::Array< MaskPixelT, 2, 2 > readMaskArray(lsst::geom::Box2I const &bbox=lsst::geom::Box2I(), ImageOrigin origin=PARENT, bool allowUnsafe=false)
Read the mask plane.
Exposure< ImagePixelT, MaskPixelT, VariancePixelT > read(lsst::geom::Box2I const &bbox=lsst::geom::Box2I(), ImageOrigin origin=PARENT, bool conformMasks=false, bool allowUnsafe=false)
Read the full Exposure.
std::shared_ptr< daf::base::PropertyList > readMetadata()
Read the flexible metadata associated with the Exposure.
std::shared_ptr< detection::Psf > readPsf()
Read the Exposure's point-spread function.
Mask< MaskPixelT > readMask(lsst::geom::Box2I const &bbox=lsst::geom::Box2I(), ImageOrigin origin=PARENT, bool conformMasks=false, bool allowUnsafe=false)
Read the mask plane.
Backwards-compatibility support for depersisting the old Calib (FluxMag0/FluxMag0Err) objects...
std::shared_ptr< TransmissionCurve > readTransmissionCurve()
Read the Exposure's transmission curve.
An integer coordinate rectangle.
A class to represent a 2-dimensional array of pixels.