sluyspy.solar_energy module

Solar-energy functions for the sluyspy package

sluyspy.solar_energy.solar_power_from_true_sky_rain(Pclear, cloud_cover, rain, fittype='means')[source]

Compute solar power coming from a realistic (non-clear) sky, as a function of the power from the clear sky, the cloud cover and rain.

Parameters:
  • Pclear (float) – (Electrical) solar power from clear sky (e.g. W or kW).

  • cloud_cover (float) – Cloud cover (%).

  • rain (float) – Rain (mm/h).

  • fittype (str) – Type of fit: ‘orig_data’ (worst), ‘means’ (best, default) or ‘medians’.

Returns:

(Electrical) solar power coming from a realistic sky (clear + clouded; same unit as Pclear).

Return type:

(float)

sluyspy.solar_energy.solar_power_from_true_sky_rh(Pclrsky, cloud_cover, rh, fittype='means')[source]
Compute solar power coming from a realistic (non-clear) sky, as a function of the power from

the clear sky, the cloud cover and relative humidity.

Parameters:
  • Pclrsky (float) – (Electrical) solar power from clear sky (e.g. W or kW).

  • cloud_cover (float) – Cloud cover (%).

  • rh (float) – Relative humidity (%).

  • fittype (str) – Type of fit: ‘orig_data’ (worst), ‘means’ (best, default) or ‘medians’.

Returns:

(Electrical) solar power coming from a realistic sky (clear + clouded; same unit as Pclear).

Return type:

(float)