From 36905a8557f379927e43aff9c0eeefbb299e002d Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Sat, 2 Nov 2019 22:36:02 +0800 Subject: bin/get-healpix-patch: Update against read_fits_healpix() --- bin/get-healpix-patch | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'bin/get-healpix-patch') 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: -- cgit v1.2.2