Project

General

Profile

location of the vertmax

Added by Shizhu Wang about 4 years ago

Hi,

in cdo we can use vertmax to get the maximum value at each grid point in the vertical direction. Is there a way to konw the location of the maximum value?
In another word, how do I know from which layer does the maximum value come from?

Kind regards,
Shizhu


Replies (1)

RE: location of the vertmax - Added by Ralf Mueller about 4 years ago

hi!

You could create a 0-1-mask based on the computed maxima using the gt operator like this:

cdo -gt <input> -vertmax <input> <output-mask>
The results file should be a 3d-mask, where a 1 indicates the location of a maximum value.

hth
ralf

    (1-1/1)