aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-06-23 20:06:25 +0200
committerMattias Andrée <maandree@kth.se>2016-06-23 20:06:25 +0200
commitd49a9f8787b464610a50a9c5293d1ca335039d96 (patch)
tree563069848a6a3d6dd3d6f17ec99a1d21e6c6ac4d
parenta leap second announcment source is online once again (diff)
downloadxpybar-d49a9f8787b464610a50a9c5293d1ca335039d96.tar.gz
xpybar-d49a9f8787b464610a50a9c5293d1ca335039d96.tar.bz2
xpybar-d49a9f8787b464610a50a9c5293d1ca335039d96.tar.xz
Update solar.py1.14
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r--src/plugins/solar.py16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/plugins/solar.py b/src/plugins/solar.py
index 74d6aee..845a347 100644
--- a/src/plugins/solar.py
+++ b/src/plugins/solar.py
@@ -50,6 +50,12 @@ class Solar:
and astronomical dawn, measured in degrees
'''
+ SOLAR_ELEVATION_AMATEUR_ASTRONOMICAL_DUSK_DAWN = -15.0
+ '''
+ :float The Sun's elevation at amateur astronomical dusk
+ and amateur astronomical dawn, measured in degrees
+ '''
+
SOLAR_ELEVATION_RANGE_TWILIGHT = (-18.0, 0.0)
'''
:(float, float) The Sun's lowest and highest elevation during
@@ -62,18 +68,24 @@ class Solar:
during civil twilight, measured in degrees
'''
- SOLAR_ELEVATION_RANGE_NAUTICAL_TWILIGHT = (-12.0, -6.0)
+ SOLAR_ELEVATION_RANGE_NAUTICAL_TWILIGHT = (-12.0, 0.0)
'''
:(float, float) The Sun's lowest and highest elevation
during nautical twilight, measured in degrees
'''
- SOLAR_ELEVATION_RANGE_ASTRONOMICAL_TWILIGHT = (-18.0, -12.0)
+ SOLAR_ELEVATION_RANGE_ASTRONOMICAL_TWILIGHT = (-18.0, 0.0)
'''
:(float, float) The Sun's lowest and highest elevation during
astronomical twilight, measured in degrees
'''
+ SOLAR_ELEVATION_RANGE_AMATEUR_ASTRONOMICAL_TWILIGHT = (-15.0, -18.0)
+ '''
+ :(float, float) The Sun's lowest and highest elevation during
+ amateur astronomical twilight, measured in degrees
+ '''
+
EQUINOX = 0
SUMMER = 1