Select to view content in your preferred language

About Raster Calculator error

3162
3
10-15-2014 11:57 PM
EdmondKe
Deactivated User

Dear all

 

Beacuse our professor ask us to make each grid into table ( he sayed that let each grid exist number...

 

so i need to use raster calculator

 

Professor give us formula :  [your dem] - [your dem] + $$rowmap * $$ncols + $$colmap

 

ps. My original dem is alisan20mdem

and it will into.....like this pic4.jpg

 

(my prsfessor 's version is 9.3 and I was 10.2.2 )

 

so..i type formula on and got error message

 

1.jpg

 

2.jpg

 

At first i thought that problem is about Alisan20m1.img , so i delete it

 

but i found the main problem is $$rowmap !!!  if i type it on  , it would show error message .

 

3.jpg

 

but i leave the formula that[ Alisan20m1.img - Alisan20m1.img ] and the message disappeared .

 

what can i do ?? please teasch me....thank you very much

0 Kudos
3 Replies
curtvprice
MVP Alum

$$ROWMAP and $$COLMAP are not supported in the 10.x Raster Calculator. Sorry about that. There are some workarounds but they aren't pretty and involve using Python scripting - not the Raster Calculator.

$$NCOLS + $$ROWMAP in ArcGIS 10 Python map algebra

EdmondKe
Deactivated User

Dear Curtis

I have linked that the net of your posted

I donnt know how to use the code that you shared.

I am so sorry that i am not good at reading english ..(I am taiwanese

can u tach me how to do that step by step ? plz...

0 Kudos
curtvprice
MVP Alum

I don't think there is an easy way to do this in 10.x.

I would look into the Create Fishnet tool, which will create polygons on a regular grid.

What exactly are you trying to accomplish?

0 Kudos