@@ -677,7 +677,7 @@ def _clearsky_get_threshold(sample_interval):
677
677
upper_line_length , var_diff , slope_dev )
678
678
679
679
680
- def detect_clearsky (measured , clearsky , times = None , infer_limits = False ,
680
+ def detect_clearsky (measured , ghi_clear , times = None , infer_limits = False ,
681
681
window_length = 10 , mean_diff = 75 , max_diff = 75 ,
682
682
lower_line_length = - 5 , upper_line_length = 10 ,
683
683
var_diff = 0.005 , slope_dev = 8 , max_iterations = 20 ,
@@ -703,9 +703,9 @@ def detect_clearsky(measured, clearsky, times=None, infer_limits=False,
703
703
Parameters
704
704
----------
705
705
measured : array or Series
706
- Time series of measured GHI. [W/m2 ]
707
- clearsky : array or Series
708
- Time series of the expected clearsky GHI. [W/m2 ]
706
+ Time series of measured GHI. [Wm⁻² ]
707
+ ghi_clear : array or Series
708
+ Time series of the expected clearsky GHI. [Wm⁻² ]
709
709
times : DatetimeIndex, optional
710
710
Times of measured and clearsky values. If not specified, the index of
711
711
``measured`` will be used.
@@ -717,10 +717,10 @@ def detect_clearsky(measured, clearsky, times=None, infer_limits=False,
717
717
periods.
718
718
mean_diff : float, default 75
719
719
Threshold value for agreement between mean values of measured
720
- and clearsky in each interval, see Eq. 6 in [1]. [W/m2 ]
720
+ and clearsky in each interval, see Eq. 6 in [1]. [Wm⁻² ]
721
721
max_diff : float, default 75
722
722
Threshold value for agreement between maxima of measured and
723
- clearsky values in each interval, see Eq. 7 in [1]. [W/m2 ]
723
+ clearsky values in each interval, see Eq. 7 in [1]. [Wm⁻² ]
724
724
lower_line_length : float, default -5
725
725
Lower limit of line length criterion from Eq. 8 in [1].
726
726
Criterion satisfied when lower_line_length < line length difference
@@ -751,7 +751,7 @@ def detect_clearsky(measured, clearsky, times=None, infer_limits=False,
751
751
for each condition. Only provided if return_components is True.
752
752
753
753
alpha : scalar, optional
754
- Scaling factor applied to the ghi_clear to obtain the
754
+ Scaling factor applied to the `` ghi_clear`` to obtain the
755
755
detected clear_samples. Only provided if return_components is
756
756
True.
757
757
@@ -804,10 +804,10 @@ def detect_clearsky(measured, clearsky, times=None, infer_limits=False,
804
804
else :
805
805
meas = measured
806
806
807
- if not isinstance (clearsky , pd .Series ):
808
- clear = pd .Series (clearsky , index = times )
807
+ if not isinstance (ghi_clear , pd .Series ):
808
+ clear = pd .Series (ghi_clear , index = times )
809
809
else :
810
- clear = clearsky
810
+ clear = ghi_clear
811
811
812
812
sample_interval , samples_per_window = \
813
813
tools ._get_sample_intervals (times , window_length )
@@ -816,7 +816,7 @@ def detect_clearsky(measured, clearsky, times=None, infer_limits=False,
816
816
if infer_limits :
817
817
window_length , mean_diff , max_diff , lower_line_length , \
818
818
upper_line_length , var_diff , slope_dev = \
819
- _clearsky_get_threshold (sample_interval )
819
+ _clearsky_get_threshold (sample_interval )
820
820
821
821
# recalculate samples_per_window using returned window_length
822
822
_ , samples_per_window = \
0 commit comments