@@ -1631,7 +1631,7 @@ def clearsky_index(ghi, ghi_clear, max_clearsky_index=2.0):
16311631 ghi : numeric
16321632 Global horizontal irradiance. [Wm⁻²]
16331633
1634- clearsky_ghi : numeric
1634+ ghi_clear : numeric
16351635 Modeled clearsky GHI
16361636
16371637 max_clearsky_index : numeric, default 2.0
@@ -1643,12 +1643,12 @@ def clearsky_index(ghi, ghi_clear, max_clearsky_index=2.0):
16431643 clearsky_index : numeric
16441644 Clearsky index
16451645 """
1646- clearsky_index = ghi / clearsky_ghi
1646+ clearsky_index = ghi / ghi_clear
16471647 # set +inf, -inf, and nans to zero
16481648 clearsky_index = np .where (~ np .isfinite (clearsky_index ), 0 ,
16491649 clearsky_index )
16501650 # but preserve nans in the input arrays
1651- input_is_nan = ~ np .isfinite (ghi ) | ~ np .isfinite (clearsky_ghi )
1651+ input_is_nan = ~ np .isfinite (ghi ) | ~ np .isfinite (ghi_clear )
16521652 clearsky_index = np .where (input_is_nan , np .nan , clearsky_index )
16531653
16541654 clearsky_index = np .maximum (clearsky_index , 0 )
@@ -2169,7 +2169,7 @@ def dirindex(ghi, ghi_clear, dni_clearsky, zenith, times, pressure=101325.,
21692169
21702170 The DIRINDEX model [1]_ modifies the DIRINT model implemented in
21712171 :py:func:`pvlib.irradiance.dirint` by taking into account information
2172- from a clear sky model. It is recommended that ``ghi_clearsky `` be
2172+ from a clear sky model. It is recommended that ``ghi_clear `` be
21732173 calculated using the Ineichen clear sky model
21742174 :py:func:`pvlib.clearsky.ineichen` with ``perez_enhancement=True``.
21752175
@@ -2180,7 +2180,7 @@ def dirindex(ghi, ghi_clear, dni_clearsky, zenith, times, pressure=101325.,
21802180 ghi : array-like
21812181 Global horizontal irradiance. [Wm⁻²]
21822182
2183- ghi_clearsky : array-like
2183+ ghi_clear : array-like
21842184 Global horizontal irradiance from clear sky model. [Wm⁻²]
21852185
21862186 dni_clearsky : array-like
@@ -2242,7 +2242,7 @@ def dirindex(ghi, ghi_clear, dni_clearsky, zenith, times, pressure=101325.,
22422242 temp_dew = temp_dew , min_cos_zenith = min_cos_zenith ,
22432243 max_zenith = max_zenith )
22442244
2245- dni_dirint_clearsky = dirint (ghi_clearsky , zenith , times ,
2245+ dni_dirint_clearsky = dirint (ghi_clear , zenith , times ,
22462246 pressure = pressure ,
22472247 use_delta_kt_prime = use_delta_kt_prime ,
22482248 temp_dew = temp_dew ,
0 commit comments