aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/utils/__init__.py
Commit message (Collapse)AuthorAgeFilesLines
* utils/reproject.py: Implement zea2healpix()Aaron LI2016-10-101-0/+1
| | | | | | | | | | | | | | | | The "zea2healpix()" function reprojects the maps in ZEA (zenithal/azithumal equal area) projection to HEALPix data in Galactic frame with RING ordering. The other two helper functions "_image_to_healpix()" and "_convert_wcs()" are almost copied from the "reproject" project [1]. Thanks! TODO: * Add some more logging * Implement the "inpaint" argument to inpaint the HEALPix map if exists missing pixels [1] reproject: https://github.com/astrofrog/reproject
* utils: Add function "read_fits_healpix()"Aaron LI2016-10-091-1/+1
| | | | | | 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/+1
| | | | | | NOTE: This "write_fits_healpix()" function only implements the most common case of the HEALPix FITS style.
* Add utility "setup_logging()" to setup/update loggingAaron LI2016-09-291-0/+1
| | | | | | This "setup_logging()" utility can setup the logging module with the given configuration dict, and can also update the logging configs by specify the additional parameters.
* utils/healpix.py: HEALPix data and HPX projection conversionsAaron LI2016-09-271-0/+4
* healpix2hpx: reorganize HEALPix data in HPX projection * hpx2healpix: recover the HEALPix data from HPX projection Thanks: M. Calabretta: WCSLIB: HPXcvt TODO: Add test codes