Skip to content

Commit 82598ec

Browse files
committed
make albedo coefficients user-specified as well
1 parent ee7f13f commit 82598ec

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

pvlib/spectrum/mismatch.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -740,8 +740,11 @@ def spectral_factor_polo(precipitable_water, airmass_absolute, aod500, aoi,
740740
* ``'cigs'`` - anonymous copper indium gallium selenide module.
741741
* ``'asi'`` - anonymous amorphous silicon module.
742742
coefficients : array-like, optional
743-
user-defined coefficients, if not using one of the coefficient
744-
sets via the ``module_type`` parameter.
743+
User-defined coefficients, if not using one of the coefficient
744+
sets via the ``module_type`` parameter. Must have nine elements.
745+
The first six elements correspond to the [p1, p2, p3, p4, b, c]
746+
parameters of the SMM model. The last three elements corresponds
747+
to the [c1, c2, c3] parameters of the albedo correction factor.
745748
albedo : numeric, optional
746749
Ground albedo (default value 0.2). See :term:`albedo`. [unitless]
747750
@@ -784,8 +787,8 @@ def spectral_factor_polo(precipitable_water, airmass_absolute, aod500, aoi,
784787
coeff = _coefficients[module_type]
785788
c_albedo = c[module_type]
786789
else:
787-
coeff = coefficients
788-
c_albedo = (0.0, 0.0, 1.0) # 0.2 albedo assumed
790+
coeff = coefficients[:6]
791+
c_albedo = coefficients[6:]
789792
smm = coeff[0] * Ram + coeff[1] / (coeff[2] + Ram**coeff[3]) \
790793
+ coeff[4] / aod500 + coeff[5]*np.sqrt(precipitable_water)
791794
# Ground albedo correction

0 commit comments

Comments
 (0)