type
getHDUtype(file)
Return the current HDUs type as a string.
This is the equivalent of the cfitsio fits_get_hdu_type function.
file - opened fits file.
type - current hdu type