pvlib.modelchain.ModelChain.prepare_inputs¶
-
ModelChain.
prepare_inputs
(times=None, weather=None)[source]¶ Prepare the solar position, irradiance, and weather inputs to the model.
- Parameters
times (None or DatetimeIndex, default None) – Times at which to evaluate the model. Can be None if attribute times is already set.
weather (None or DataFrame, default None) – If
None
, the weather attribute is used. Column names must be'dni'
,'ghi'
,'dhi'
,'wind_speed'
,'temp_air'
. All irradiance components are required. Assumes air temperature is 20 C and wind speed is 0 m/s if not provided.
Notes
Assigns attributes:
times
,solar_position
,airmass
,total_irrad
, aoiSee also