Select to view content in your preferred language

display row and column of a raster

4783
4
Jump to solution
09-19-2012 06:31 AM
EstherAmler
Emerging Contributor
Dear all,
maybe someone can help me with this issue:

I have a raster file and can locate single pixels with the "identify" button. The location is given in decimal dgrees. Do you know a possibility to display row and column of the pixel (in relation to UL as row 1, column1)?
I use 9.3 currently and can't find an easy solution.

Any idea anybody?

Thanks in advance, Esther
0 Kudos
1 Solution

Accepted Solutions
SteveLynch
Esri Regular Contributor
Search for "02-03-2011 06:58 AM" in http://forums.arcgis.com/threads/364...values?p=74323


I.e use FlowAccumulation

Steve

View solution in original post

0 Kudos
4 Replies
SteveLynch
Esri Regular Contributor
0 Kudos
EstherAmler
Emerging Contributor
" just set your output extent and cell size (ArcToolbox environment settings or Spatial Analyst toolbar options) to match your DEM then use $$YMAP built in scalar variable in a SOMA/MOMA tool or Raster Calculator expression:
E.g. C:\workspace\latgrid = $$YMAP"

hmm, sorry, I don't understand that. Note I don't use ArcInfo or so...

yesterday i found this solution:
"1. Create two fields in the attribute table, using type Long Integer.

2. Right-click on each field and select the Field Calculator.

3. Enter the following equation:

Field1:

Int(Abs((X - ) / Z) + 1)

Field2:

Int(Abs((Y - ) / Z) + 1)

Where X and Y are the starting X/Y location of the raster, and are the X/Y location of the point, and Z is the pixel size.

For Example:

Int(Abs ((-80 - ) / .00083333333) + 1)
Int(Abs ((35 - ) / .00083333333) + 1)

Where -80 and 35 are the starting X/Y location of the raster, and are the X/Y location of the point, and .00083333333 is the pixel size. "

Find it quite complicated but would do that. unfortunately I get an error in the field calculator. Maybe you know what and stand for?

Best, Esther
0 Kudos
SteveLynch
Esri Regular Contributor
Search for "02-03-2011 06:58 AM" in http://forums.arcgis.com/threads/364...values?p=74323


I.e use FlowAccumulation

Steve
0 Kudos
EstherAmler
Emerging Contributor
thank you!

another thing, simple formula for single points is:

lon -> col:  (col - 0.5)*pixel size + Upper left Y
lat -> row:  Upper left X - (row + 0.5)*pixel size
0 Kudos