From 13c1f217121cef57865d9bd49e110a03df69091c Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 6 Jul 2016 14:24:31 +0200 Subject: Add golden hour MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- doc/info/solar-python.texinfo | 5 +++++ src/solar_python.py | 8 ++++++++ 2 files changed, 13 insertions(+) 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` -- cgit v1.2.3-70-g09d2