python - 使用带有阵列平面 (POA) 的 ModelChain 作为天气输入

标签 python pvlib

我真的很喜欢 pvlib 中 ModelChain 的概念。但是,我希望能够使用 ModelChain 对给定系统(多个模块和逆变器)的 DC 和 AC 输出进行建模,使用平面阵列辐照度作为 天气 输入,而不是输入 GHI、DNI 和 DHI 组件(我没有对其进行测量),然后将转置模型指定为 ModelChain 的一部分。这可能吗?

这是我的系统设计

`system=pvlib.pvsystem.PVSystem(surface_tilt=22.5,
                        surface_azimuth=180,
                        modules_per_string=30,
                        strings_per_inverter=100,
                module_parameters=cec_modules['Yingli_Energy__China__YL300P_35b'],                        inverter_parameters=cec_inverters['SMA_America__SC800CP_US_360V__CEC_2012_'])`

这是我的天气数据示例:

`weather.loc['2018-07-01 10:00:00':'2018-07-01 12:00:00'].head()
Out[420]: 
                            poa_global  temp_air  wind_speed
Timestamp                                                   
2018-07-01 10:00:00-07:00  1031.487152  41.69515     0.77450
2018-07-01 10:05:00-07:00  1031.917903  41.62194     0.82462
2018-07-01 10:10:00-07:00  1033.182229  46.01999     0.54983
2018-07-01 10:15:00-07:00  1031.597900  38.67440     0.95819
2018-07-01 10:20:00-07:00  1031.660918  39.16293     0.86196`

这就是我最想用 ModelChain 做的事情:

`mc=pvlib.modelchain.ModelChain(system,location,
                               aoi_model='physical',
                               transposition_model='None',
                               dc_model='singlediode',
                               ac_model='snlinverter',
                               spectral_model='no_loss',
                               losses_model='pvwatts')`

`mc.run_model(times=weather.index,weather=weather)`

最佳答案

目前无法将 ModelChain.run_model 与阵列天气输入的平面一起使用。我建议您在 pvlib 问题跟踪器上提出功能请求。但是,您可以检查 ModelChain.run_model 源代码并将 POA 后步骤复制到您自己的接受 ModelChain 对象作为输入的函数中。参见 Demystifying ModelChain internals背景。

关于python - 使用带有阵列平面 (POA) 的 ModelChain 作为天气输入,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51863542/

相关文章:

python - 我如何从递归函数中获得两个数字的 GCD?

python - 使用 python pvlib 库时出现 SSL 证书错误

unidata - pvlib-python 如何从全局模型(GFS)中检索长达一年的存档天气预报?

python - 如何使用 pydap 库收集 THREDDS 数据?

python - 在 Python 命令行上定义函数时出现语法错误

python - Django super 用户无权删除模型

python - 如何在 Spark SQL 中对多列进行透视?

python - 嵌套循环的字典理解没有按计划工作

python - 访问 pandas dataframe 的正确方法