From 37d17b88014e31653102f57f743ecaea5ce21fa5 Mon Sep 17 00:00:00 2001 From: RDaxini <143435106+RDaxini@users.noreply.github.com> Date: Mon, 21 Oct 2024 22:11:33 +0100 Subject: [PATCH] clearsky.py: haurwitz(), detect_clearsky --- pvlib/clearsky.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pvlib/clearsky.py b/pvlib/clearsky.py index 66edf34926..8d33ad2ac9 100644 --- a/pvlib/clearsky.py +++ b/pvlib/clearsky.py @@ -327,13 +327,13 @@ def haurwitz(apparent_zenith): ''' cos_zenith = tools.cosd(apparent_zenith.values) - clearsky_ghi = np.zeros_like(apparent_zenith.values) + ghi_clear = np.zeros_like(apparent_zenith.values) cos_zen_gte_0 = cos_zenith > 0 - clearsky_ghi[cos_zen_gte_0] = (1098.0 * cos_zenith[cos_zen_gte_0] * - np.exp(-0.059/cos_zenith[cos_zen_gte_0])) + ghi_clear[cos_zen_gte_0] = (1098.0 * cos_zenith[cos_zen_gte_0] * + np.exp(-0.059/cos_zenith[cos_zen_gte_0])) df_out = pd.DataFrame(index=apparent_zenith.index, - data=clearsky_ghi, + data=ghi_clear, columns=['ghi']) return df_out @@ -751,7 +751,7 @@ def detect_clearsky(measured, clearsky, times=None, infer_limits=False, for each condition. Only provided if return_components is True. alpha : scalar, optional - Scaling factor applied to the clearsky_ghi to obtain the + Scaling factor applied to the ghi_clear to obtain the detected clear_samples. Only provided if return_components is True.