# GrADS Function: maxloc

## maxloc()

`maxloc(expr, dim1, dim2 <,tinc>)`

Returns the grid coordinate for the maximum of `expr` over the specified dimension range. If the specified dimension is time, an optional time increment `tincr` may be specified.

`expr` - any valid GrADS expression
`dim1` - the starting dimension expression
`dim2` - the ending dimension expression
`tinc` - optional time increment

`dim1` and `dim2` are standard GrADS dimension expressions whose dimensions must match.

### Usage Notes

1. Related functions are: `max`, `min`, and `minloc`.
   These functions will only work with GrADS version 1.8 or later.

### Examples