warsa.energy package

Submodules

warsa.energy.solar_radiation module

daylight_hours(ws)
Parameters:ws – sunset hour angle [rad]
Returns:daylight hours [hour]
extraterrestrial_radiation_daily(dr, ws, lat, sd)
Parameters:
  • dr – inverse relative distance Earth-Sun
  • ws – sunset hour angle [rad]
  • lat – latitude [rad]
  • sd – solar declination [rad]
Returns:

daily extraterrestrial radiation []

extraterrestrial_radiation_hourly(dr, ws1, ws2, lat, sd)
Parameters:
  • dr – inverse relative distance Earth-Sun
  • ws1 – solar time angle at beginning of period [rad]
  • ws2 – solar time angle at end of period [rad]
  • lat – latitude [rad]
  • sd – solar declination [rad]
Returns:

hourly extraterrestrial radiation []

inverse_relative_distance_earth_sun(day)
Parameters:day – day of the year (1 to 365)
Returns:inverse relative distance Earth-Sun []
net_longwave_radiation_daily(t_min, t_max, rs, rs0, ea=None, ac=1.35, bc=0.35)
Parameters:
  • t_min – minimum temperature during the 24-hour period [C]
  • t_max – maximum temperature during the 24-hour period [C]
  • rs – measured or calculated shortwave radiation [MJ m-2 day-1]
  • rs0 – calculated clear-sky shortwave radiation [MJ m-2 day-1]
  • ea – actual vapour pressure [kPa]
  • ac
  • bc
Returns:

daily net longwave radiation

net_radiation_daily(lat, t_min, t_max, albedo, day, n=None, ea=None)
Parameters:
  • lat – latitude [rad]
  • t_min – minimum temperature during the 24-hour period [C]
  • t_max – maximum temperature during the 24-hour period [C]
  • albedo – reflection coefficient (0 <= albedo <= 1), which is 0.23 for the hypothetical grass reference crop [-]
  • day – day of the year (1 to 365)
  • n – actual duration of sunshine (cloudless hours) [hour]
  • ea – actual vapour pressure [kPa]
Returns:

daily net radiation

net_shortwave_radiation_daily(rs, albedo)
Parameters:
  • rs – daily shortwave radiation [MJ m-2 day-1]
  • albedo – reflection coefficient (0 <= albedo <= 1), which is 0.23 for the hypothetical grass reference crop [-]
Returns:

daily net shortwave radiation reaching the earth [MJ m-2 day-1]

shortwave_radiation_daily(r0, nt, n=None, a=0.25, b=0.5)

If n is None, returns the shortwave radiation for a cloudless day (n==nt) :param r0: extraterrestrial radiation [MJ m-2 day-1] :param n: actual duration of sunshine (cloudless hours) [hour] :param nt: maximum possible duration of sunshine or daylight hours [hour] :param a: regression constant, expressing the fraction of extraterrestrial radiation reaching the earth on overcast days (n = 0) :param a + b: fraction of extraterrestrial radiation reaching the earth on clear days (n = nt) :return: daily total shortwave radiation reaching the earth [MJ m-2 day-1]

solar_declination(day)
Parameters:day – day of the year (1 to 365)
Returns:solar declination []
sunset_hour_angle(lat, sd)
Parameters:
  • lat – latitude [rad]
  • sd – solar declination [rad]
Returns:

sunset hour angle [rad]

Module contents