EleFits
4.0.0
A modern C++ API on top of CFitsIO
|
◆ access() [1/2]
template<class T = Hdu>
Access the HDU at given 0-based index.
The type can be ImageHdu, BintableHdu or unspecified (i.e. base class Hdu, the metadata reader-writer.). In the latter case, if needs be, the returned HDU can still be cast to an ImageHdu or BintableHdu: const auto &ext = f.access<>(1);
ext.as<ImageHdu>().readRaster<float>();
|