GDAL analysis

Aspect

Description

任意GDALサポート標高ラスタから方向図を生成します。方向は、傾きが向くコンパス方向です。ピクセルは、方位を示す北からの角度で測定0〜360°の値を有することになります。南側は、より日射(180°-270°から高い方位)を受信しながら、北半球に、斜面の北側は、多くの場合、(0°-90°より小さな方位)網掛けされています。アルゴリズムは、_ `` GDALのDEMユーティリティ<http://www.gdal.org/gdaldem.html>に由来しています。

Parameters

Input layer [raster]
Elevation raster layer.
Band number [number]

The number of a band containing elevation values.

Default: 1

Compute edges [boolean]

Generates edges from the elevation raster.

Default: False

Use Zevenbergen&Thorne formula (instead of the Horn's one) [boolean]

Activates Zevenbergen&Thorne formula for smooth landscapes.

Default: False

Return trigonometric angle (instead of azimuth) [boolean]

Activating the trigonometric angle results in different categories: 0° (=East), 90° (North), 180° (=West), 270° (=South).

Default: False

Return 0 for flat (instead of -9999) [boolean]

Activating this option will insert a 0-value for the value -9999 on flat areas.

Default: False

Outputs

Output file [raster]
Output raster with angle values in degrees.

Console usage

processing.runalg('gdalogr:aspect', input, band, compute_edges, zevenbergen, trig_angle, zero_flat, output)

See also

Color relief

Description

任意GDALサポート標高ラスタからカラーレリーフマップを生成します。カラーレリーフが特に上昇を描写するために使用することができます。アルゴリズムは、標高とテキストベースのカラーコンフィギュレーションファイルから計算された値を持つ4バンドラスタを出力します。デフォルトでは、与えられた標高値との間の色が滑らかにブレンドされ、その結果は素晴らしい色付け標高ラスタです。アルゴリズムは、__ `` GDALのDEMユーティリティ<http://www.gdal.org/gdaldem.html>に由来しています。

Parameters

Input layer [raster]
Elevation raster layer.
Band number [number]

The number of a band containing elevation values.

Default: 1

Compute edges [boolean]

Generates edges from the elevation raster.

Default: False

Color configuration file [file]
A text-based color configuration file.
Matching mode [selection]

The “0,0,0,0” RGBA mode results in color interpolation whereas the Exact color and Nearest color modes avoid interpolation of values that don’t match an index of the color configuration file.

Options:

  • 0 — “0,0,0,0” RGBA
  • 1 — Exact color
  • 2 — Nearest color

Default: 0

Outputs

Output file [raster]
A 4-band output raster.

Console usage

processing.runalg('gdalogr:colorrelief', input, band, compute_edges, color_table, match_mode, output)

See also

Fill nodata

Description

縁から補間によってないデータ値を有するラスタ領域を埋めます。無データ領域の値は、逆距離加重を用いsourrounding画素値によって計算されます。補間後の結果の平滑化はplacceをとります。入力は任意のGDALでサポートされているラスタ層とすることができます。このアルゴリズムは、一般に、(例えば、例えば、標高モデルなどの)かなり連続的に変化するラスタの欠落領域を補間するのに適しています。それはまた、(航空写真のような)より不規則に変化する画像における小孔や亀裂を充填するのに適しています。これは、一般的にまばらなポイントデータからラスタを補間するためのそれほど大きくないです。このアルゴリズムは、<http://www.gdal.org/gdal_fillnodata.html> __ GDALのfillnodataユーティリティから導出されます。

Parameters

Input layer [raster]
Raster layer.
Search distance [number]

The number of pixels to search in all directions to interpolate from.

Default: 100

Smooth iterations [number]

The number of 3x3 filter passes to run (0 or more) to smoothen the results of the interpolation.

Default: 0

Band to operate on [number]

The band to operate on. Nodata values must be represented by the value 0.

Default: 1

Validity mask [raster]

Optional.

A mask that defines which areas are to be filled.

Do not use default validity mask [boolean]

Activates the user-defined validity mask.

Default: False

Outputs

Output layer [raster]
Output raster in any GDAL-supported format.

Console usage

processing.runalg('gdalogr:fillnodata', input, distance, iterations, band, mask, no_default_mask, output)

See also

Grid (Moving average)

Description

移動平均は、単純なデータ平均化アルゴリズムです。これは、ウィンドウ内の値との平均をすべてのデータポイントを検索するために楕円形の移動ウィンドウを使用します。検索楕円は指定された角度、グリッド・ノードに位置する楕円の中心回転させることができます。また、平均のデータ点の最小数が十分なポイントがウィンドウ内に存在しない場合、グリッド・ノードが空であると考えられ、指定NODATA値で充填され、設定することができます。

Parameters

Input layer [vector: point]
Point vector layer
Z field [tablefield: numeric]
Field for the interpolation (Optional)
Radius 1 [number]

The first radius (X axis if rotation angle is 0) of search ellipse.

Default: 0.0

Radius 2 [number]

The second radius (Y axis if rotation angle is 0) of search ellipse.

Default: 0.0

Min points [number]

Minimum number of data points to average. If less amount of points found the grid node considered empty and will be filled with NODATA marker.

Default: 0.0

Angle [number]

Angle of ellipse rotation in degrees. Ellipse rotated counter clockwise.

Default: 0.0

Nodata [number]

No data marker to fill empty points.

Default: 0.0

Output raster type [selection]

Raster file type

Options:

  • 0 — Byte
  • 1 — Int16
  • 2 — UInt16
  • 3 — UInt32
  • 4 — Int32
  • 5 — Float32
  • 6 — Float64
  • 7 — CInt16
  • 8 — CInt32
  • 9 — CFloat32
  • 10 — CFloat64

Default: 5

Outputs

Output file [raster]

Interpolated raster file

Console usage

processing.runalg('gdalogr:gridaverage', input, z_field, radius_1, radius_2, min_points, angle, nodata, rtype, output)

Grid (Data metrics)

Description

This algorithm computes some data metrics using the specified window and output grid geometry.

Parameters

Input layer [vector: point]
Point vector layer
Z field [tablefield: numeric]
Field for the interpolation (Optional)
Metrics [selection]

List of available metrics:

Options:

  • 0 — Minimum, minimum value found in grid node search ellipse.
  • 1 — Maximum, maximum value found in grid node search ellipse
  • 2 — Range, a difference between the minimum and maximum values found in grid node search ellipse
  • 3 — Count, a number of data points found in grid node search ellipse
  • 4 — Average distance, an average distance between the grid node (center of the search ellipse) and all of the data points found in grid node search ellipse
  • 5 — Average distance between points, an average distance between the data points found in grid node search ellipse. The distance between each pair of points within ellipse is calculated and average of all distances is set as a grid node value

Default: 0

Radius 1 [number]

The first radius (X axis if rotation angle is 0) of search ellipse. Set this parameter to zero to use whole point array

Default: 0.0

Radius 2 [number]

The second radius (Y axis if rotation angle is 0) of search ellipse. Set this parameter to zero to use whole point array

Default: 0.0

Min points [number]

Minimum number of data points to use. If less amount of points found the grid node considered empty and will be filled with NODATA marker.

This is only used if search ellipse is set (both radii are non-zero)

Default: 0.0

Angle [number]

Angle of search ellipse rotation in degrees (counter clockwise)

Default: 0.0

Nodata [number]

NODATA marker to fill empty points

Default: 0.0

Output raster type [selection]

Raster file type

Options:

  • 0 — Byte
  • 1 — Int16
  • 2 — UInt16
  • 3 — UInt32
  • 4 — Int32
  • 5 — Float32
  • 6 — Float64
  • 7 — CInt16
  • 8 — CInt32
  • 9 — CFloat32
  • 10 — CFloat64

Default: 5

Outputs

Output file [raster]
Interpolated raster file

Console usage

processing.runalg('gdalogr:griddatametrics', input, z_field, metric, radius_1, radius_2, min_points, angle, nodata, rtype, output)

Grid (Inverse distance to a power)

Description

The Inverse Distance to a Power gridding method is a weighted average interpolator.

すべてのデータポイントの座標と出力グリッド幾何形状を含む散乱データ値と入力配列を提供すべきです。この関数は、出力グリッド内の指定された位置の補間値を計算します。

Parameters

Input layer [vector: point]
Point vector layer
Z field [tablefield: numeric]
Field for the interpolation (Optional).
Power [number]

Weighting power

Default: 2.0

Smothing [number]

Smoothing parameter

Default: 0.0

Radius 1 [number]

The first radius (X axis if rotation angle is 0) of search ellipse

Default: 0.0

Radius 2 [number]

The second radius (Y axis if rotation angle is 0) of search ellipse

Default: 0.0

Max points [number]

Maximum number of data points to use.

Do not search for more points than this number. If less amount of points found the grid node considered empty and will be filled with NODATA marker

Default: 0.0

Min points [number]

Minimum number of data points to use.

If less amount of points found the grid node considered empty and will be filled with NODATA marker

Default: 0.0

Angle [number]

Angle of ellipse rotation in degrees.

Ellipse rotated counter clockwise.

Default: 0.0

Nodata [number]

No data marker to fill empty points

Default: 0.0

Output raster type [selection]

Raster file type

Options:

  • 0 — Byte
  • 1 — Int16
  • 2 — UInt16
  • 3 — UInt32
  • 4 — Int32
  • 5 — Float32
  • 6 — Float64
  • 7 — CInt16
  • 8 — CInt32
  • 9 — CFloat32
  • 10 — CFloat64

Default: 5

Outputs

Output file [raster]
Interpolated raster file

Console usage

processing.runalg('gdalogr:gridinvdist', input, z_field, power, smothing, radius_1, radius_2, max_points, min_points, angle, nodata, rtype, output)

Grid (Nearest neighbor)

Description

最近傍法は、それだけグリッドノード検索楕円で見つかった最も近い点の値を取り、結果として返し、任意の補間又は平滑化を行いません。見つからポイントがない場合は、指定されたNODATA値が返されます。

Parameters

Input layer [vector: point]
Point vector layer
Z field [tablefield: numeric]
Field for the interpolation (Optional).
Radius 1 [number]

The first radius (X axis if rotation angle is 0) of search ellipse.

Default: 0.0

Radius 2 [number]

The second radius (Y axis if rotation angle is 0) of search ellipse.

Default: 0.0

Angle [number]

Angle of ellipse rotation in degrees. Ellipse rotated counter clockwise.

Default: 0.0

Nodata [number]

No data marker to fill empty points.

Default: 0.0

Output raster type [selection]

Raster file type

Options:

  • 0 — Byte
  • 1 — Int16
  • 2 — UInt16
  • 3 — UInt32
  • 4 — Int32
  • 5 — Float32
  • 6 — Float64
  • 7 — CInt16
  • 8 — CInt32
  • 9 — CFloat32
  • 10 — CFloat64

Default: 5

Outputs

Output file [raster]
Interpolated raster file

Console usage

processing.runalg('gdalogr:gridnearestneighbor', input, z_field, radius_1, radius_2, angle, nodata, rtype, output)

Hillshade

Description

素敵な日陰緩和効果を持つラスタを出力します。これは、地形を可視化するために非常に便利です。必要に応じて垂直方向と水平方向の単位の違いを考慮するために光源、垂直誇張係数及びスケーリング係数の方位と高度を指定することができます。アルゴリズムは、__ `` GDALのDEMユーティリティ<http://www.gdal.org/gdaldem.html>に由来しています。

Parameters

Input layer [raster]
Elevation raster layer.
Band number [number]

Band containing the elevation information.

Default: 1

Compute edges [boolean]

Generates edges from the elevation raster.

Default: False

Use Zevenbergen&Thorne formula (instead of the Horn's one) [boolean]

Activates Zevenbergen&Thorne formula for smooth landscapes.

Default: False

Z factor (vertical exaggeration) [number]

The factor exaggerates the height of the output elevation raster.

Default: 1.0

Scale (ratio of vert. units to horiz.) [number]

The ratio of vertical units to horizontal units.

Default: 1.0

Azimuth of the light [number]

Defines the azimuth of the light shining on the elevation raster in degrees. If it comes from the top of the raster the value is 0, if it comes from the east it is 90 a.s.o. .

Default: 315.0

Altitude of the light [number]

Defines the altitude of the light, in degrees. 90 if the light comes from above the elevation raster, 0 if it is raking light.

Default: 45.0

Outputs

Output file [raster]
Output raster.

Console usage

processing.runalg('gdalogr:hillshade', input, band, compute_edges, zevenbergen, z_factor, scale, azimuth, altitude, output)

See also

Near black

Description

Convert nearly black/white borders to black.

このユーティリティは、画像をスキャンして、黒または白の襟周りのカスタムの色に近いか、正確に黒、白または一つ以上であるすべてのピクセルを設定しようとします。モザイクときにカラーピクセルを透明として扱うことができるように、これは、多くの場合、非可逆圧縮された航空写真を「フィックスアップ」するために使用され

Parameters

Input layer [raster]
Raster file in input
How far from black (white) [number]

Select how far from black, white or custom colors the pixel values can be and still considered near black, white or custom color

Default: 15

Search for nearly white pixels instead of nearly black [boolean]

Search for nearly white (255) pixels instead of nearly black pixels

Default: False

Outputs

Output layer [raster]
Raster file in output

Console usage

processing.runalg('gdalogr:nearblack', input, near, white, output)

See also

GDAL nearblack

Proximity (raster distance)

Description

近接アルゴリズムは注目画素として識別さ最も近いピクセルの中心までの各画素の中心からの距離を示すラスタ近接マップを生成します。注目画素は、ラスタ画素値が、注目画素値の集合であるため、ソースラスタ内のものです。

Parameters

Input layer [raster]
Raster in input
Values [string]

A list of target pixel values in the source image to be considered target pixels. If not specified, all non-zero pixels will be considered target pixels.

Default: (not set)

Dist units [selection]

Indicate whether distances generated should be in pixel or georeferenced coordinates.

Options:

  • 0 — GEO
  • 1 — PIXEL

Default: 0

Max dist (negative value to ignore) [number]

The maximum distance to be generated. The nodata value will be used for pixels beyond this distance. If a nodata value is not provided, the output band will be queried for its nodata value.

If the output band does not have a nodata value, then the value 65535 will be used. Distance is interpreted in pixels unless distunits GEO is specified

Default: -1

No data (negative value to ignore) [number]

Specify a nodata value to use for the destination proximity raster

Default: -1

Fixed buf val (negative value to ignore) [number]

Specify a value to be applied to all pixels that are within the -maxdist of target pixels (including the target pixels) instead of a distance value

Default: -1

Output raster type [selection]

Raster file type

Options:

  • 0 — Byte
  • 1 — Int16
  • 2 — UInt16
  • 3 — UInt32
  • 4 — Int32
  • 5 — Float32
  • 6 — Float64
  • 7 — CInt16
  • 8 — CInt32
  • 9 — CFloat32
  • 10 — CFloat64

Default: 5

Outputs

Output layer [raster]
Raster file in output

Console usage

processing.runalg('gdalogr:proximity', input, values, units, max_dist, nodata, buf_val, rtype, output)

Roughness

Description

標高から計算された値を有するシングルバンドラスタを出力します。粗さは、表面の凹凸の度合いです。これは、中心画素とその周辺セルの最大セル間の差によって計算されます。粗さの決意は、それが気候と一般的には物理的な地理学では、河川の形態の計算に便利です、地形標高データの解析における役割を果たしています。アルゴリズムは、__ `` GDALのDEMユーティリティ<http://www.gdal.org/gdaldem.html>に由来しています。

Parameters

Input layer [raster]
Elevation raster layer.
Band number [number]

The number of a band containing elevation values.

Default: 1

Compute edges [boolean]

Generates edges from the elevation raster.

Default: False

Outputs

Output file [raster]
Single-band output raster. The value -9999 is used as the output nodata value.

Console usage

processing.runalg('gdalogr:roughness', input, band, compute_edges, output)

See also

Sieve

Description

(ピクセル単位)を設け、閾値サイズより小さいラスタポリゴンを削除し、最大隣接ポリゴンの画素値に置き換えます。あなたはラスター地図上の小さな領域を大量に持っている場合に便利です。アルゴリズムは GDALふるいユーティリティ<http://www.gdal.org/gdal_sieve.html> _から誘導されます。

Parameters

Input layer [raster]
Raster layer.
Threshold [number]

Only raster polygons smaller than this size will be removed.

Default: 2

Pixel connection [selection]

Either four connectedness or eight connectedness should be used when determining.

Options:

  • 0 — 4
  • 1 — 8

Default: 0

Outputs

Output layer [raster]
Output raster layer.

Console usage

processing.runalg('gdalogr:sieve', input, threshold, connections, output)

See also

Slope

Description

Generate a slope map from any GDAL-supported elevation raster. Slope is the angle of inclination to the horizontal. You have the option of specifying the type of slope value you want: degrees or percent slope. The algorithm is derived from the GDAL DEM utility .

Parameters

Input layer [raster]
Elevation raster layer.
Band number [number]

The number of a band containing elevation values.

Default: 1

Compute edges [boolean]

Generates edges from the elevation raster.

Default: False

Use Zevenbergen&Thorne formula (instead of the Horn's one) [boolean]

Activates Zevenbergen&Thorne formula for smooth landscapes.

Default: False

Slope expressed as percent (instead of degrees) [boolean]

You have the option to use slope expressed as degrees.

Default: False

Scale (ratio of vert. units to horiz.) [number]

The ratio of vertical units to horizontal units.

Default: 1.0

Outputs

Output file [raster]
32-bit float output raster.

Console usage

processing.runalg('gdalogr:slope', input, band, compute_edges, zevenbergen, as_percent, scale, output)

See also

TPI (Topographic Position Index)

Description

This command outputs a single-band raster with values computed from the elevation. TPI stands for Topographic Position Index, which is defined as the difference between a central pixel and the mean of its surrounding cells

Parameters

Input layer [raster]
Elevation raster layer
Band number [number]

The number of a band containing elevation values

Default: 1

Compute edges [boolean]

Generates edges from the elevation raster

Default: False

Outputs

Output file [raster]
TPI raster in output

Console usage

processing.runalg('gdalogr:tpitopographicpositionindex', input, band, compute_edges, output)

TRI (Terrain Ruggedness Index)

Description

This command outputs a single-band raster with values computed from the elevation. TRI stands for Terrain Ruggedness Index, which is defined as the mean difference between a central pixel and its surrounding cells

Parameters

Input layer [raster]
Elevation raster layer
Band number [number]

The number of a band containing elevation values

Default: 1

Compute edges [boolean]

Generates edges from the elevation raster

Default: False

Outputs

Output file [raster]
TRI raster file

Console usage

processing.runalg('gdalogr:triterrainruggednessindex', input, band, compute_edges, output)