LSSTApplications
20.0.0
LSSTDataManagementBasePackage
|
Go to the documentation of this file.
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);
249 bool conformMasks = false,
bool allowUnsafe = false);
269 bool conformMasks = false,
bool allowUnsafe = false);
277 class MetadataReader;
280 void _ensureReaders();
282 fits::Fits *_getFitsFile() {
return _maskedImageReader._getFitsFile(); }
284 MaskedImageFitsReader _maskedImageReader;
293 #endif // !LSST_AFW_IMAGE_EXPOSUREFITSREADER_H
ExposureFitsReader & operator=(ExposureFitsReader const &)=delete
Backwards-compatibility support for depersisting the old Calib (FluxMag0/FluxMag0Err) objects.
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.
ExposureFitsReader(std::string const &fileName)
Construct a FITS reader object.
Represent a 2-dimensional array of bitmask pixels.
A class to contain the data, WCS, and other information needed to describe an image of the sky.
Filter readFilter()
Read the Exposure's filter.
Image< VariancePixelT > readVariance(lsst::geom::Box2I const &bbox=lsst::geom::Box2I(), ImageOrigin origin=PARENT, bool allowUnsafe=false)
Read the variance plane.
A simple struct that combines the two arguments that must be passed to most cfitsio routines and cont...
ExposureFitsReader(ExposureFitsReader &&)=delete
Holds an integer identifier for an LSST filter.
ndarray::Array< MaskPixelT, 2, 2 > readMaskArray(lsst::geom::Box2I const &bbox=lsst::geom::Box2I(), ImageOrigin origin=PARENT, bool allowUnsafe=false)
Read the mask plane.
lsst::geom::Box2I readBBox(ImageOrigin origin=PARENT)
Read the bounding box of the on-disk image.
std::map< std::string, std::shared_ptr< table::io::Persistable > > readExtraComponents()
Read the Exposure's non-standard components.
Lifetime-management for memory that goes into FITS memory files.
std::shared_ptr< cameraGeom::Detector > readDetector()
Read the Exposure's detector.
std::string readVarianceDType() const
Read a string describing the pixel type of the on-disk image plane.
std::shared_ptr< ExposureInfo > readExposureInfo()
Read the ExposureInfo containing all non-image components.
A class to manipulate images, masks, and variance as a single object.
std::shared_ptr< daf::base::PropertyList > readMetadata()
Read the flexible metadata associated with the Exposure.
Information about a single exposure of an imaging camera.
A collection of all the things that make an Exposure different from a MaskedImage.
std::shared_ptr< afw::geom::SkyWcs > readWcs()
Read the Exposure's world coordinate system.
std::shared_ptr< CoaddInputs > readCoaddInputs()
Read the Exposure's coadd input catalogs.
Image< ImagePixelT > readImage(lsst::geom::Box2I const &bbox=lsst::geom::Box2I(), ImageOrigin origin=PARENT, bool allowUnsafe=false)
Read the image plane.
std::string readMaskDType() const
Read a string describing the pixel type of the on-disk image plane.
float VariancePixel
default type for MaskedImage variance images
Mask< MaskPixelT > readMask(lsst::geom::Box2I const &bbox=lsst::geom::Box2I(), ImageOrigin origin=PARENT, bool conformMasks=false, bool allowUnsafe=false)
Read the mask plane.
The photometric calibration of an exposure.
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 base class for image defects.
std::shared_ptr< ApCorrMap > readApCorrMap()
Read the Exposure's aperture correction map.
A spatially-varying transmission curve as a function of wavelength.
A FITS reader class for Exposures and their components.
std::shared_ptr< TransmissionCurve > readTransmissionCurve()
Read the Exposure's transmission curve.
std::string getFileName() const
Return the name of the file this reader targets.
std::string readImageDType() const
Read a string describing the pixel type of the on-disk image plane.
std::shared_ptr< VisitInfo > readVisitInfo()
Read the Exposure's visit metadata.
An integer coordinate rectangle.
std::shared_ptr< afw::geom::polygon::Polygon > readValidPolygon()
Read the polygon describing the region of validity for the Exposure.
ExposureFitsReader(ExposureFitsReader const &)=delete
ExposureFitsReader & operator=(ExposureFitsReader &&)=delete
std::shared_ptr< detection::Psf > readPsf()
Read the Exposure's point-spread function.
std::shared_ptr< PhotoCalib > readPhotoCalib()
Read the Exposure's photometric calibration.
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.
A thin wrapper around std::map to allow aperture corrections to be attached to Exposures.
A class to represent a 2-dimensional array of pixels.
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::string getFileName() const
Return the name of the file this reader targets.
ndarray::Array< ImagePixelT, 2, 2 > readImageArray(lsst::geom::Box2I const &bbox=lsst::geom::Box2I(), ImageOrigin origin=PARENT, bool allowUnsafe=false)
Read the image plane.
~ExposureFitsReader() noexcept