aboutsummaryrefslogtreecommitdiffstats
path: root/astro/radec.py
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2019-01-10 19:30:16 +0800
committerAaron LI <aly@aaronly.me>2019-01-10 19:30:24 +0800
commitbfcab7c9b017d98fa54dc7cc245bd9c757dd8f61 (patch)
tree8ffdd316d33b394f3ca351734758bedaf7d5b0fc /astro/radec.py
parent665b6f36f665d9bbed8621f0eda59e714118adba (diff)
downloadatoolbox-bfcab7c9b017d98fa54dc7cc245bd9c757dd8f61.tar.bz2
astro/radec.py: Add one more output format
Diffstat (limited to 'astro/radec.py')
-rwxr-xr-xastro/radec.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/astro/radec.py b/astro/radec.py
index 546223c..9d10883 100755
--- a/astro/radec.py
+++ b/astro/radec.py
@@ -69,7 +69,8 @@ def main():
info = (
"%-14s %-14s\n" % ("R.A.", "Dec.") +
"%s--%s\n" % ("-"*14, "-"*14) +
- "%-14.3f %-+14.3f\n" % (ra.deg, dec.deg) +
+ "%-9.4f[deg] %-+9.4f[deg]\n" % (ra.deg, dec.deg) +
+ "%-8.4f[hour] %-+9.4f[deg]\n" % (ra.hour, dec.deg) +
"%-14s %-14s\n" % (
ra.to_string(unit=au.hourangle, precision=4),
dec.to_string(unit=au.deg, alwayssign=True, precision=3)) +