selecting variable values
Added by Syed Ali almost 12 years ago
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.
Help needed!
Replies (2)
RE: selecting variable values - Added by Jaison-Thomas Ambadan almost 12 years ago
Hi,
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
Cheers,
J