Conditional Math geoprocessing functions

Disponible avec une licence Image Analyst.

Disponible avec une licence Spatial Analyst.

The Conditional geoprocessing functions allow you to control the output values based on the conditions placed on the input raster values. The conditions that can be applied are of two types, those being either queries on the attributes or a condition based on the position of the conditional statement in a list.

The attribute query geoprocessing functions explicitly identify all cells that are evaluated as True. These cells can retain their original value, be set to another value, or be set to NoData. The cells that are evaluated as False can be set to a set of values different from the True condition. For example, if the value in the input raster is greater than 10, return 1; otherwise, return 100.

  • The Con and Set Null geoprocessing functions can use a where clause as a logical expression to define the attribute query.

The positional condition requires an input parameter (either a raster or constant) specifying the position of the conditional statement (either a raster or constant) that should be used for the output. For example, if the value for a specified cell of the input raster is 1, return the value specified by the first input in the list; if a cell in the input raster is 2, return the value specified by the second raster in the list, and so on.

  • The Pick geoprocessing function allows you to specify a list of inputs from which to provide the output value, based on the value of the position input.

Geoprocessing functionDescription

Con

Exécute une évaluation conditionnelle if/else sur chacune des cellules en entrée d'un raster en entrée.

Pick

La valeur d'un raster de position est utilisée pour déterminer de quel raster dans une liste de rasters en entrée la valeur de cellule en sortie sera obtenue.

Set Null

L’outil SetNull définit les emplacements de cellule identifiés sur la valeur NoData en fonction des critères indiqués. Il renvoie une valeur NoData si une évaluation conditionnelle est vraie et renvoie la valeur spécifiée par un autre raster si celle-ci est fausse.