NASA - Jet Propulsion Laboratory
    + View the NASA Portal
Search JPL
Jet Propulsion Laboratory Home Earth Solar System Stars & Galaxies Technology
Introduction Background Software Links


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

Eric Hivon 2010-06-18
Privacy / Copyright
FIRST GOV Contact: NASA Home Page Site Manager:
Webmaster:

CL 03-2650