bsrn.modeling.clear_sky.rest2_model#

bsrn.modeling.clear_sky.rest2_model(index, zenith, rest2_inputs, no2=0.0002)[source]#

REST2 clear-sky model [1] translated from the provided R implementation.

Parameters:
  • index (pd.DatetimeIndex) – Time index for the calculation.

  • zenith (array-like) – Solar zenith angle ($Z$). [degrees]

  • rest2_inputs (pd.DataFrame) – Input dataframe from fetch_rest2, with columns: PS, ALBEDO, ALPHA, BETA, TO3, TQV.

  • no2 (float, default 0.0002) – Total column nitrogen dioxide amount.

Returns:

  • ghi_clear (np.ndarray) – Clear-sky global horizontal irradiance ($G_{hc}$). [W/m^2]

  • bni_clear (np.ndarray) – Clear-sky beam normal irradiance ($B_{nc}$). [W/m^2]

  • dhi_clear (np.ndarray) – Clear-sky diffuse horizontal irradiance ($D_{hc}$). [W/m^2]

Raises:

ValueError – If rest2_inputs is not a DataFrame, row counts differ, or required columns are missing.

References