diff options
Diffstat (limited to '')
-rw-r--r-- | doc/info/solar-python.texinfo | 5 | ||||
-rw-r--r-- | src/solar_python.py | 8 |
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` |