diff options
author | Aaron LI <aly@aaronly.me> | 2019-11-02 22:36:02 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2019-11-02 22:41:39 +0800 |
commit | 36905a8557f379927e43aff9c0eeefbb299e002d (patch) | |
tree | 0ff0d1b5a1be92aa44414e26b9916f82c4e65f21 /bin | |
parent | 679641925217391a1e72304467ede32a57d0082e (diff) | |
download | fg21sim-master.tar.bz2 |
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/get-healpix-patch | 8 |
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: |