getnumext_fits

This routine returns the number of extensions present in a given FITS file.

Location in HEALPix directory tree: src/f90/mod/fitstools.F90 


FORMAT

var=getnumext_fits( filename )


ARGUMENTS

name & dimensionality kind in/out description
       
var I4B OUT number of extensions in the FITS file (excluding the primary unit). According to the current format, HEALPix files have at least one extension.
filename(LEN=filenamelen) CHR IN filename of the FITS file.


EXAMPLE:

next = getnumext_fits('map.fits')
Returns in next the number of extensions present in the FITS file 'map.fits'.

MODULES & ROUTINES

This section lists the modules and routines used by getnumext_fits.

fitstools
module, containing:
printerror
routine for printing FITS error messages.
cfitsio
library for FITS file handling.


RELATED ROUTINES

This section lists the routines related to getnumext_fits

getsize_fits
routine returning the number of data points in a FITS file, as well as much more information on the file.
input_map
routine to read a HEALPix FITS file

Version 3.83, 2024-11-13