[Python-modules-commits] [python-pysolar] 06/06: Add missing radians conversions to radiation module. Thanks to Poul-Henning Kamp and Francois Rogez for catching the error.
Wolfgang Borgert
debacle at moszumanska.debian.org
Fri Oct 3 23:36:34 UTC 2014
This is an automated email from the git hooks/post-receive script.
debacle pushed a commit to annotated tag 0.4.3
in repository python-pysolar.
commit 44ffa91e00acef349a5b69f3d53914908e097660
Author: Brandon Stafford <brandon at pingswept.org>
Date: Thu Apr 21 10:06:04 2011 -0400
Add missing radians conversions to radiation module. Thanks to Poul-Henning Kamp and Francois Rogez for catching the error.
---
CONTRIBUTORS.markdown | 21 ++++++++++++++++++---
pysolar.org/index.html | 4 +++-
radiation.py | 4 ++--
3 files changed, 23 insertions(+), 6 deletions(-)
diff --git a/CONTRIBUTORS.markdown b/CONTRIBUTORS.markdown
index be8999b..209d95f 100644
--- a/CONTRIBUTORS.markdown
+++ b/CONTRIBUTORS.markdown
@@ -3,6 +3,21 @@ Contributions
Many people have contributed to Pysolar since its inception.
-Thanks to Brent Pedersen, Holger Zebner, Pietro Zambelli, Sean Taylor, Simeon Obinna
-Nwaogaidu, Tim Michelsen, Jon Little, and Lahmeyer International for their
-contributions of code, bugfixes, documentation, and general encouragement.
+Thanks to:
+
+Poul-Henning Kamp
+Lahmeyer International
+Jon Little
+Tim Michelsen
+Simeon Obinna Nwaogaidu
+Brent Pedersen
+Francois Rogez
+Sean Taylor
+Pietro Zambelli
+Holger Zebner
+
+for their contributions of code, bugfixes, documentation, and general encouragement.
+
+I appreciate it.
+
+Brandon Stafford
diff --git a/pysolar.org/index.html b/pysolar.org/index.html
index 0b9c256..0ae972b 100644
--- a/pysolar.org/index.html
+++ b/pysolar.org/index.html
@@ -40,7 +40,9 @@
been hosted at <a href="http://github.com/pingswept/pysolar">Github</a>.
Releases 0.2.0 and previous are still available on Sourceforge, but you should not use them for anything new-- all versions before 0.4.1 have known, albeit minor, bugs.</p>
-<p><a href="http://github.com/pingswept/pysolar/tree/0.4.1">Release 0.4.1</a> (If you're not sure, download this one.)</p>
+<p><a href="http://github.com/pingswept/pysolar/tree/0.4.3">Release 0.4.3</a> (If you're not sure, download this one.)</p>
+<p><a href="http://github.com/pingswept/pysolar/tree/0.4.2">Release 0.4.2</a></p>
+<p><a href="http://github.com/pingswept/pysolar/tree/0.4.1">Release 0.4.1</a></p>
<p><a href="http://github.com/pingswept/pysolar/tree/0.4.0">Release 0.4.0</a></p>
<p><a href="http://github.com/pingswept/pysolar/tree/0.3.0">Release 0.3.0</a></p>
<p><a href="http://github.com/pingswept/pysolar/tree/0.3.0RC2">Release 0.3.0RC2</a></p>
diff --git a/radiation.py b/radiation.py
index f9685f1..8a9fae4 100644
--- a/radiation.py
+++ b/radiation.py
@@ -30,11 +30,11 @@ def GetAirMassRatio(altitude_deg):
def GetApparentExtraterrestrialFlux(day):
# from Masters, p. 412
- return 1160 + (75 * math.sin((360./365) * (day - 275)))
+ return 1160 + (75 * math.sin(math.radians((360./365) * (day - 275))))
def GetOpticalDepth(day):
# from Masters, p. 412
- return 0.174 + (0.035 * math.sin((360./365) * (day - 100)))
+ return 0.174 + (0.035 * math.sin(math.radians((360./365) * (day - 100))))
def GetRadiationDirect(utc_datetime, altitude_deg):
# from Masters, p. 412
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-pysolar.git
More information about the Python-modules-commits
mailing list