Project

General

Profile

Is there an operator that prints max/min value of a variable for the entire time steps?

Added by ep gupal about 1 month ago

I know INFO operator prints max/mean/min for each time steps. But is there an operator that does it for all the time step? I just want to see max/min values of a variable in a file.


Replies (1)

RE: Is there an operator that prints max/min value of a variable for the entire time steps? - Added by Karin Meier-Fleischer about 1 month ago

This can't be done with an one liner but in two steps.

For example: get the minimum and maximum values of variable 'myvar' of all time steps

cdo -O -merge -chname,myvar,minimum -timmin -fldmin -varsmin -selname,myvar infile \
              -chname,myvar,maximum -timmax -fldmax -varsmax -selname,myvar infile \
              outfile

cdo infon outfile
    (1-1/1)