aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2019-11-02 22:36:02 +0800
committerAaron LI <aly@aaronly.me>2019-11-02 22:41:39 +0800
commit36905a8557f379927e43aff9c0eeefbb299e002d (patch)
tree0ff0d1b5a1be92aa44414e26b9916f82c4e65f21
parent679641925217391a1e72304467ede32a57d0082e (diff)
downloadfg21sim-master.tar.bz2
bin/get-healpix-patch: Update against read_fits_healpix()HEADmaster
-rwxr-xr-xbin/get-healpix-patch8
1 files changed, 1 insertions, 7 deletions
diff --git a/bin/get-healpix-patch b/bin/get-healpix-patch
index a4dd1a4..1395944 100755
--- a/bin/get-healpix-patch
+++ b/bin/get-healpix-patch
@@ -94,13 +94,7 @@ def main():
logger.info("Read HEALPix map from file: %s" % args.infile)
hpdata, hpheader = read_fits_healpix(args.infile)
nside = hpheader["NSIDE"]
- try:
- ordering = hpheader["ORDERING"]
- except KeyError:
- logger.warning("No 'ORDERING' keyword for file: %s" % args.infile)
- logger.warning("Assume the 'NESTED' ordering")
- ordering = "NESTED"
- nested = ordering.upper() == "NESTED"
+ nested = hpheader["ORDERING"].upper() == "NESTED"
try:
coordsys = hpheader["COORDSYS"]
except KeyError: