From 1e6b0669374276a58cf1b081fa6efbdffd8266c2 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Mon, 10 Oct 2016 17:12:48 +0800 Subject: 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. --- bin/zea2healpix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'bin/zea2healpix') 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) -- cgit v1.2.2