Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

get ASCII row and column info

$
0
0
I have a point shapefile and an ascii grid. When you view an ascii grid in a text editor the header tells you the xy coordinates of the center then the values are all displayed in neat rows and columns. What I am trying to find out is what column and row those points fall in. When both are added to ArcMap I can find out the value of the cell, but I want the column and row number. Anyone have any clue how this can be accomplished?

Code:

ncols                1926
nrows                2752
xllcenter        533993.691804
yllcenter        3247644.275250
cellsize        15.000000
NODATA_value        -9999
-9999  -9999  -9999  -9999  -9999  ...
-9999  -9999  -9999  0.0  0.0  ...
-9999  -9999  -9999  0.0  0.0  ...
-9999  -9999  -9999  123.4  123.4  ...
...


Viewing all articles
Browse latest Browse all 2485

Trending Articles