Skip to content

Commit 37d17b8

Browse files
committed
clearsky.py: haurwitz(), detect_clearsky
1 parent bf1c0d8 commit 37d17b8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pvlib/clearsky.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -327,13 +327,13 @@ def haurwitz(apparent_zenith):
327327
'''
328328

329329
cos_zenith = tools.cosd(apparent_zenith.values)
330-
clearsky_ghi = np.zeros_like(apparent_zenith.values)
330+
ghi_clear = np.zeros_like(apparent_zenith.values)
331331
cos_zen_gte_0 = cos_zenith > 0
332-
clearsky_ghi[cos_zen_gte_0] = (1098.0 * cos_zenith[cos_zen_gte_0] *
333-
np.exp(-0.059/cos_zenith[cos_zen_gte_0]))
332+
ghi_clear[cos_zen_gte_0] = (1098.0 * cos_zenith[cos_zen_gte_0] *
333+
np.exp(-0.059/cos_zenith[cos_zen_gte_0]))
334334

335335
df_out = pd.DataFrame(index=apparent_zenith.index,
336-
data=clearsky_ghi,
336+
data=ghi_clear,
337337
columns=['ghi'])
338338

339339
return df_out
@@ -751,7 +751,7 @@ def detect_clearsky(measured, clearsky, times=None, infer_limits=False,
751751
for each condition. Only provided if return_components is True.
752752
753753
alpha : scalar, optional
754-
Scaling factor applied to the clearsky_ghi to obtain the
754+
Scaling factor applied to the ghi_clear to obtain the
755755
detected clear_samples. Only provided if return_components is
756756
True.
757757

0 commit comments

Comments
 (0)