Select to view content in your preferred language

ArcGIS 10 Raster Calculator tool syntax?

5721
6
Jump to solution
05-17-2012 08:22 AM
JamalNUMAN
Legendary Contributor

What is wrong with this syntax when using the Raster Calculator tool? (9.3)

I'm wondering what might be the correct syntax when using the ArcGIS 10 Raster Calculator tool   compared to the old 9.3 Single Output Map Algebra tool?

Two screenshots are attached.

The first attachment shows what was correct when using the ArcGIS 9.3 Single Output Map Algebra tool

The second attachment shows how I tried to do the same using the ArcGIS 10 Raster Calculator tool  which did not work!

What might be the correct syntax to such expression when using the Raster Calculator tool?


Thank you for the help

Best

Jamal

(Original post date 5/17/2012, edited to fix garbled formatting from old forums conversion by Curtis Price​ 5/18/2015)

----------------------------------------
Jamal Numan
Geomolg Geoportal for Spatial Information
Ramallah, West Bank, Palestine
0 Kudos
1 Solution

Accepted Solutions
TimothyHales
Esri Notable Contributor
Here, try this:

SetNull(("StreamOrder"==1)  & ( Lookup("StreamLink","count") <= 250), "StreamLink")

View solution in original post

6 Replies
TimothyHales
Esri Notable Contributor
Hi Jamal,

Dot notation does not work in the 10.0 Raster Calculator.  You will need to use the Lookup function.  Something like this:

SetNull(Lookup("Raster","COUNT") <= 250, "Raster" )

Using raster attribute other than 'value' in map algebra

Lookup function in v10.0 Map Algebra: implementing dot notation in v10.0?
JamalNUMAN
Legendary Contributor
Hi Jamal,

Dot notation does not work in the 10.0 Raster Calculator.  You will need to use the Lookup function.  Something like this:

SetNull(Lookup("Raster","COUNT") <= 250, "Raster" )

Using raster attribute other than 'value' in map algebra

Lookup function in v10.0 Map Algebra: implementing dot notation in v10.0?


Thank you for the answer Timothy.

Sounds it is not working with the lookup tool! Please, have a look on the screenshot below.

[ATTACH=CONFIG]14426[/ATTACH]


The two raster I�??m working with are attached

Best

Jamal
----------------------------------------
Jamal Numan
Geomolg Geoportal for Spatial Information
Ramallah, West Bank, Palestine
0 Kudos
TimothyHales
Esri Notable Contributor
Here, try this:

SetNull(("StreamOrder"==1)  & ( Lookup("StreamLink","count") <= 250), "StreamLink")
JamalNUMAN
Legendary Contributor
Here, try this:

SetNull(("StreamOrder"==1)  & ( Lookup("StreamLink","count") <= 250), "StreamLink")


Many thanks for the help.

The problem wouldn�??t be resolved without the great help you offered.

Best

Jamal
----------------------------------------
Jamal Numan
Geomolg Geoportal for Spatial Information
Ramallah, West Bank, Palestine
0 Kudos
curtvprice
MVP Esteemed Contributor

Hey Jamal, could you please move this to Spatial Analyst​ - it really doesn't belong here in Story Maps.

OwenGeo
Esri Notable Contributor

I moved this discussion to Spatial Analyst. Thanks Curtis.

Owen Evans
Lead Product Engineer | StoryMaps