HOW TO
Instructions provided describe how to obtain decimal precision for direction from the EUCDIRECTION function or Straight Line tool. The EUCDIRECTION function calculates the direction, in degrees, that each cell-center is from the cell-center of the closest source. This is the equivalent operation to the Create Direction option of the Spatial Analyst Distance or Straight Line tool. The output in either case is an integer grid.
Some instances may require floating point precision output. The POINTDIST function has an option to calculate direction that returns floating point results.
Code:
dir_grd = POINTDIST (pnt_data, NONE, <cell size>, DIRECTION)
Article ID:000004879
Get help from ArcGIS experts
Download the Esri Support App