Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed accidental integer division; thanks to Brent Pedersen for catch…

…ing the error.
  • Loading branch information...
commit fafaf8573c85ca47afd676e273bbafe3ddc5fecf 1 parent 6f7f4be
Brandon Stafford pingswept authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 radiation.py
4 radiation.py
View
@@ -29,11 +29,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((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((360./365) * (day - 100)))
def GetRadiationDirect(utc_datetime, altitude_deg):
# from Masters, p. 412
Please sign in to comment.
Something went wrong with that request. Please try again.