lsst.afw
21.0.0-8-gd9c33f4a0+ec3713772a
|
Go to the documentation of this file.
22 #ifndef LSST_AFW_IMAGE_IMAGEBASEFITSREADER_H
23 #define LSST_AFW_IMAGE_IMAGEBASEFITSREADER_H
32 namespace lsst {
namespace afw {
namespace image {
126 template <
typename T>
130 bool allowUnsafe=
false
136 int getHdu() const noexcept {
return _hdu; }
155 fits::Fits * _fitsFile;
157 std::shared_ptr<daf::base::PropertyList> _metadata;
162 #endif // !LSST_AFW_IMAGE_IMAGEBASEFITSREADER_H
ndarray::Array< T, 2, 2 > readArray(lsst::geom::Box2I const &bbox, ImageOrigin origin=PARENT, bool allowUnsafe=false)
Read the image's data array.
Backwards-compatibility support for depersisting the old Calib (FluxMag0/FluxMag0Err) objects.
const int DEFAULT_HDU
Specify that the default HDU should be read.
std::string getFileName() const
Return the name of the file this reader targets.
ImageBaseFitsReader(ImageBaseFitsReader const &)=delete
ImageBaseFitsReader & operator=(ImageBaseFitsReader const &)=delete
A simple struct that combines the two arguments that must be passed to most cfitsio routines and cont...
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.
int getHdu() const noexcept
Return the HDU this reader targets.
ImageBaseFitsReader(ImageBaseFitsReader &&)=delete
Lifetime-management for memory that goes into FITS memory files.
ImageBaseFitsReader(std::string const &fileName, int hdu=fits::DEFAULT_HDU)
Construct a FITS reader object.
std::string readDType() const
Read a string describing the pixel type of the on-disk image.
Base class for image FITS readers.
lsst::geom::Box2I readBBox(ImageOrigin origin=PARENT)
Read the bounding box of the on-disk image.
~ImageBaseFitsReader() noexcept
A base class for image defects.
ImageBaseFitsReader & operator=(ImageBaseFitsReader &&)=delete
std::shared_ptr< daf::base::PropertyList > readMetadata()
Read the image's FITS header.
A FITS reader class for MaskedImages and their components.
std::string getFileName() const
Return the file name associated with the FITS object or "<unknown>" if there is none.