Raster Calculator

This tool is a spatial analysis tool. User can input raster data algebraic expressions, use operators and functions to do mathematical calculations, in order to establish selection queries, or enter raster data algebraic syntax.

Advantages of the raster calculator tool:

  1. Supports the use of variables in raster data.
  2. The ability to apply operators to three or more inputs of an expression.
  3. The raster calculator is used to execute single-line algebraic expressions through a simple, calculator-like tool interface, using a variety of tools and operators. When multiple tools or operators are used in an expression, the speed of execution is generally faster than executing each operator or tool separately.

Principle Description

Use the calculator buttons to enter values in expressions. Use the operator buttons to enter mathematical operators (addition, division, etc.) and logical operators (greater than, equal to, etc.) into expressions. By clicking these buttons, user can enter a number or operator into the current position of the pointer in the expression. The following are some examples of expressions that can be executed in the raster calculator tool. In these expressions, the raster layer name is enclosed in quotation marks, such as "dist".

("pop" > 150) & ("dist" > 10)
(("reclass_rd_dist" * 3) + ("reclass_landuse" * 2) + "reclass_elev") /6.0
("Band4" - "Band3") / Float("Band4" + "Band3")
Con("elev" <= 3000, 1, 0)
Con(IsNull("elev"),0, "elev")
Con(("landuse1" == 1) & ("landuse2" == 5), "landuse1" + "landuse2", 99)
Con(Raster('elev') != 0,'elev')
(Con('elev', 'elev', "", "elev_feet <> 0")) + Raster("tree_height")
Con("inRas" < 45,1, Con(("inRas" >= 45) & ("inRas" < 47),2, Con(("inRas" >= 47)&("inRas" < 49),3, Con("inRas" >= 49,4))))

Usage

Click Data Management > Raster Tools > Raster Calculator.

Band Calculator

Settings

  • Raster Data:Display the raster data path (.tif) contained in the main interface, user can import the local raster data, perform expression calculations, and remove or clear the imported data.

  • Calculator Buttons:Contains number buttions 1, 2, 9, 0, etc. Algebraic operator buttions +, -, *, /, etc. Logical operators >, <, ==, etc. The major operation and logical buttons are as follows:

    / Divided by != Not equal to == Equal to & AND
    X Multiplied by < Less than <= less="" than="" or="" equal<="" td=""> | OR
    - Minus > Greater than >= Greater than or equal ^ Exclusive OR
    + Plus ~ NOT C Clear expression
  • Function:Lists the functions of abs, tan, cos, log, etc.

    Function Description
    abs Absolute value function
    acos Arc-cosine function
    acosh Hyperbolic arc-cosine fuction
    cosh Hyperbolic cosine function
    asin Arc-sine function
    asinh Hyperbolic arc-sine function
    sin Sine function
    tan Tangent function
    atanh Hyperbolic arc-tangent function
    atan Arc-tangent function
    cot Cotangent function
    pow Exponent power function
    log Logarithm function
    sqrt Square root function
    sinc Sinc function
  • Calculator Expression:Use the calculator button to enter values in the expression, or use operators, functions, etc. to form a raster calculation expression with raster data, and display it in this panel.

  • Output Path:Select the output directory or .tif file path. This output raster represents the result value of the calculation expression.

results matching ""

    No results matching ""