pvlib.modelchain.ModelChain.run_model¶
-
ModelChain.
run_model
(weather, times=None)[source]¶ Run the model.
Parameters: - weather (DataFrame) – Column names must be
'dni'
,'ghi'
,'dhi'
,'wind_speed'
,'temp_air'
. All irradiance components are required. Air temperature of 20 C and wind speed of 0 m/s will be added to the DataFrame if not provided. - times (None, deprecated) – Deprecated argument included for API compatibility, but not used internally. The index of the weather DataFrame is used for times.
Returns: - self
- Assigns attributes (
solar_position
,airmass
,irradiance
,) total_irrad
,effective_irradiance
,weather
,cell_temperature
,aoi
,aoi_modifier
,spectral_modifier
,dc
,ac
,losses
,diode_params
(if dc_model is a single diode model)
- weather (DataFrame) – Column names must be