aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xastro/21cm/get_slice_zfreq.py4
-rwxr-xr-xastro/21cm/tile_slice.py2
2 files changed, 3 insertions, 3 deletions
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",