aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/utils/__init__.py
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@outlook.com>2016-10-10 15:50:17 +0800
committerAaron LI <aaronly.me@outlook.com>2016-10-10 15:50:17 +0800
commit2d1bd712c8efed8222c95371adec85bc69100439 (patch)
tree21c3ddf5354a35b4e71ff4b41c3e716bc54cbe64 /fg21sim/utils/__init__.py
parentc1c5b3d5e899f8e385c90aae4ff881ecad3c7422 (diff)
downloadfg21sim-2d1bd712c8efed8222c95371adec85bc69100439.tar.bz2
utils/reproject.py: Implement zea2healpix()
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
Diffstat (limited to 'fg21sim/utils/__init__.py')
-rw-r--r--fg21sim/utils/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/fg21sim/utils/__init__.py b/fg21sim/utils/__init__.py
index 97243a7..1e4eac6 100644
--- a/fg21sim/utils/__init__.py
+++ b/fg21sim/utils/__init__.py
@@ -3,4 +3,5 @@
from .fits import read_fits_healpix, write_fits_healpix
from .healpix import healpix2hpx, hpx2healpix
+from .reproject import zea2healpix
from .logging import setup_logging