aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/utils/fits.py
Commit message (Collapse)AuthorAgeFilesLines
* utils/fits.py: read_fits_healpix() also accept HDUAaron LI2016-10-091-4/+9
|
* utils: Add function "read_fits_healpix()"Aaron LI2016-10-091-0/+29
| | | | | | This function wraps on the `healpy.read_map()`, but reset the data array to its original dtype in FITS file, as well as return the FITS header in `astropy.io.fits.Header` object.
* utils: Add "write_fits_healpix()" to replace "healpy.write_map()"Aaron LI2016-10-051-0/+100
NOTE: This "write_fits_healpix()" function only implements the most common case of the HEALPix FITS style.