EleFits  5.3.1
A modern C++ API on top of CFITSIO
Loading...
Searching...
No Matches

◆ hdu_count()

long hdu_count ( ) const

Get the number of HDUs.

As opposed to CFITSIO's HDU counting, incomplete HDUs are taken into account: it is initialized by the constructor and then updated at each modification through MefFile methods. This way, incomplete HDUs are also taken into account where CFITSIO would exclude them. This means, for example, that the initial number of HDUs in a new file is 1 instead of 0 with CFITSIO.