对于这个应用程序,我将使用 PVWatts 参数指定 PVSystem,并使用 ModelChain。有关示例,请参阅模型链文档的最后几段(代码复制如下)。
In [30]: pvwatts_system = PVSystem(module_parameters={'pdc0': 240, 'gamma_pdc': -0.004})
In [31]: mc = ModelChain(pvwatts_system, location,
....: aoi_model='physical', spectral_model='no_loss')
In [32]: print(mc)
ModelChain:
name: None
orientation_strategy: None
clearsky_model: ineichen
transposition_model: haydavies
solar_position_method: nrel_numpy
airmass_model: kastenyoung1989
dc_model: pvwatts_dc
ac_model: pvwatts_inverter
aoi_model: physical_aoi_loss
spectral_model: no_spectral_loss
temp_model: sapm_temp
losses_model: no_extra_losses
In [33]: mc.run_model(times=weather.index, weather=weather);
In [34]: mc.ac
Out[34]:
2017-04-01 12:00:00-07:00 198.519999
dtype: float64