max

Returns the maximum of two variables or two numbers

var/num1 var/num2 max

Arguments
labeltypedescription
var/num1 variable or constant variable or constant to be compared to var2
var/num2 variable or constant variable or constant to be compared to var/num1
Returns
maxvar/num variable or constant maximum, or variable containing the maximum of var1/num and var2/num.

If a variable, maxvar/num is dependent on the same grids as are var1/num and var2/num, but the grid domains are limited to the domain common between var1/num and var2/num. In the example below, the temporal and spatial domain of maxvar/num is limited to the domains common bewteen the var1/num and var2/num - Jan 1981-Dec 1986 for the Tropical Atlantic.

Description
max returns the maximum of two variables or two numbers
Example
SOURCES .CHRIS .CARD .taux
SOURCES .Morliere .taux
max

OR

5 pi max
Live Example Link


See also

Comparing Data: flagge flaggt flagle flaglt maskge maskgt maskle masklt min