Contents
How to do a conditional if or else in ArcGIS?
In this example, where the value of the input conditional raster is greater than or equal to 1500, the output value will be 1, and where it is less than 1500, the output value will be 0. # Name: Con_Ex_02.py # Description: Performs a conditional if/else evaluation # on each cell of an input raster.
How many conditional rasters are used in ArcGIS?
In this example two different rasters are used to create the conditional raster. In this example, where the value of the input conditional raster is greater than or equal to 1500, the output value will be 1, and where it is less than 1500, the output value will be 0.
How does Spatial Analyst work in ArcGIS Pro?
See Analysis environments and Spatial Analyst for additional details on the geoprocessing environments that apply to this tool. Input raster representing the true or false result of the desired condition. It can be of integer or floating point type. The input whose values will be used as the output cell values if the condition is true.
When is an expression treated as a nonzero in ArcGIS?
If the evaluation of the expression is nonzero, it is treated as True. If no input false raster or constant is specified, NoData will be assigned to those cells that do not result in True from the expression.
What happens to nodata in ArcGIS if the expression is nonzero?
If both the true expression and optional false raster are integer, the output raster will be integer. If the evaluation of the expression is nonzero, it is treated as True. If no input false raster or constant is specified, NoData will be assigned to those cells that do not result in True from the expression.
How are conditional statements used in the con tool?
Multiple conditional statements can be used within the Con tool, but each must have a value or expression that can be used to assign values to the output cells if the result of the evaluation of the condition is true.