Skip to content

Commit

Permalink
Fix syntax errors
Browse files Browse the repository at this point in the history
  • Loading branch information
pingswept committed Apr 20, 2014
1 parent 4e6b78e commit 476d411
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Pysolar/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,16 +114,16 @@ def GetEffectiveAerosolWavelength(band, turbidity_alpha):
if band == "high-frequency":
a1 = turbidity_alpha # just renaming to keep equations short
d0 = 0.57664 - 0.024743 * a1
d1 = (0.093942 - 0.2269 * a1 0.12848 * a1 ** 2)/(1 + 0.6418 * a1)
d1 = (0.093942 - 0.2269 * a1 + 0.12848 * a1 ** 2)/(1 + 0.6418 * a1)
d2 = (-0.093819 + 0.36668 * a1 - 0.12775 * a1 ** 2)/(1 - 0.11651 * a1)
d3 = a1 * (0.15232 - 0.087214 * a1 + 0.012664 a1 ** 2)/(1 - 0.90454 * a1 + 0.26167 a1 ** 2)
d3 = a1 * (0.15232 - 0.087214 * a1 + 0.012664 * a1 ** 2)/(1 - 0.90454 * a1 + 0.26167 * a1 ** 2)
return (d0 + d1 * ua + d2 * ua ** 2)/(1 + d3 * ua ** 2)
else:
a2 = turbidity_alpha
e0 = 1.183 - 0.022989 * a2 + 0.020829 * a2 ** 2)/(1 + 0.11133 * a2)
e1 = -0.50003 - 0.18329 * a2 + 0.23835 * a2 ** 2)/(1 + 1.6756 * a2)
e2 = -0.50001 + 1.1414 * a2 + 0.0083589 * a2 ** 2)/(1 + 11.168 * a2)
e3 = -0.70003 - 0.73587 * a2 + 0.51509 * a2 ** 2)/(1 + 4.7665 * a2)
e0 = (1.183 - 0.022989 * a2 + 0.020829 * a2 ** 2)/(1 + 0.11133 * a2)
e1 = (-0.50003 - 0.18329 * a2 + 0.23835 * a2 ** 2)/(1 + 1.6756 * a2)
e2 = (-0.50001 + 1.1414 * a2 + 0.0083589 * a2 ** 2)/(1 + 11.168 * a2)
e3 = (-0.70003 - 0.73587 * a2 + 0.51509 * a2 ** 2)/(1 + 4.7665 * a2)
return (e0 + e1 * ua + e2 * ua ** 2)/(1 + e3 * ua ** 2)

def GetGasTransmittance(band, m):
Expand Down

0 comments on commit 476d411

Please sign in to comment.