@@ -2140,15 +2140,15 @@ def _dirint_bins(times, kt_prime, zenith, w, delta_kt_prime):
2140
2140
return kt_prime_bin , zenith_bin , w_bin , delta_kt_prime_bin
2141
2141
2142
2142
2143
- def dirindex (ghi , ghi_clearsky , dni_clearsky , zenith , times , pressure = 101325. ,
2143
+ def dirindex (ghi , ghi_clear , dni_clearsky , zenith , times , pressure = 101325. ,
2144
2144
use_delta_kt_prime = True , temp_dew = None , min_cos_zenith = 0.065 ,
2145
2145
max_zenith = 87 ):
2146
2146
"""
2147
2147
Determine DNI from GHI using the DIRINDEX model.
2148
2148
2149
2149
The DIRINDEX model [1]_ modifies the DIRINT model implemented in
2150
2150
:py:func:`pvlib.irradiance.dirint` by taking into account information
2151
- from a clear sky model. It is recommended that ``ghi_clearsky `` be
2151
+ from a clear sky model. It is recommended that ``ghi_clear `` be
2152
2152
calculated using the Ineichen clear sky model
2153
2153
:py:func:`pvlib.clearsky.ineichen` with ``perez_enhancement=True``.
2154
2154
@@ -2159,7 +2159,7 @@ def dirindex(ghi, ghi_clearsky, dni_clearsky, zenith, times, pressure=101325.,
2159
2159
ghi : array-like
2160
2160
Global horizontal irradiance. [Wm⁻²]
2161
2161
2162
- ghi_clearsky : array-like
2162
+ ghi_clear : array-like
2163
2163
Global horizontal irradiance from clear sky model. [Wm⁻²]
2164
2164
2165
2165
dni_clearsky : array-like
@@ -2221,7 +2221,7 @@ def dirindex(ghi, ghi_clearsky, dni_clearsky, zenith, times, pressure=101325.,
2221
2221
temp_dew = temp_dew , min_cos_zenith = min_cos_zenith ,
2222
2222
max_zenith = max_zenith )
2223
2223
2224
- dni_dirint_clearsky = dirint (ghi_clearsky , zenith , times ,
2224
+ dni_dirint_clearsky = dirint (ghi_clear , zenith , times ,
2225
2225
pressure = pressure ,
2226
2226
use_delta_kt_prime = use_delta_kt_prime ,
2227
2227
temp_dew = temp_dew ,
0 commit comments