pvlib.modelchain.ModelChain.prepare_inputs

ModelChain.prepare_inputs(weather, times=None)[source]

Prepare the solar position, irradiance, and weather inputs to 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.

Notes

Assigns attributes: solar_position, airmass, total_irrad, aoi