-
Setup Information
ContextIs there a quick way to calculate e.g., the annual number of dry spell days for winter only, season = ['DFJ']? However, that is for the correct winter season. For example, for the year 1960, that would be December 1959 until end of February 1960. Steps To Reproduce
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi! What you're looking for is:
Here is an example:
Incomplete winters on the edges (e.g. data starting on 1990-01-01 -> incomplete '89-'90 winter) and other seasons than winters are filled with NaNs. You can change the Cheers! |
Beta Was this translation helpful? Give feedback.
Hmm, it seems that
resample
in the indicator reintroduces times that were cut off, e.g. here is a minimal code showing this:times outside the winters are also present.
Since all times are masked outside the winter season, you can also use
YS-DEC
, now I think about it, it's really what you asked for in the beginning haha, should have thought of that directly! :that gives the appropriate output.
Cheers!