Access the HDU at given 0-based index.
- Template Parameters
-
- Returns
- A reference to the HDU reader-writer.
Backward indexing is enabled. The default handler is Hdu
, in which case the returned HDU can still be cast to another handler with Hdu::as()
, e.g.:
const auto &ext = f.access<>(-1);
auto raster = ext.as<
ImageHdu>().raster().read<
float>();
Image HDU reader-writer.
Definition: ImageHdu.h:45
Reader-writer for the image data unit.
Definition: ImageRaster.h:31
- See also
- operator[]