@BeginModule
@Name      = EcaCwd
@Title     = Consecutive wet days index per time period
@Section   = Climate indices
@Class     = Climate index
@Arguments = ifile ofile
@Operators = eca_cwd

@BeginDescription
Let @file{ifile} be a time series of the daily precipitation amount RR, then the largest number 
of consecutive days where RR is at least @math{R} is counted. @math{R} is an optional parameter with 
default @math{R} = 1 mm. A further output variable is the number of wet 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_cwd
@Title     = Consecutive wet days index per time period
@Parameter = [R]
@EndOperator


@BeginParameter
@Item = R
FLOAT   Precipitation threshold (unit: mm; default: R = 1 mm)
@EndParameter


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