Closed kurt-rhee closed 3 years ago
Hi @kurt-rhee -- the window_length
value you're using is a problem. It's supposed to be Length of sliding time window in minutes. Must be greater than 2 periods
, which means it's trying to use a window length of 3 minutes with hourly data, which probably isn't what you want.
Maybe we should add a check on the output of _get_sample_intervals
and raise a more helpful error if samples_per_window == 0
.
@kurt-rhee the detect_clearsky
algorithm was developed for data at a frequency of about 1 minute. Besides the window_length
issue, I doubt the default thresholds will give satisfactory results for 1 hour averaged data.
If the data are point-in-time values on each timestamp (rather than averaged over each interval), this paper may help with choosing appropriate thresholds.
Maybe we should add a check on the output of _get_sample_intervals and raise a more helpful error if samples_per_window == 0.
+1
Understood, thank you so much for your quick response. That is very helpful.
Describe the bug Hello, I am using pvlib.clearsky.detect_clearsky on a set of data from a meto station and the outputs of pvlib.clearsky.simplified_solis.
To Reproduce Steps to reproduce the behavior:
Expected behavior I would expect to not get a value error, I don't believe that any of my indeces have negative values.
Screenshots
Versions:
pvlib.0.8.1
pandas: 1.2.3
: