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/chealpix.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

Version 3.82, 2022-07-28