captest.calcparams.spectral_factor_firstsolar

captest.calcparams.spectral_factor_firstsolar(data, precipitable_water=None, absolute_airmass=None, spectral_module_type='cdte', verbose=True)

First Solar spectral correction factor.

Wraps pvlib.spectrum.spectral_factor_firstsolar(). spectral_module_type defaults to 'cdte' but can be overridden via a cd.spectral_module_type attribute which custom_param auto-injects when the kwarg is left unset. CapTest propagates its spectral_module_type param onto both CapData instances at setup().

The kwarg is named spectral_module_type (not module_type) to avoid collisions with the module_type kwarg used by bom_temp() and cell_temp(), which expects values like 'glass_cell_poly' rather than the pvlib First Solar module-type strings.

Parameters:
  • data (DataFrame) – DataFrame containing the precipitable-water and absolute-airmass columns.

  • precipitable_water (str) – Column name for precipitable water in cm.

  • absolute_airmass (str) – Column name for absolute airmass.

  • spectral_module_type (str, default 'cdte') – Passed through to pvlib.spectrum.spectral_factor_firstsolar() as its module_type argument.

  • verbose (bool, default True) – Set to False to suppress the explanatory print message.

Returns:

Spectral correction factor indexed like data.index.

Return type:

Series