Class ImageFitsReader¶
Defined in File ImageFitsReader.h
Inheritance Relationships¶
Base Type¶
public lsst::afw::image::ImageBaseFitsReader
(Class ImageBaseFitsReader)
Class Documentation¶
-
class
ImageFitsReader
: public lsst::afw::image::ImageBaseFitsReader¶ A FITS reader class for regular Images.
All ImageFitsReader methods provide strong exception safety, but exceptions thrown by the internal fits::Fits object itself may change its status variable or HDU pointer; ImageFitsReader guards against this by resetting those before any use of the Fits object.
Public Functions
-
template<typename
PixelT
>
Image<PixelT>read
(lsst::geom::Box2I const &bbox = lsst::geom::Box2I(), ImageOrigin origin = PARENT, bool allowUnsafe = false)¶ Read the Image.
In Python, this templated method is wrapped with an additional
dtype
argument to provide the type to read. This defaults to the type of the on-disk image.- Parameters
bbox
: A bounding box used to defined a subimage, or an empty box (default) to read the whole image.origin
: Coordinate system convention for the given box.allowUnsafe
: Permit reading into the requested pixel type even when on-disk values may overflow or truncate.
-
template<typename