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. 按照提供的 R 实现翻译的 REST2 晴空模型。
- Parameters:
index (pd.DatetimeIndex) – Time index for the calculation. 计算使用的时间索引。
zenith (array-like) – Solar zenith angle ($Z$). [degrees] 太阳天顶角 ($Z$)。[度]
rest2_inputs (pd.DataFrame) – Input dataframe from fetch_rest2, with columns: PS, ALBEDO, ALPHA, BETA, TO3, TQV. 来自 fetch_rest2 的输入数据,包含列: PS、ALBEDO、ALPHA、BETA、TO3、TQV。
no2 (float, default 0.0002) – Total column nitrogen dioxide amount. 总柱 NO2 含量。
- Returns:
ghi_clear (np.ndarray) – Clear-sky global horizontal irradiance ($G_{hc}$). [W/m^2] 晴空水平总辐照度 ($G_{hc}$)。[瓦/平方米]
bni_clear (np.ndarray) – Clear-sky beam normal irradiance ($B_{nc}$). [W/m^2] 晴空法向直接辐照度 ($B_{nc}$)。[瓦/平方米]
dhi_clear (np.ndarray) – Clear-sky diffuse horizontal irradiance ($D_{hc}$). [W/m^2] 晴空水平散射辐照度 ($D_{hc}$)。[瓦/平方米]
- Raises:
ValueError – If
rest2_inputsis not aDataFrame, row counts differ, or required columns are missing.rest2_inputs非 DataFrame、行数不一致或缺少所需列时。
References