indices.generic.doymax | doymin
crashes when it encounters an All-Nan slice.
#2021
Open
1 of 2 tasks
Labels
bug
Something isn't working
Setup Information
Description
xclim.indices.generic.doymax
andxclim.indices.generic.doymin
will raise a ValueError when they encounter an All-NaN slice, instead of simply returning a NaN.Steps To Reproduce
Additional context
While this could seem like a strange thing to want to support, this can hapen fairly often when trying to process multiple stations at the same time (with different start/end dates for their operations). I expect that this would also happen fairly often with
freq=MS | QS
.Contribution
Code of Conduct
The text was updated successfully, but these errors were encountered: