pvlib.modelchain.ModelChain.prepare_inputs

ModelChain.prepare_inputs(weather)[source]

Prepare the solar position, irradiance, and weather inputs to the model, starting with GHI, DNI and DHI.

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.

Notes

Assigns attributes: weather, solar_position, airmass, total_irrad, aoi