EleFits  4.0.1
A modern C++ API on top of CFitsIO

◆ primaryIndex

constexpr long Euclid::Fits::MefFile::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
}
Euclid::Fits::MefFile::primaryIndex
static constexpr long primaryIndex
The index of the Primary HDU.
Definition: MefFile.h:225