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; }
162 #endif // !LSST_AFW_IMAGE_IMAGEBASEFITSREADER_H
std::string getFileName() const
Return the file name associated with the FITS object or "<unknown>" if there is none.
std::shared_ptr< daf::base::PropertyList > readMetadata()
Read the image's FITS header.
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::string readDType() const
Read a string describing the pixel type of the on-disk image.
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.
ImageBaseFitsReader(std::string const &fileName, int hdu=fits::DEFAULT_HDU)
Construct a FITS reader object.
A base class for image defects.
Lifetime-management for memory that goes into FITS memory files.
~ImageBaseFitsReader() noexcept
int getHdu() const noexcept
Return the HDU this reader targets.
ImageBaseFitsReader & operator=(ImageBaseFitsReader const &)=delete
A FITS reader class for MaskedImages and their components.
Base class for image FITS readers.
ndarray::Array< T, 2, 2 > readArray(lsst::geom::Box2I const &bbox, ImageOrigin origin=PARENT, bool allowUnsafe=false)
Read the image's data array.
const int DEFAULT_HDU
Specify that the default HDU should be read.