aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-07-06 14:48:07 +0200
committerMattias Andrée <maandree@kth.se>2016-07-06 14:48:07 +0200
commite98ab8c54f9f10a0062d586dee76d91da4e3f6c0 (patch)
tree0ff7e8f5f4faa7158ccc9f76bcaf04d1c1cfd653
parentCorrect golden hour (used bad source) (diff)
downloadsolar-python-e98ab8c54f9f10a0062d586dee76d91da4e3f6c0.tar.gz
solar-python-e98ab8c54f9f10a0062d586dee76d91da4e3f6c0.tar.bz2
solar-python-e98ab8c54f9f10a0062d586dee76d91da4e3f6c0.tar.xz
Add blue hour2.5
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r--doc/info/solar-python.texinfo5
-rw-r--r--src/solar_python.py7
2 files changed, 12 insertions, 0 deletions
diff --git a/doc/info/solar-python.texinfo b/doc/info/solar-python.texinfo
index e7a6d73..e33d6e0 100644
--- a/doc/info/solar-python.texinfo
+++ b/doc/info/solar-python.texinfo
@@ -136,6 +136,11 @@ amateur astronomical twilight, measured in degrees
The Sun's lowest and highest elevation during
the golden hour (magic hour), measured in degrees.
These elevations are approximate.
+
+@item SOLAR_ELEVATION_RANGE_BLUE_HOUR = (-6.0, -4.0)
+The Sun's lowest and highest elevation during
+the blue hour, measured in degrees. These
+elevations are approximate.
@end table
diff --git a/src/solar_python.py b/src/solar_python.py
index e39327f..e336ab4 100644
--- a/src/solar_python.py
+++ b/src/solar_python.py
@@ -96,6 +96,13 @@ SOLAR_ELEVATION_RANGE_GOLDEN_HOUR = (-4.0, 6.0)
approximate.
'''
+SOLAR_ELEVATION_RANGE_BLUE_HOUR = (-6.0, -4.0)
+'''
+:(float, float) The Sun's lowest and highest elevation during
+ the blue "hour", measured in degrees. These
+ elevations are approximate.
+'''
+
# The following functions are used to calculate the result for `sun`