aboutsummaryrefslogtreecommitdiffstats
path: root/astro/21cm
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2017-06-12 15:35:53 +0800
committerAaron LI <aly@aaronly.me>2017-06-12 15:43:04 +0800
commit10fc945278cf0f429fba59206e52d9e3e9481510 (patch)
tree0fc45b60342c81f729548e7d9b7a6075e739fda6 /astro/21cm
parentd971a677d142aac53b07bc37cfdfae3751539d16 (diff)
downloadatoolbox-10fc945278cf0f429fba59206e52d9e3e9481510.tar.bz2
Minor changes
Diffstat (limited to 'astro/21cm')
-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",