aboutsummaryrefslogtreecommitdiffstats
path: root/bin/zea2healpix
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@outlook.com>2016-10-10 17:12:48 +0800
committerAaron LI <aaronly.me@outlook.com>2016-10-10 17:12:48 +0800
commit1e6b0669374276a58cf1b081fa6efbdffd8266c2 (patch)
tree6c7483a0e67cc2358a95143625bf6d3d2f77fc6e /bin/zea2healpix
parent5b40637b168ed98a3297be28a225438b415cd087 (diff)
downloadfg21sim-1e6b0669374276a58cf1b081fa6efbdffd8266c2.tar.bz2
utils: zea2healpix() also return the mask array
The mask array has values 0, 1, and 2, which indicate the different statuses of the reprojected HEALPix pixels. Also update the executable script to use the new return results.
Diffstat (limited to 'bin/zea2healpix')
-rwxr-xr-xbin/zea2healpix10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/zea2healpix b/bin/zea2healpix
index c8879ab..1eb8730 100755
--- a/bin/zea2healpix
+++ b/bin/zea2healpix
@@ -74,11 +74,11 @@ def main():
'See also {0}'.format(fg21sim.__url__)
]
- hp_data, hp_header = zea2healpix(args.infile1, args.infile2,
- nside=args.nside,
- order=args.interp_order,
- append_history=history,
- append_comment=comments)
+ hp_data, hp_header, __ = zea2healpix(args.infile1, args.infile2,
+ nside=args.nside,
+ order=args.interp_order,
+ append_history=history,
+ append_comment=comments)
write_fits_healpix(args.outfile, hpmap=hp_data, header=hp_header,
clobber=args.clobber)
logger.info("HEALPix data write to FITS file: %s" % args.outfile)