getsize_fits
name&dimensionality | kind | in/out | description |
---|---|---|---|
var | I8B | OUT | number of pixels or time samples in the fits file |
filename(LEN=filenamelen) | CHR | IN | filename of the FITS-file containing HEALPix map(s). |
nmaps (OPTIONAL) | I4B | OUT | number of maps in the file. |
ordering (OPTIONAL) | I4B | OUT | pixel ordering, 0=unknown, 1=RING, 2=NESTED |
obs_npix (OPTIONAL) | I4B | OUT | number of non blanck pixels. It is set to -1 if it can not be determined from header information alone |
nside (OPTIONAL) | I4B | OUT | Healpix resolution parameter Nside |
mlpol (OPTIONAL) | I4B | OUT | maximum multipole used to generate the map (for simulated map) |
type (OPTIONAL) | I4B | OUT | Healpix/FITS file type
<0 : file not found, or not valid 0 : image only fits file, deprecated Healpix format (var = 12 * nside * nside) 1 : ascii table, generally used for C(l) storage 2 : binary table : with implicit pixel indexing (full sky) (var = 12 * nside * nside) 3 : binary table : with explicit pixel indexing (generally cut sky) (var ![]() 999 : unable to determine the type |
polarisation (OPTIONAL) | I4B | OUT | presence of polarisation data in the file
<0 : can not find out 0 : no polarisation 1 : contains polarisation (Q,U or G,C) |
Returns 1 or 3 in nmaps, dependent on wether 'map.fits' contain only temperature or both temperature and polarisation maps. The pixel ordering number is found by reading the keyword ORDERING in the FITS file. If this keyword does not exist, 0 is returned.
Eric Hivon 2003-02-07