aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-07-06 14:24:31 +0200
committerMattias Andrée <maandree@kth.se>2016-07-06 14:24:31 +0200
commit13c1f217121cef57865d9bd49e110a03df69091c (patch)
tree79fb0631b10e291cdc91bdbe1896000e40456bef
parentThe sun is not visible at sunset/sunrise + add SOLAR_ELEVATION_PRESUNSET_POSTSUNRISE (diff)
downloadsolar-python-13c1f217121cef57865d9bd49e110a03df69091c.tar.gz
solar-python-13c1f217121cef57865d9bd49e110a03df69091c.tar.bz2
solar-python-13c1f217121cef57865d9bd49e110a03df69091c.tar.xz
Add golden hour
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r--doc/info/solar-python.texinfo5
-rw-r--r--src/solar_python.py8
2 files changed, 13 insertions, 0 deletions
diff --git a/doc/info/solar-python.texinfo b/doc/info/solar-python.texinfo
index 96a3ac7..4a4ceda 100644
--- a/doc/info/solar-python.texinfo
+++ b/doc/info/solar-python.texinfo
@@ -131,6 +131,11 @@ astronomical twilight, measured in degrees
@item SOLAR_ELEVATION_RANGE_AMATEUR_ASTRONOMICAL_TWILIGHT = (-15.0, -32 / 60)
The Sun's lowest and highest elevation during
amateur astronomical twilight, measured in degrees
+
+@item SOLAR_ELEVATION_RANGE_GOLDEN_HOUR = (10.0, 12.0)
+The Sun's lowest and highest elevation during
+the golden hour (magic hour), measured in degrees.
+These elevations are approximate.
@end table
diff --git a/src/solar_python.py b/src/solar_python.py
index a01f947..87c65c2 100644
--- a/src/solar_python.py
+++ b/src/solar_python.py
@@ -88,6 +88,14 @@ SOLAR_ELEVATION_RANGE_AMATEUR_ASTRONOMICAL_TWILIGHT = (-18.0, -15.0)
amateur astronomical twilight, measured in degrees
'''
+SOLAR_ELEVATION_RANGE_GOLDEN_HOUR = (10.0, 12.0)
+'''
+:(float, float) The Sun's lowest and highest elevation during
+ the golden "hour" (also known as magic hour),
+ measured in degrees. These elevations are
+ approximate.
+'''
+
# The following functions are used to calculate the result for `sun`