@BeginModule
@NewPage
@Name      = EcaCdd
@Title     = Consecutive dry days index per time period
@Section   = Climate indices
@Class     = Climate index
@Arguments = ifile ofile
@Operators = eca_cdd

@BeginDescription
Let @file{ifile} be a time series of the daily precipitation amount RR, then the largest number 
of consecutive days where RR is less than @math{R} is counted. @math{R} is an optional parameter with 
default @math{R} = 1 mm. A further output variable is the number of dry periods of more than @math{N} days.
The date information of a timestep in @file{ofile} is the date of the last contributing timestep in @file{ifile}.
@EndDescription
@EndModule


@BeginOperator_eca_cdd
@Title     = Consecutive dry days index per time period
@Parameter = [R] [N]
@EndOperator


@BeginParameter
@Item = R
FLOAT    Precipitation threshold (unit: mm; default: R = 1 mm)
@Item = N
INTEGER  Minimum number of days exceeded (default: N = 5)
@EndParameter


@BeginExample
To get the largest number of consecutive dry days of a time series of daily precipitation amounts use:
@BeginVerbatim
   cdo eca_cdd rrfile ofile
@EndVerbatim
@EndExample
