pvpltools.iec61853.convert_to_banded#

pvpltools.iec61853.convert_to_banded(spectral_response)[source]#

Calculate the mean spectral response in standard wavelength bands.

The mean value for each band is calculated as the area under the linearly interpolated spectral response (SR) curve between band edges, divided by the width of the band. The band edges are defined in IEC 61853-4. [1]

Parameters:

spectral_response (pandas.Series) – Spectral response. The index of spectral_response must contain wavelengths [nm]; the values in spectral_response may be relative or absolute.

Returns:

  • np.array – Mean values of the spectral_response in the specified wavelength bands.

  • Notes

  • ——

  • - The trapezoid method is used to calculate the area under the SR curve.

  • - The SR at the band edges is estimated by linear interpolation.

  • - Negative values in the SR are replaced with zero.

References

Author: Anton Driesse, PV Performance Labs