pingswept/pysolar

util.py seems incorrect.

Closed this issue · 0 comments

I'm struggling with the following functions:

  • diffuse_underclear:

DT = ((-21.657) + (41.752 * (TL)) + (0.51905 * (TL) * (TL)))
altitude = solar.get_altitude(latitude_deg, longitude_deg,when, elevation, temperature,pressure)
return mean_earth_sun_distance(when) * DT * altitude

  • diffuse_underovercast

DT = ((-21.657) + (41.752 * (TL)) + (0.51905 * (TL) * (TL)))
altitude = solar.get_altitude(latitude_deg,longitude_deg, when, elevation,temperature, pressure))
return ((mean_earth_sun_distance(when))*(DT) * altitude

it makes no sense.

  • direct_underclear
  • global_irradiance_clear
  • global_irradiance_overcast

Also the data returned by those methods is not comparable to radiation.get_radiation_direct