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


get_fits_size


This routine reads the number of pixels, the resolution parameter and the pixel ordering of a FITS file containing a HEALPix map.


Location in HEALPix directory tree: src/C/subs/get_fits_size.c


FORMAT

long get_fits_size(char *filename, long *nside, char *ordering)


ARGUMENTS

name&dimensionality kind in/out description
       
get_fits_size long OUT number of pixels the FITS file
filename char IN filename of the FITS-file containing the HEALPix map.
ordering char OUT pixel ordering, either 'RING' or 'NESTED'
nside long OUT Healpix resolution parameter Nside


EXAMPLE:

long npix, nside ;
char file[180]=''map.fits'' ;
char order[10] ;
npix= get_fits_size(file, &nside, order)

Returns in npix the number of pixel in the file 'map.fits', and read in nside or order its resolution parameter or ordering scheme


RELATED ROUTINES

This section lists the routines related to get_fits_size


read_healpix_map
subroutine to read HEALPix maps
write_healpix_map
subroutine to write HEALPix maps

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

CL 03-2650