Logical Math geoprocessing functions

Spatial Analyst のライセンスで利用可能。

Image Analyst ライセンスで利用できます。

論理演算ジオプロセシング機能は、入力値を評価し、ブール型ロジックに基づいて出力値を決定します。 ジオプロセシング機能は次の 4 つの主なカテゴリに分類されています。ブール、結合、論理、関係です。

The following is a list of all the geoprocessing functions within each grouping:

  • Boolean:

    Boolean And, Boolean Or, Boolean XOr, Boolean Not

  • Combinatorial:

    Combinatorial And, Combinatorial Or, Combinatorial XOr

  • Relational:

    Equal To, Not Equal, Greater Than, Greater Than Equal, Less Than, Less Than Equal

  • Logical:

    Diff, InList, Is Null, Over, Test

Boolean logic generally applies a binary condition to the inputs and evaluates to a binary condition for the output. The binary condition can be expressed in several ways: "1" and "0", "True" and "False", "yes" and "no", "on" and "off", and so forth. In the Logical Math geoprocessing functions, the False condition is represented with a value of 0, and the True condition as any value other than 0.

The Boolean geoprocessing functions evaluate the inputs only as True or False conditions and return the result of the particular geoprocessing function as a 1 or 0 (True or False) Boolean value. The Combinatorial geoprocessing functions identify unique combinations of input values based on the logic of the particular geoprocessing function and return a different value for each unique combination. The Relational geoprocessing functions compare the values of one input relative to another and return the result of the particular geoprocessing function as 1 or 0 Boolean value. The Logical geoprocessing functions have different ways to apply Boolean logic, such as identifying only the input cells that are NoData, or using a logical expression that you define to determine which cells are evaluated as true.

使用可能なジオプロセシング機能とその簡単な説明を次の表に示します。

Boolean evaluation

Geoprocessing FunctionDescription

Boolean And

2 つの入力ラスターのセル値で論理積 (AND) 演算を行います。

両方の入力値が true (0 以外) の場合には、出力値は 1 になります。片方または両方の入力値が false (0) の場合には、出力値は 0 になります。

Boolean Not

1 つの入力ラスターのセル値に対してブール型の論理否定 (補数) 演算を行います。

入力値が true (0 以外) の場合には、出力値は 0 になります。入力値が false (0) の場合には、出力値は 1 になります。

Boolean Or

2 つの入力ラスターのセル値で論理和 (OR) 演算を行います。

片方または両方の入力値が true (0 以外) の場合には、出力値は 1 になります。両方の入力値が false (0) の場合には、出力値は 0 になります。

Boolean XOr

2 つの入力ラスターのセル値に対してブール型の排他的論理和演算を行います。

片方の入力値が true (0 以外) で、もう片方の入力値が false (0) の場合には、出力値は 1 になります。両方の入力値が true (0 以外) または false (0) の場合には、出力値は 0 になります。

Boolean math geoprocessing functions

Combinatorial evaluation

Geoprocessing FunctionDescription

Combinatorial And

2 つの入力ラスターのセル値で Combinatorial And 処理を行います。

両方の入力値が true (0 以外) の場合には、入力値の組み合わせごとに異なる数値を出力します。片方または両方の入力値が false (0) の場合には、出力値は 0 になります。

Combinatorial Or

2 つの入力ラスターのセル値で Combinatorial Exclusive Or 処理を行います。

片方の入力値が true (0 以外) の場合には、入力値の組み合わせごとに異なる数値を出力します。両方の入力値が false (0) の場合には、出力値は 0 になります。

Combinatorial XOr

2 つの入力ラスターのセル値に対して排他的論理和結合演算を行います。

片方の入力値が true (0 以外) で、もう片方の入力値が false (0) の場合には、入力値の組み合わせごとに異なる数値を出力します。両方の入力値が true (0 以外) または false (0) の場合には、出力値は 0 になります。

Combinatorial math geoprocessing functions

Relational evaluation

Geoprocessing FunctionDescription

Equal To

2 つの入力値に対してセル単位での関係等価演算を実行します。

1 つ目のラスターが 2 つ目のラスターと等しい値をもつ場合には、セル値に 1 を返し、等しくない場合には 0 を返します。

Greater Than

2 つの入力値に対してセル単位で、[より大きい] 関係演算を実行します。

1 つ目のラスターが 2 つ目のラスターより大きい場合にはセル値に 1 を返し、そうではない場合には 0 を返します。

Greater Than Equal

2 つの入力値に対してセル値単位で、[以上] 演算を実行します。

1 つ目のラスターが 2 つ目のラスターより大きい、または 2 つ目のラスターと等しい場合にはセル値に 1 を返し、どちらでもない場合には 0 を返します。

Less Than

2 つの入力値に対してセル値単位で、[より小さい] 関係演算を実行します。

1 つ目のラスターのセル値が 2 つ目のラスターのセル値よりも小さい場合は「1」を返し、そうでない場合は「0」を返します。

Less Than Equal

2 つの入力値に対してセル単位で、[以下] 関係演算を実行します。

1 つ目のラスターが 2 つ目のラスターより小さいか、または 2 つ目のラスターと等しい場合にはセル値として 1 を返し、どちらでもない場合には 0 を返します。

Not Equal

2 つの入力値に対してセルごとに関係不等価演算を実行します。

最初のラスターが 2 番目のラスターと等しくない場合にはセル値に 1 を返し、等しい場合には 0 を返します。

Relational math geoprocessing functions

Logical evaluation

Geoprocessing FunctionDescription

Diff

1 つ目の入力値のどの値が 2 つ目の入力値と論理的に異なるかをセル単位で判別します。

2 つの入力値が異なる場合には、最初の入力値の値が出力値の値となります。2 つの入力値が同じ場合には、出力値は 0 になります。

InList

最初の入力の中で、他の一連の入力に含まれる値をセル単位で判別します。

各セルについて、最初の入力ラスターの値が他の入力のリストに含まれている場合、その値が出力ラスターに割り当てられます。含まれていない場合、出力セルは NoData になります。

Is Null

入力ラスターの値が NoData であるかどうかをセルごとに判別します。

入力値が NoData の場合は 1、そうでないセルには 0 を返します。

Over

1 つ目の入力ラスターのセルの値が 0 以外の場合、出力ラスターのセルの値は、1 つ目の入力ラスターの値になります。セル値が 0 の場合、出力ラスターのセルの値は 2 つ目の入力ラスターの値になります。

Test

論理式を使用して、入力ラスターのブール演算を実行します。

式が true と評価されると、出力セル値は 1 になります。入力値が false の場合、出力は 0 になります。

Logical math geoprocessing functions

関連トピック