Skip to content

Commit 6e8421c

Browse files
Fix spectral correction example
1 parent 08ae199 commit 6e8421c

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

docs/examples/spectrum/spectral_factor.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@
4646
# spectral factor functions:
4747
#
4848
# - :py:func:`~pvlib.spectrum.spectral_factor_sapm`, which requires only
49-
# the absolute airmass, :math:`AM_a`
49+
# the absolute airmass, :math:`AM_a` and five SAPM coefficients :math:`A0` -
50+
# :math:`A4`
5051
# - :py:func:`~pvlib.spectrum.spectral_factor_pvspec`, which requires
5152
# :math:`AM_a` and the clearsky index, :math:`k_c`
5253
# - :py:func:`~pvlib.spectrum.spectral_factor_firstsolar`, which requires
@@ -104,7 +105,14 @@
104105
module = pvlib.pvsystem.retrieve_sam('SandiaMod')['LG_LG290N1C_G3__2013_']
105106
#
106107
# Calculate M using the three models for an mc-Si PV module.
107-
m_sapm = pvlib.spectrum.spectral_factor_sapm(airmass_absolute, module)
108+
m_sapm = pvlib.spectrum.spectral_factor_sapm(
109+
airmass_absolute,
110+
module["A0"],
111+
module["A1"],
112+
module["A2"],
113+
module["A3"],
114+
module["A4"],
115+
)
108116
m_pvspec = pvlib.spectrum.spectral_factor_pvspec(airmass_absolute, kc,
109117
'multisi')
110118
m_fs = pvlib.spectrum.spectral_factor_firstsolar(w, airmass_absolute,

0 commit comments

Comments
 (0)