@@ -2140,15 +2140,15 @@ def _dirint_bins(times, kt_prime, zenith, w, delta_kt_prime):
21402140 return kt_prime_bin , zenith_bin , w_bin , delta_kt_prime_bin
21412141
21422142
2143- def dirindex (ghi , ghi_clear , dni_clearsky , zenith , times , pressure = 101325. ,
2143+ def dirindex (ghi , ghi_clearsky , dni_clearsky , zenith , times , pressure = 101325. ,
21442144 use_delta_kt_prime = True , temp_dew = None , min_cos_zenith = 0.065 ,
21452145 max_zenith = 87 ):
21462146 """
21472147 Determine DNI from GHI using the DIRINDEX model.
21482148
21492149 The DIRINDEX model [1]_ modifies the DIRINT model implemented in
21502150 :py:func:`pvlib.irradiance.dirint` by taking into account information
2151- from a clear sky model. It is recommended that ``ghi_clear `` be
2151+ from a clear sky model. It is recommended that ``ghi_clearsky `` be
21522152 calculated using the Ineichen clear sky model
21532153 :py:func:`pvlib.clearsky.ineichen` with ``perez_enhancement=True``.
21542154
@@ -2159,7 +2159,7 @@ def dirindex(ghi, ghi_clear, dni_clearsky, zenith, times, pressure=101325.,
21592159 ghi : array-like
21602160 Global horizontal irradiance. [Wm⁻²]
21612161
2162- ghi_clear : array-like
2162+ ghi_clearsky : array-like
21632163 Global horizontal irradiance from clear sky model. [Wm⁻²]
21642164
21652165 dni_clearsky : array-like
@@ -2221,7 +2221,7 @@ def dirindex(ghi, ghi_clear, dni_clearsky, zenith, times, pressure=101325.,
22212221 temp_dew = temp_dew , min_cos_zenith = min_cos_zenith ,
22222222 max_zenith = max_zenith )
22232223
2224- dni_dirint_clearsky = dirint (ghi_clear , zenith , times ,
2224+ dni_dirint_clearsky = dirint (ghi_clearsky , zenith , times ,
22252225 pressure = pressure ,
22262226 use_delta_kt_prime = use_delta_kt_prime ,
22272227 temp_dew = temp_dew ,
0 commit comments