EleFits  5.0.0
A modern C++ API on top of CFITSIO

◆ primaryIndex

constexpr long primaryIndex = 0
staticconstexpr

The index of the Primary HDU.

The HDU indices are now 0-based while they used to be 1-based. This constant makes migration smoother. It can be used to loop safely over the HDUs:

for (long i = MefFile::primaryIndex; i < MefFile::primaryIndex + f.hduCount(); ++i) {
const auto &ext = f.access<>(i);
// do something with ext
}
static constexpr long primaryIndex
The index of the Primary HDU.
Definition: MefFile.h:347
Deprecated:
No more useful now that the indexing change is old.