Project

General

Profile

cdo to calculate the magnitude of a drought

Added by Richard Bintanja 25 days ago

Hello all,

I'd like to calculate the duration and magnitude of multiple droughts from a time series, with drought being defined by some condition.

First I identify the drought periods using cdo consects and/or consectsum, which leaves me a time series indicating when the droughts are occurring, and their lengths. Begin, endtime and length of droughts are randomly distributed along the time series.

Then I'd like to evaluate the means of certain variables per drought period. I can mask out the other variables when there's no drought occurring, but I cannot find out how I can evaluate means over individual drought periods.

Perhaps using runsum but how can I let cdo know the periods to sum over?

Help appreciated.

Richard