aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/utils/fits.py
Commit message (Collapse)AuthorAgeFilesLines
* utils: Preseve the dtype when read/write FITS filesAaron LI2016-10-101-8/+11
| | | | | | | | * utils/fits.py: hack the dtype to ignore the byteorder (FITS data use big endianness, e.g., dtype(">f4")) * utils/healpix.py: explicit convert the dtype and log the dtype * bin/healpix2hpx, bin/hpx2healpix: remove the --float argument * other minor fixes/updates
* 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.