Project

General

Profile

Difference between selmonth, seldate and select

Added by Bérénice Ferrand almost 2 years ago

My question is : what is the difference between all this command line ?
I need to use this kind of command and I tried all of this and I don't have the same result at the end. To be sure of what I do I prefer ask. (don't pay attention of the name of input and output)

cdo.selmonth('09/11', input=infile, output="mrros_1850-2014.nc")
cdo.seldate('1850-01-01,2014-12-31', input='-selmonth,09,10,11 '+infile, output='mrros_1850-2014.nc')
cdo.seldate('1850-09-01,2014-12-31', input=infile, output="mrros_1850-2014_0.nc")
cdo.selmonth('09,10,11', input="mrros_1850-2014_0.nc", output="mrros_1850-2014.nc")
cdo.select('startdate=1850-09-01,enddate=2014-11-31', input='-select,season=SON '+infile, output='mrros_1850-2014.nc')

After this, I used : cdo.sellonlatbox, cdo.fldsum, cdo.detrend, cdo.yearmean


Replies (3)

RE: Difference between selmonth, seldate and select - Added by Karin Meier-Fleischer almost 2 years ago

1. select the months September, October, November from input file
2. a. select the months September, October, November from input file
   b. pipe output to seldate operator to select time range 1850-01-01,2014-12-31
3. same as 2. but in two steps
4. same as 2. but with the select operator instead of seldate

See documentation

selmonth:  https://code.mpimet.mpg.de/projects/cdo/embedded/cdo.pdf#subsection.2.3.4
seldate:   https://code.mpimet.mpg.de/projects/cdo/embedded/cdo.pdf#subsection.2.3.4
select:    https://code.mpimet.mpg.de/projects/cdo/embedded/cdo.pdf#subsection.2.3.1

RE: Difference between selmonth, seldate and select - Added by Karin Meier-Fleischer almost 2 years ago

In our tests the results are always the same, there are no is no differences.

Check the computed results from above with

cdo diff infile1 infile2

Your attached plots show 'ocean surface temperature' plotted against 'surface runoff' with different x-axis ranges. But to compare computed results you should take a look only at the computed data itself. Do you use the same time step for the 4 plots?

    (1-3/3)