HOW TO
GRID's DOCELL statement allows you to find the coordinates of the maximum value in a floating point grid.
Run this aml from the GRID prompt:
Code:
/* USAGE: &RUN XYOFMAX.AML <input_grid>
&args ingrd
&describe %ingrd%
z1 = scalar(%grd$zmin%)
docell
if (%ingrd% > z1)
begin
z1 := %ingrd%
xmap := scalar($$xmap)
ymap := scalar($$ymap)
end
end
&ty [show scalar xmap]
&ty [show scalar ymap]
&return
Article ID:000002103
Get help from ArcGIS experts
Download the Esri Support App