diff options
author | Aaron LI <aly@aaronly.me> | 2017-12-06 10:53:34 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2017-12-06 10:53:34 +0800 |
commit | 9e44e4096c6e8dfe041eeb25a844e74adf223a50 (patch) | |
tree | 2d19473b725135ffbff0c5dfe8badcefcdae4a2f /astro | |
parent | 08a803046ce4a2f91466817d84f85d9e85a398cd (diff) | |
download | atoolbox-9e44e4096c6e8dfe041eeb25a844e74adf223a50.tar.bz2 |
astro/fitscube.py: improve formatting
Diffstat (limited to 'astro')
-rwxr-xr-x | astro/fits/fitscube.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/astro/fits/fitscube.py b/astro/fits/fitscube.py index 976e690..bb6a16b 100755 --- a/astro/fits/fitscube.py +++ b/astro/fits/fitscube.py @@ -268,9 +268,9 @@ def cmd_info(args): image = np.abs(image) mean[i] = np.mean(image) std[i] = np.std(image) - print("Slice <z> <mean> +/- <std>:") + print("Slice <z> <mean> +/- <std>:") for i, z in enumerate(zvalues): - print("* %12.4e: %-12.4e %-12.4e" % (z, mean[i], std[i])) + print("* %12.4e: %12.4e %12.4e" % (z, mean[i], std[i])) if args.outfile: data = np.column_stack([zvalues, mean, std]) np.savetxt(args.outfile, data, header="z mean std") @@ -333,10 +333,10 @@ def cmd_calibrate(args): cube.write(args.outfile, clobber=args.clobber) print("Calibrated FITS cube wrote to: %s" % args.outfile) - print("Slice <z> <mean.old> +/- <std.old> " + - "<mean.new> <gain.coef>") + print("Slice <z> <mean.old> +/- <std.old> " + + "<mean.new> <gain.coef>") for i, z in enumerate(zvalues): - print("* %12.4e: %-12.4e %-12.4e %-12.4e %.6f" % + print("* %12.4e: %12.4e %12.4e %12.4e %.6f" % (z, mean[i], std[i], mean_new[i], coef[i])) if args.save_info: |