ud_grade can upgrade/degrade a HEALPix map using the hierarchical properties of HEALPix. It can also reorder a sky map (from NEST to RING and vice-versa). It operates on FITS files as well as on memory variables. Cut-sky operations are only accessible via FITS files. The degradation/upgradation is done assuming an intensive quantity (like temperature) that does not scale with surface area. In case of degradation a big pixel that contains at least one bad small pixel is considered as bad itself. When operating on FITS files, the header information from the input file that is not directly related the ordering/resolution is copied unchanged into the output file.
ud_grade, 'map_512.fits', 'map_256.fits', nside_out = 256 |
ud_grade reads the FITS file map_512.fits (that allegedly contains a map with NSIDE=512), and write in the FITS file map_256.fits a map degraded to resolution 256, with the same ordering.
ud_grade, 'map_512.fits', 'map_Nest256.fits', nside_out = 256, $ |
order_out = 'NESTED' |
ud_grade reads the FITS file map_512.fits (that allegedly contains a map with NSIDE=512), and writes in the FITS file map_Nest256.fits a map degraded to resolution 256, with NESTED ordering.
read_fits_map, 'map_Nest256.fits', mymap |
ud_grade, mymap, mymap2, nside_out = 1024, order_in='NESTED', order_out='RING' |
mymap is IDL variable containing a HEALPix NESTED-ordered map with resolution nside=256. ud_grade upgrades this map to a resolution of 1024, reorder it to RING and write it in the IDL vector mymap2.
Version 3.82, 2022-07-28