diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-06-05 05:04:46 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-06-05 05:04:46 +0200 |
commit | 1c2213d9f3cff810139afe3fd9da716d55de2b83 (patch) | |
tree | a3974e1e731d24402d1f11e19971a34e0eb5e39a /src/solar.py | |
parent | m + wrap doc (diff) | |
download | blueshift-1c2213d9f3cff810139afe3fd9da716d55de2b83.tar.gz blueshift-1c2213d9f3cff810139afe3fd9da716d55de2b83.tar.bz2 blueshift-1c2213d9f3cff810139afe3fd9da716d55de2b83.tar.xz |
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/solar.py')
-rw-r--r-- | src/solar.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/solar.py b/src/solar.py index b14ed47..1cdf017 100644 --- a/src/solar.py +++ b/src/solar.py @@ -384,10 +384,12 @@ def time_of_solar_noon(t, longitude): ''' Calculates the time of the closest solar noon - @param t:float A time close to the seeked time, in Julian Centuries + @param t:float A time close to the seeked time, + in Julian Centuries @param longitude:float The longitude in degrees eastwards from Greenwich, negative for westwards - @return :float The time, in Julian Centuries, of the closest solar noon + @return :float The time, in Julian Centuries, + of the closest solar noon ''' t, rc = julian_centuries_to_julian_day(t), longitude for (k, m) in ((-360, 0), (1440, -0.5)): @@ -401,14 +403,16 @@ def time_of_solar_elevation(t, noon, latitude, longitude, elevation): Calculates the time the Sun has a specified apparent elevation at a geographical position - @param t:float A time close to the seeked time, in Julian Centuries + @param t:float A time close to the seeked time, + in Julian Centuries @param noon:float The time of the closest solar noon @param latitude:float The latitude in degrees northwards from the equator, negative for southwards @param longitude:float The longitude in degrees eastwards from Greenwich, negative for westwards @param elevation:float The solar elevation, in degrees - @return :float The time, in Julian Centuries, of the specified elevation + @return :float The time, in Julian Centuries, + of the specified elevation ''' rc = noon rc, et = solar_declination(rc), equation_of_time(rc) |