Skip to content

Commit 31fe508

Browse files
committed
Update mismatch.py
1 parent fa3ff32 commit 31fe508

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pvlib/spectrum/mismatch.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -769,6 +769,10 @@ def spectral_factor_polo(precipitable_water, airmass_absolute, aod500, aoi,
769769
pressure = pvlib.atmosphere.alt2pres(altitude)
770770
am90 = pvlib.atmosphere.get_absolute_airmass(am_aoi, pressure)
771771
Ram = am90 / airmass_absolute
772+
f_aoi_rel= pvlib.atmosphere.get_relative_airmass(aoi, model='kastenyoung1989')
773+
pressure = pvlib.atmosphere.alt2pres(altitude)
774+
f_aoi = pvlib.atmosphere.get_absolute_airmass(f_aoi_rel, pressure)
775+
Ram = f_aoi / airmass_absolute
772776
_coefficients = {
773777
'cdte': (-0.0009, 46.80, 49.20, -0.87, 0.00041, 0.053),
774778
'monosi': (0.0027, 10.34, 9.48, 0.307, 0.00077, 0.006),

0 commit comments

Comments
 (0)