aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-03-05 20:46:41 +0100
committerMattias Andrée <maandree@operamail.com>2014-03-05 20:46:41 +0100
commit9ef065cb8ee6a54fbc52d4ec6ae7b40f994b8291 (patch)
tree4999b3ecf61626209b3c523bbe7d0a43f12518b6 /src
parentprototype of lunar (diff)
downloadxpybar-9ef065cb8ee6a54fbc52d4ec6ae7b40f994b8291.tar.gz
xpybar-9ef065cb8ee6a54fbc52d4ec6ae7b40f994b8291.tar.bz2
xpybar-9ef065cb8ee6a54fbc52d4ec6ae7b40f994b8291.tar.xz
add todos
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/lunar.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/plugins/lunar.py b/src/plugins/lunar.py
index 2df7c0c..c193369 100644
--- a/src/plugins/lunar.py
+++ b/src/plugins/lunar.py
@@ -43,6 +43,7 @@ ref = julian_day(934329600) # 11 August 1999 00:00:00 UTC
now = julian_day(time.time())
synodic_month = 29.530588853
+# TODO how to we calculate the Moon's apparent geocentric celestial longitude
fraction = ((now - ref) / synodic_month) % 1
waxing = fraction <= 0.5 # we get an off by one without equality
print('fraction: %f' % fraction)
@@ -63,3 +64,17 @@ if (not waxing) != inverted:
print('illumination: %.2f%%' % (illumination * 100))
+# TODO add libration
+# TODO add phase names
+# TODO add solar and lunar eclipses
+# TODO add position of sunlit area
+# TODO add tides
+# TODO add blue moon
+# TODO add black moon
+# TODO add moon colour
+# TODO add altitude
+# TODO add azimuth
+# TODO add zodiac sign
+# TODO add distances
+# TODO add angular diameters
+