ruanna.blogg.se

Arcmap raster calculator con pick setnull
Arcmap raster calculator con pick setnull












Map Algebra expression Con("Presentation MCE: TWI\TWI" 0) & ("Presentation MCE: TWI\TWI" = 1) & ("Presentation MCE: TWI\TWI" = 2) & ("Presentation MCE: TWI\TWI" = 3) & ("Presentation MCE: TWI\TWI" = 4) & ("Presentation MCE: TWI\TWI" = 5) & ("Presentation MCE: TWI\TWI" = 6) & ("Presentation MCE: TWI\TWI" = 7) & ("Presentation MCE: TWI\TWI" = 8) & ("Presentation MCE: TWI\TWI" = 9) & ("Presentation MCE: TWI\TWI" =10, 1)) In this case, the syntax of the Con tool takes on the following generalized form:Ĭon(in_conditional_raster, true_raster, )The parameter is dropped in this case because the condition raster is provided by the map algebra expression, which would return a raster dataset, for example, with values of 0 and 1 if it were a logical operation.Am I missing some paranthesis or something? I counted each Con to have the same number of paranthesises. OutRas = Con ( SlopeRas, 10, 1, "VALUE parameter should be dropped if the input conditional raster expression is used in a complex expression. If a cell has less than 15 percent slope, it will receive the value of true (in this case, 10) otherwise, it will receive the value identified by false (in this case, 1). Exampleįor example, if you want to assign the value of 10 (identified as the true constant) as good for construction and 1 (identified as the false constant) as unsuitable for construction based on the slope at a cell (identified by the input conditional raster), and less than 15 percent slope is considered good, you would enter the expression "value < 15".

arcmap raster calculator con pick setnull

The where clause parameter defines the expression to be evaluated against the input conditional raster. Input a false raster to provide values to be returned when the conditional evaluation is false. Input a true raster to provide values to be returned when the conditional evaluation is true. To perform conditional evaluation on a raster dataset in Map Algebra, input the raster dataset as conditional raster to the Con tool. In particular, the logical tools in the Math toolbox can be used, with the Test tool being particularly useful. NoData does not equate to false.Ī number of Spatial Analyst tools can be used to create a conditional input raster.

arcmap raster calculator con pick setnull

Cells assigned NoData will receive NoData as output. If only an input raster is used, all nonzero values in the input raster are considered true and all zero values false. In the geoprocessing environment, there are two ways to identify whether a cell location is evaluated as true or false: by an input raster or by an input raster in which an optional input expression is applied. If the cell is evaluated as false, the output value for that location is identified in the false input. If the cell is evaluated as true, the output value for that location is identified in the true input.

arcmap raster calculator con pick setnull

The values a cell should receive when it is evaluated as false are specified by an Input false raster or constant.Ĭonceptually, during execution, the Con tool visits each cell location and, based on the cell's value and the conditional statement, determines if the cell is evaluated as true or false.

arcmap raster calculator con pick setnull

The values a cell should receive when it is evaluated as true are specified by the Input true raster or constant value. If the cell is evaluated as true, it will receive one value if it is evaluated as false, it will receive another. The Con tool 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. Using complex expressions with the Con tool in Map Algebra.














Arcmap raster calculator con pick setnull