Project

General

Profile

conditional selection

Added by hugh zhang about 9 years ago

Dear there,

I am a new user of CDO and ask for your kind help. I am trying to use cdo condition selection for a job but failed after many tries ...

Does anyone have a simple script to do the following job. Say I have four files: X.nc; Xmin.nc, Xmax.nc and Y.nc. ALL the files have the same structure (360by180 two dimmensions). My conditional selections are:
(i) X needs to be in between the values of Xmin and Xmax
(ii) after passing the condition in (i), then if X has a defined value, assign it to output.nc. Otherwise assign the corresponding values in Y to the output.

Many thanks
Hugh