pvlib.modelchain.ModelChain.prepare_inputs¶
-
ModelChain.
prepare_inputs
(times=None, irradiance=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.
- irradiance : None or DataFrame
This parameter is deprecated. Please use weather instead.
- weather : None or DataFrame, default None
If None, the weather attribute is used. If the weather attribute is also None assumes air temperature is 20 C, wind speed is 0 m/s and irradiation calculated from clear sky data. Column names must be ‘wind_speed’, ‘temp_air’, ‘dni’, ‘ghi’, ‘dhi’. Do not pass incomplete irradiation data. Use method
complete_irradiance()
instead.
Returns: - self
- Assigns attributes: times, solar_position, airmass, total_irrad,
- aoi