selecting variable values
I have a situation to separate values of a variable by some condition for example if Temperature>0 then store these values in another file else if some other file. How can I do this with cdo.
RE: selecting variable values - Added by Jaison-Thomas Ambadan about 7 years ago
I'm not sure if you can do that all in one step using CDO. In two steps:
1) for values greater than or equal to zero
cdo -ifthen -gec,0 ifile.nc ifile.nc ofile_ge0.nc
2) and for values less than zero
cdo -ifthen -ltc,0 ifile.nc ifile.nc ofile_lt0.nc