Questions tagged [con]

Con is a tool from the ArcGIS Spatial Analyst Toolbox. Con allows you to control the output value for each cell based on whether the cell value is evaluated as true or false in a specified conditional statement.

2
votes
0answers
41 views

Preventing ArcGIS Desktop from creating 64-bit rasters?

I've run into this issue recently wherein I run the Con tool on a 32-bit raster (TIFF format) to change some absurdly high/low values to 0 and I get a 64-bit raster (TIFF format) out the other side. ...
1
vote
0answers
18 views

Adding small-extent rasters to DEM

My goal: create viewsheds for observers which also incorporate the heights of buildings which could block observer view. This is using archaeological data, and is representing time change -- so I need ...
1
vote
0answers
163 views

Conditional in Raster Calculator

I am trying to perform a classification in Arcmap's raster calculator, but it seems that the use of multiple conditional is confusing me. What am I doing wrong in the following con-statement?: Con("...
1
vote
0answers
53 views

Using 'Con' to Create Raster Containing Values in Another Raster

I have 2 rasters that I want to combine into 1 raster, so that the 1 raster has values of each of the input rasters. I think that I want to use a 'Con' statement to do this. However, I'm having ...
1
vote
0answers
78 views

Getting values lower than specified using Con, Raster Calculator?

Expression used in raster calculator (ArcGIS 10.2.2 for Desktop): Con(("%NDVI.tif%"> (-0.05)) & ("%Height_2015.tif%" >= 16), "%Height_2015.tif%", 0) I want an output raster containing ...
1
vote
0answers
190 views

Con statement outputs using arcpy.sa.Con doesn't ignore NoData

In ArcGIS 10.2, using the Con tool, I ran a conditional statement to return RasterA where RasterB value >0. That worked fine. Transferring the code into python, the statement reads something like: ...
0
votes
0answers
27 views

Changing particular value of raster dataset to zero using ArcPy?

I try to change a particular value of raster dataset to zero using python script. When I deal with one raster, it works. Python scripts as follow: import arcpy from arcpy import env from arcpy.sa ...
0
votes
0answers
18 views

Con statement with multiple AND fails

I have a conditional statement that runs through multiple rasters. It produces the correct output in Raster Calculator but not when I run the code. I don't get any errors, it just creates blank ...