diff options
Diffstat (limited to 'bin/get-healpix-patch')
| -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: | 
