()amaxlocy
This function returns the Y location of maximum grid value over a spatial domain. The syntax is:
amaxlocy(expr, xdim1, xdim2, ydim1, ydim2)
where:
expr any valid grads grid expression
xdim1 starting X or LON dimension expression
xdim2 ending X or LON dimension expression
ydim1 starting Y or LAT dimension expression
ydim2 ending Y or LAT dimension expression
For the Y location of the global maximum, a shorthand may be used:
amaxlocy(expr, global) or
amaxlocy(expr, g)
is the same as
amaxlocy(expr, lon=0, lon=360, lat=-90, lat=90)
Usage Notes
- This function will only work with grads version 2.0.2 or later.
-
This function is more efficient that using nested
maxlocandmaxfunctions. -
Related function
amaxlocxwill return the X location of the maximum grid value. -
Use the
amaxfunction to retrieve the maximum value over the grid. - If more than one grid box contains the maximum value, the location returned will be the first one encountered as the grid is scanned. The grid is scanned by rows from south to north, and each row is scanned from west to east.
-
A similar set of functions exists for finding the minimum over an area:
amin,aminlocx, andaminlocy.


ave
HDF View Version 3.2.0 Free Download 2022
Download Software For the Linux Grads Version 2.0.1 -2.0.2