captest.calcparams.power_temp_correct
- captest.calcparams.power_temp_correct(data, power, cell_temp, power_temp_coeff=None, base_temp=25, verbose=True)
Apply temperature correction to PV power.
Divides power by the temperature correction, so low power values that are above base_temp will be increased and high power values that are below the base_temp will be decreased.
- Parameters:
data (DataFrame) – DataFrame with the source data for calculations. Usually the data attribute of a CapData instance.
power (str) – The column name of the data attribute with the power to correct.
cell_temp (str) – Name of the column in data containing the cell temperature (in Celsius) used to calculate temperature differential from the base_temp.
power_temp_coeff (numeric) – Module power temperature coefficient as percent per degree celsius. Ex. -0.36
base_temp (numeric, default 25) – Base temperature (in Celsius) to correct power to. Default is the STC of 25 degrees Celsius.
- Returns:
Power corrected for temperature.
- Return type:
Series