Select to view content in your preferred language

Con and raster calculator

1877
2
02-25-2011 01:44 PM
AliceDeschamps1
Emerging Contributor
I am trying to convert the NoData values in my image to 0 using a Con statement within raster calculator.  Tried many iteration without success??  I am using ArcGISv10.

Con("Scaled_8bit"  ==  NoData, 0 ,"Scaled_8bit")

Note:  Trying to avoid reclass, too slow.  This will be integrated in a model.

Thanks

Alice
0 Kudos
2 Replies
DanPatterson_Retired
MVP Emeritus
http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/How_to_change_NoData_cells_to_a_value/...
untested
Con(IsNull("Scaled_8bit"), 0 ,"Scaled_8bit")
or something along that line
0 Kudos
AliceDeschamps1
Emerging Contributor
http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/How_to_change_NoData_cells_to_a_value/...
untested
Con(IsNull("Scaled_8bit"), 0 ,"Scaled_8bit")
or something along that line


---------------------
Thanks, I the meanwhile I had found this 2 step workaround, but the 1 step expression is much more time efficient!

2 Step: raster1=IsNull("%Scaled_8bit%")  Followed by Con("%raster1%",0,"%Scaled_8bit%","Value=1"). 

1 Step: Con(IsNull("%Ouptut8bit%"),0,"%Ouptut8bit%")
0 Kudos