@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 5 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]
@EndOperator


@BeginParameter
@Item = R
DOUBLE   Precipitation threshold (mm, default: R = 1 mm)
@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
