Extracting/removing files
Added by Frida Liv Biorn-Hansen about 9 years ago
Hi, I'm very New to this, but I'm currently working on my bachelor thesis and for this I need to learn CDO. I've been gathering snowdata from the last 30-years in one files using teh cat- function. But unfortunately a discovered that I've included datafrom the last 35 years in some of the files. Does anybody know if there is an easy way to extract this data?
Thanks, Frida
Replies (1)
RE: Extracting/removing files - Added by Ralf Mueller about 9 years ago
hi Frida!
you could use the select operator. I created some test data with
cdo -f nc -settaxis,2000-01-01,00:00:00,1months -for,1,500,1 snow.nc
and used the following to select certain years (2005-2035)
cdo -select,year=2005/2035 snow.nc snow_2005-2035.nc
If your data is mixed up wrt. the time axis, you can also sort it with timsort
hth
ralf