aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/utils/__init__.py
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@outlook.com>2016-10-09 22:31:36 +0800
committerAaron LI <aaronly.me@outlook.com>2016-10-09 22:31:36 +0800
commit4ce3c0b5ce2bd4b2d2bb89eaae669a4e3eba6662 (patch)
tree038ea66cd76dddc16a31ac54d3513617accc5554 /fg21sim/utils/__init__.py
parente2d5281609750da823c229856359f8edcb77bd37 (diff)
downloadfg21sim-4ce3c0b5ce2bd4b2d2bb89eaae669a4e3eba6662.tar.bz2
utils: Add function "read_fits_healpix()"
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.
Diffstat (limited to 'fg21sim/utils/__init__.py')
-rw-r--r--fg21sim/utils/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fg21sim/utils/__init__.py b/fg21sim/utils/__init__.py
index b6cf3fd..97243a7 100644
--- a/fg21sim/utils/__init__.py
+++ b/fg21sim/utils/__init__.py
@@ -1,6 +1,6 @@
# Copyright (c) 2016 Weitian LI <liweitianux@live.com>
# MIT license
-from .fits import write_fits_healpix
+from .fits import read_fits_healpix, write_fits_healpix
from .healpix import healpix2hpx, hpx2healpix
from .logging import setup_logging