Available with Image Analyst license.
Available with Spatial Analyst license.
Overview
Performs a Boolean eXclusive Or operation on the cell values of two input rasters.
If one input value is true (nonzero) and the other value is false (zero), the output value is 1. If both input values are true or both are false, the output value is 0.
Notes
The Boolean math tools interpret the inputs as Boolean values, where nonzero values are considered true, and zero is considered false.
Two inputs are necessary for this function to execute.
The order of the inputs is irrelevant for this function.
If the input values are floating point, they are converted to integer values of either 0 or 1 before the operation is performed. If the input value is a floating point 0.0, it is converted to an integer 0. If the input is any value other than 0.0, it is converted to an integer 1. For example, input float values of 0.6, 32.22, and -4.2 will all be treated as being 1. The output values are always integer.
If both inputs are single band rasters, or one of the inputs is a constant, the output will be a single band raster.
If both inputs are multiband rasters, the function will perform the operation on each band from one input, and the output will be a multiband raster. The number of bands in each multiband input must be the same.
If one of the inputs is a multiband raster and the other input is a constant, the function will perform the operation against the constant value for each band in the multiband input, and the output will be a multiband raster.
If both inputs are multidimensional rasters with same number of variables, the function will perform the operation for all slices with same dimension value, and the output will be a multidimensional raster. The variables in the inputs must have same dimensions or a common dimension but no uncommon dimensions.
If one of the inputs is a multidimensional raster and the other input is a constant, the function will perform the operation for all slices for all variables against the constant value, and the output will be a multidimensional raster.
Parameters
Parameter name | Description |
---|---|
Raster | The first input to use in this Boolean operation. A constant value can be used as an input for this parameter, provided a raster is specified for the other parameter. |
Raster2 | The second input to use in this Boolean operation. A constant value can be used as an input for this parameter, provided a raster is specified for the other parameter. |
Extent Type | Choose which extent should be used in the output raster:
|
Cellsize Type | Choose which cell size to use in the output raster. If all the input cell sizes are the same, all the options will yield the same results.
|