From 10fc945278cf0f429fba59206e52d9e3e9481510 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Mon, 12 Jun 2017 15:35:53 +0800 Subject: Minor changes --- astro/21cm/get_slice_zfreq.py | 4 ++-- astro/21cm/tile_slice.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'astro/21cm') diff --git a/astro/21cm/get_slice_zfreq.py b/astro/21cm/get_slice_zfreq.py index 6805b4a..cd3dd39 100755 --- a/astro/21cm/get_slice_zfreq.py +++ b/astro/21cm/get_slice_zfreq.py @@ -62,7 +62,7 @@ class FITSCube: def main(): - outfile_default = "{prefix}_z{z:05.2f}_f{freq:06.2f}.fits" + outfile_default = "{prefix}_f{freq:06.2f}_z{z:06.3f}.fits" parser = argparse.ArgumentParser( description="Get slices at requested redshifts/frequencies") @@ -94,7 +94,7 @@ def main(): cube = FITSCube(args.infile) for z, f in zip(redshifts, freqs): outfile = args.outfile.format(prefix=args.prefix, z=z, freq=f) - print("z=%05.2f, freq=%06.2f MHz : %s" % (z, f, outfile)) + print("z=%06.3f, freq=%06.2f MHz : %s" % (z, f, outfile)) zslice = cube.get_slice(z) header = fits.Header() try: diff --git a/astro/21cm/tile_slice.py b/astro/21cm/tile_slice.py index 0274524..a7d0fba 100755 --- a/astro/21cm/tile_slice.py +++ b/astro/21cm/tile_slice.py @@ -38,7 +38,7 @@ def main(): "(default: 5.0 deg)") parser.add_argument("-N", "--n-side", dest="Nside", default=600, type=int, help="required image size of output slice " + - "(default: 500)") + "(default: 600)") parser.add_argument("-i", "--infile", dest="infile", required=True, help="input slice") parser.add_argument("-o", "--outfile", dest="outfile", -- cgit v1.2.2