Project

General

Profile

How to I change the default parameters for climate indices

Added by Ahamed Ibrahim over 6 years ago

Hi All,

The following command helps to get the CDD with the defaul value of less than R=1mm

cdo eca_cdd rrfile outfile

BUT I WANT TO INCREASE THE THRESHOLD TO R=2.5mm

HOW CAN I CHANGE THE DEFAULT VALUES IN climate indeices cdo commands

Thanks in advance


Replies (5)

RE: How to I change the default parameters for climate indices - Added by Karin Meier-Fleischer over 6 years ago

Just to mention: how you can get more information about an operator

cdo --help eca_cdd

Result:

NAME
    eca_cdd - Consecutive dry days index per time period

SYNOPSIS
    eca_cdd[,R[,N]]  infile outfile

DESCRIPTION
    Let infile be a time series of the daily precipitation amount RR, then the largest number 
    of consecutive days where RR is less than R is counted. R is an optional parameter with 
    default R = 1 mm. A further output variable is the number of dry periods of more than N days.
    The date information of a timestep in outfile is the date of the last contributing timestep in infile.

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

RE: How to I change the default parameters for climate indices - Added by François Roberge over 4 years ago

Karin Meier-Fleischer wrote:

Hi, Ahamed,

[...]

see ECA documentation [[https://code.mpimet.mpg.de/projects/cdo/embedded/cdo_eca.pdf]]

-Karin

Hi Karin,

What is the rrfile? Is is only the input file?

Thank you,

RE: How to I change the default parameters for climate indices - Added by François Roberge over 4 years ago

Karin Meier-Fleischer wrote:

Yes. See the description of eca_cdd above.

Hi Karin,

Yes. I went through this documentation.

I thought since the name of the input file when you type "cdo --help eca_cdd" or in the pdf documentation (cdo_eca.pdf)

Synopsis
eca cdd[,R[,N]] infile outfile

is "infile" but in the exemple from the same documentation it is :

To get the largest number of consecutive dry days of a time series of daily precipitation amounts use:
cdo eca_cdd rrfile outfile

is rrfile I was confused.

    (1-5/5)