重要
Translation is a community effort you can join. This page is currently translated at 42.72%.
28.2.1. 栅格分析
28.2.1.1. 坡向
Generates an aspect map from any GDAL-supported elevation raster. Aspect is the compass direction that a slope faces. The pixels will have a value from 0-360° measured in degrees from north indicating the azimuth. On the northern hemisphere, the north side of slopes is often shaded (small azimuth from 0°-90°), while the southern side receives more solar radiation (higher azimuth from 180°-270°).
This algorithm is derived from the GDAL DEM utility.
Default menu:
参数
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
输入图层 |
|
[栅格] |
Input elevation raster layer |
Band number |
|
[raster band] Default: 1 |
The number of the band to use as elevation |
Return trigonometric angle instead of azimuth |
|
[boolean] Default: False |
Activating the trigonometric angle results in different categories: 0° (East), 90° (North), 180° (West), 270° (South). |
Return 0 for flat instead of -9999 |
|
[boolean] Default: False |
Activating this option will insert a 0-value for the value -9999 on flat areas. |
Compute edges |
|
[boolean] Default: False |
Generates edges from the elevation raster |
Use Zevenbergen&Thorne formula instead of the Horn's one |
|
[boolean] Default: False |
Activates Zevenbergen&Thorne formula for smooth landscapes |
坡向 |
|
[栅格] 默认: |
Output raster layer. One of:
|
Advanced parameters
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
Additional creation options 可选 |
|
[string] Default: '' |
For adding one or more creation options that control the raster to be created (colors, block size, file compression...). For convenience, you can rely on predefined profiles (see GDAL driver options section). Batch Process and Model Designer: separate multiple options with a pipe
character ( |
Additional command-line parameters 可选 |
|
[string] Default: None |
Add extra GDAL command line options |
输出
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
坡向 |
|
[栅格] |
Output raster with angle values in degrees |
Python代码
Algorithm ID: gdal:aspect
import processing
processing.run("algorithm_id", {parameter_dictionary})
当你在数据处理工具箱某个算法前悬停时,算法 id 将会展现。*参数字*将会提供参数的名称与数值。参考详见`数据处理_控制台`以获取如何从Python控制台中运行数据处理算法。
28.2.1.2. Color relief
Generates a color relief map from any GDAL-supported elevation raster. Color reliefs can particularly be used to depict elevations. The Algorithm outputs a 4-band raster with values computed from the elevation and a text-based color configuration file. By default, the colors between the given elevation values are blended smoothly and the result is a nice colorized elevation raster.
This algorithm is derived from the GDAL DEM utility.
参数
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
输入图层 |
|
[栅格] |
Input elevation raster layer |
Band number |
|
[raster band] Default: 1 |
The number of the band to use as elevation |
Compute edges |
|
[boolean] Default: False |
Generates edges from the elevation raster |
Color configuration file |
|
[file] |
A text-based color configuration file |
Matching mode |
|
[enumeration] Default: 2 |
One of:
|
Additional creation options 可选 |
|
[string] Default: '' |
For adding one or more creation options that control the raster to be created (colors, block size, file compression...). For convenience, you can rely on predefined profiles (see GDAL driver options section). Batch Process and Model Designer: separate multiple options with a pipe
character ( |
Additional command-line parameters 可选 |
|
[string] Default: None |
Add extra GDAL command line options |
Color relief |
|
[栅格] 默认: |
Output raster layer. One of:
|
输出
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
Color relief |
|
[栅格] |
A 4-band output raster |
Python代码
Algorithm ID: gdal:colorrelief
import processing
processing.run("algorithm_id", {parameter_dictionary})
当你在数据处理工具箱某个算法前悬停时,算法 id 将会展现。*参数字*将会提供参数的名称与数值。参考详见`数据处理_控制台`以获取如何从Python控制台中运行数据处理算法。
28.2.1.3. Fill NoData
Fill raster regions with NoData values by interpolation from edges. The values for the NoData regions are calculated by the surrounding pixel values using inverse distance weighting. After the interpolation a smoothing of the results takes place. Input can be any GDAL-supported raster layer. This algorithm is generally suitable for interpolating missing regions of fairly continuously varying rasters (such as elevation models for instance). It is also suitable for filling small holes and cracks in more irregularly varying images (like airphotos). It is generally not so great for interpolating a raster from sparse point data.
This algorithm is derived from the GDAL fillnodata utility.
Default menu:
参数
Basic parameters
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
标注 |
名称 |
类型 |
描述 |
输入图层 |
|
[栅格] |
Input raster layer |
Band number |
|
[raster band] Default: 1 |
The band to operate on. NoData values must be represented by the value 0. |
Maximum distance (in pixels) to search out for values to interpolate |
|
[数字] Default: 10 |
The number of pixels to search in all directions to find values to interpolate from |
Number of smoothing iterations to run after the interpolation |
|
[数字] Default: 0 |
The number of 3x3 filter passes to run (0 or more) to smoothen the results of the interpolation. |
Do not use default validity mask for the input band |
|
[boolean] Default: False |
Activates the user-defined validity mask |
Validity mask |
|
[栅格] |
A raster layer that defines the areas to fill. |
Filled |
|
[栅格] 默认: |
Specification of the output raster layer. One of:
|
Advanced parameters
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
Additional creation options 可选 |
|
[string] Default: '' |
For adding one or more creation options that control the raster to be created (colors, block size, file compression...). For convenience, you can rely on predefined profiles (see GDAL driver options section). Batch Process and Model Designer: separate multiple options with a pipe
character ( |
Additional command-line parameters 可选 |
|
[string] Default: None |
Add extra GDAL command line options |
输出
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
Filled |
|
[栅格] |
Output raster |
Python代码
Algorithm ID: gdal:fillnodata
import processing
processing.run("algorithm_id", {parameter_dictionary})
当你在数据处理工具箱某个算法前悬停时,算法 id 将会展现。*参数字*将会提供参数的名称与数值。参考详见`数据处理_控制台`以获取如何从Python控制台中运行数据处理算法。
28.2.1.4. Grid (Data metrics)
Computes some data metrics using the specified window and output grid geometry.
This algorithm is derived from the GDAL grid utility.
Default menu:
参数
Basic parameters
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
Point layer |
|
[vector: point] |
Input point vector layer |
Data metric to use |
|
[enumeration] Default: 0 |
One of:
|
The first radius of search ellipse |
|
[数字] Default: 0.0 |
The first radius (X axis if rotation angle is 0) of the search ellipse |
The second radius of search ellipse |
|
[数字] Default: 0.0 |
The second radius (Y axis if rotation angle is 0) of the search ellipse |
Angle of search ellipse rotation in degrees (counter clockwise) |
|
[数字] Default: 0.0 |
Angle of ellipse rotation in degrees. Ellipse rotated counter clockwise. |
Minimum number of data points to use |
|
[数字] Default: 0.0 |
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. |
NoData |
|
[数字] Default: 0.0 |
NoData marker to fill empty points |
Interpolated (data metrics) |
|
[栅格] 默认: |
Specify the output raster layer with interpolated values. One of:
|
Advanced parameters
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
Z value from field 可选 |
|
[tablefield: numeric] |
Field for the interpolation |
Additional creation options 可选 |
|
[string] Default: '' |
For adding one or more creation options that control the raster to be created (colors, block size, file compression...). For convenience, you can rely on predefined profiles (see GDAL driver options section). Batch Process and Model Designer: separate multiple options with a pipe
character ( |
Additional command-line parameters 可选 |
|
[string] Default: None |
Add extra GDAL command line options |
Output data type |
|
[enumeration] Default: 5 |
Defines the data type of the output raster file. Options:
Available options depend on the GDAL version built with QGIS (see menu) |
输出
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
Interpolated (data metrics) |
|
[栅格] |
Output raster with interpolated values |
Python代码
Algorithm ID: gdal:griddatametrics
import processing
processing.run("algorithm_id", {parameter_dictionary})
当你在数据处理工具箱某个算法前悬停时,算法 id 将会展现。*参数字*将会提供参数的名称与数值。参考详见`数据处理_控制台`以获取如何从Python控制台中运行数据处理算法。
28.2.1.5. Grid (IDW with nearest neighbor searching)
Computes the Inverse Distance to a Power gridding combined to the nearest neighbor method. Ideal when a maximum number of data points to use is required.
This algorithm is derived from the GDAL grid utility.
参数
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
Point layer |
|
[vector: point] |
Input point vector layer |
Weighting power |
|
[数字] Default: 2.0 |
Weighting power |
Smoothing |
|
[数字] Default: 0.0 |
Smoothing parameter |
The radius of the search circle |
|
[数字] 默认值:1.0 |
The radius of the search circle |
Maximum number of data points to use |
|
[数字] Default: 12 |
Do not search for more points than this number. |
Minimum number of data points to use |
|
[数字] Default: 0 |
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. |
NoData |
|
[数字] Default: 0.0 |
NoData marker to fill empty points |
Interpolated (IDW with NN search) |
|
[栅格] 默认: |
Specify the output raster layer with interpolated values. One of:
|
Advanced parameters
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
Z value from field 可选 |
|
[tablefield: numeric] |
Field for the interpolation |
Additional creation options 可选 |
|
[string] Default: '' |
For adding one or more creation options that control the raster to be created (colors, block size, file compression...). For convenience, you can rely on predefined profiles (see GDAL driver options section). Batch Process and Model Designer: separate multiple options with a pipe
character ( |
Additional command-line parameters 可选 |
|
[string] Default: None |
Add extra GDAL command line options |
Output data type |
|
[enumeration] Default: 5 |
Defines the data type of the output raster file. Options:
Available options depend on the GDAL version built with QGIS (see menu) |
输出
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
Interpolated (IDW with NN search) |
|
[栅格] |
Output raster with interpolated values |
Python代码
Algorithm ID: gdal:gridinversedistancenearestneighbor
import processing
processing.run("algorithm_id", {parameter_dictionary})
当你在数据处理工具箱某个算法前悬停时,算法 id 将会展现。*参数字*将会提供参数的名称与数值。参考详见`数据处理_控制台`以获取如何从Python控制台中运行数据处理算法。
28.2.1.6. Grid (Inverse distance to a power)
The Inverse Distance to a Power gridding method is a weighted average interpolator.
You should supply the input arrays with the scattered data values including coordinates of every data point and output grid geometry. The function will compute interpolated value for the given position in output grid.
This algorithm is derived from the GDAL grid utility.
Default menu:
参数
Basic parameters
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
Point layer |
|
[vector: point] |
Input point vector layer |
Weighting power |
|
[数字] Default: 2.0 |
Weighting power |
Smothing |
|
[数字] Default: 0.0 |
Smoothing parameter |
The first radius of search ellipse |
|
[数字] Default: 0.0 |
The first radius (X axis if rotation angle is 0) of the search ellipse |
The second radius of search ellipse |
|
[数字] Default: 0.0 |
The second radius (Y axis if rotation angle is 0) of the search ellipse |
Angle of search ellipse rotation in degrees (counter clockwise) |
|
[数字] Default: 0.0 |
Angle of ellipse rotation in degrees. Ellipse rotated counter clockwise. |
Maximum number of data points to use |
|
[数字] Default: 0 |
Do not search for more points than this number. |
Minimum number of data points to use |
|
[数字] Default: 0 |
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. |
NoData |
|
[数字] Default: 0.0 |
NoData marker to fill empty points |
Interpolated (IDW) |
|
[栅格] 默认: |
Specify the output raster layer with interpolated values. One of:
|
Advanced parameters
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
Z value from field 可选 |
|
[tablefield: numeric] |
Field for the interpolation |
Additional creation options 可选 |
|
[string] Default: '' |
For adding one or more creation options that control the raster to be created (colors, block size, file compression...). For convenience, you can rely on predefined profiles (see GDAL driver options section). Batch Process and Model Designer: separate multiple options with a pipe
character ( |
Additional command-line parameters 可选 |
|
[string] Default: None |
Add extra GDAL command line options |
Output data type |
|
[enumeration] Default: 5 |
Defines the data type of the output raster file. Options:
Available options depend on the GDAL version built with QGIS (see menu) |
输出
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
Interpolated (IDW) |
|
[栅格] |
Output raster with interpolated values |
Python代码
Algorithm ID: gdal:gridinversedistance
import processing
processing.run("algorithm_id", {parameter_dictionary})
当你在数据处理工具箱某个算法前悬停时,算法 id 将会展现。*参数字*将会提供参数的名称与数值。参考详见`数据处理_控制台`以获取如何从Python控制台中运行数据处理算法。
28.2.1.7. Grid (Linear)
The Linear method perform linear interpolation by computing a Delaunay triangulation of the point cloud, finding in which triangle of the triangulation the point is, and by doing linear interpolation from its barycentric coordinates within the triangle. If the point is not in any triangle, depending on the radius, the algorithm will use the value of the nearest point or the NoData value.
This algorithm is derived from the GDAL grid utility.
参数
Basic parameters
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
Point layer |
|
[vector: point] |
Input point vector layer |
Search distance |
|
[数字] Default: -1.0 |
In case the point to be interpolated does not fit into a
triangle of the Delaunay triangulation, use that maximum
distance to search a nearest neighbour, or use NoData
otherwise.
If set to |
NoData |
|
[数字] Default: 0.0 |
NoData marker to fill empty points |
Interpolated (Linear) |
|
[栅格] 默认: |
Specify the output raster layer with interpolated values. One of:
|
Advanced parameters
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
Z value from field 可选 |
|
[tablefield: numeric] |
Field for the interpolation |
Additional creation options 可选 |
|
[string] Default: '' |
For adding one or more creation options that control the raster to be created (colors, block size, file compression...). For convenience, you can rely on predefined profiles (see GDAL driver options section). Batch Process and Model Designer: separate multiple options with a pipe
character ( |
Additional command-line parameters 可选 |
|
[string] Default: None |
Add extra GDAL command line options |
Output data type |
|
[enumeration] Default: 5 |
Defines the data type of the output raster file. Options:
Available options depend on the GDAL version built with QGIS (see menu) |
输出
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
Interpolated (Linear) |
|
[栅格] |
Output raster with interpolated values |
Python代码
Algorithm ID: gdal:gridlinear
import processing
processing.run("algorithm_id", {parameter_dictionary})
当你在数据处理工具箱某个算法前悬停时,算法 id 将会展现。*参数字*将会提供参数的名称与数值。参考详见`数据处理_控制台`以获取如何从Python控制台中运行数据处理算法。
28.2.1.8. Grid (Moving average)
The Moving Average is a simple data averaging algorithm. It uses a moving window of elliptic form to search values and averages all data points within the window. Search ellipse can be rotated by specified angle, the center of ellipse located at the grid node. Also the minimum number of data points to average can be set, if there are not enough points in window, the grid node considered empty and will be filled with specified NoData value.
This algorithm is derived from the GDAL grid utility.
Default menu:
参数
Basic parameters
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
Point layer |
|
[vector: point] |
Input point vector layer |
The first radius of search ellipse |
|
[数字] Default: 0.0 |
The first radius (X axis if rotation angle is 0) of the search ellipse |
The second radius of search ellipse |
|
[数字] Default: 0.0 |
The second radius (Y axis if rotation angle is 0) of the search ellipse |
Angle of search ellipse rotation in degrees (counter clockwise) |
|
[数字] Default: 0.0 |
Angle of ellipse rotation in degrees. Ellipse rotated counter clockwise. |
Minimum number of data points to use |
|
[数字] Default: 0.0 |
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. |
NoData |
|
[数字] Default: 0.0 |
NoData marker to fill empty points |
Interpolated (moving average) |
|
[栅格] 默认: |
Specify the output raster layer. One of:
|
Advanced parameters
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
Z value from field 可选 |
|
[tablefield: numeric] |
Field for the interpolation |
Additional creation options 可选 |
|
[string] Default: '' |
For adding one or more creation options that control the raster to be created (colors, block size, file compression...). For convenience, you can rely on predefined profiles (see GDAL driver options section). Batch Process and Model Designer: separate multiple options with a pipe
character ( |
Additional command-line parameters 可选 |
|
[string] Default: None |
Add extra GDAL command line options |
Output data type |
|
[enumeration] Default: 5 |
Defines the data type of the output raster file. Options:
Available options depend on the GDAL version built with QGIS (see menu) |
输出
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
Interpolated (moving average) |
|
[栅格] |
Output raster with interpolated values |
Python代码
Algorithm ID: gdal:gridaverage
import processing
processing.run("algorithm_id", {parameter_dictionary})
当你在数据处理工具箱某个算法前悬停时,算法 id 将会展现。*参数字*将会提供参数的名称与数值。参考详见`数据处理_控制台`以获取如何从Python控制台中运行数据处理算法。
28.2.1.9. Grid (Nearest neighbor)
The Nearest Neighbor method doesn't perform any interpolation or smoothing, it just takes the value of nearest point found in grid node search ellipse and returns it as a result. If there are no points found, the specified NoData value will be returned.
This algorithm is derived from the GDAL grid utility.
Default menu:
参数
Basic parameters
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
Point layer |
|
[vector: point] |
Input point vector layer |
The first radius of search ellipse |
|
[数字] Default: 0.0 |
The first radius (X axis if rotation angle is 0) of the search ellipse |
The second radius of search ellipse |
|
[数字] Default: 0.0 |
The second radius (Y axis if rotation angle is 0) of the search ellipse |
Angle of search ellipse rotation in degrees (counter clockwise) |
|
[数字] Default: 0.0 |
Angle of ellipse rotation in degrees. Ellipse rotated counter clockwise. |
NoData |
|
[数字] Default: 0.0 |
NoData marker to fill empty points |
Interpolated (Nearest neighbour) |
|
[栅格] 默认: |
Specify the output raster layer with interpolated values. One of:
|
Advanced parameters
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
Z value from field 可选 |
|
[tablefield: numeric] |
Field for the interpolation |
Additional creation options 可选 |
|
[string] Default: '' |
For adding one or more creation options that control the raster to be created (colors, block size, file compression...). For convenience, you can rely on predefined profiles (see GDAL driver options section). Batch Process and Model Designer: separate multiple options with a pipe
character ( |
Additional command-line parameters 可选 |
|
[string] Default: None |
Add extra GDAL command line options |
Output data type |
|
[enumeration] Default: 5 |
Defines the data type of the output raster file. Options:
Available options depend on the GDAL version built with QGIS (see menu) |
输出
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
Interpolated (Nearest neighbour) |
|
[栅格] |
Output raster with interpolated values |
Python代码
Algorithm ID: gdal:gridnearestneighbor
import processing
processing.run("algorithm_id", {parameter_dictionary})
当你在数据处理工具箱某个算法前悬停时,算法 id 将会展现。*参数字*将会提供参数的名称与数值。参考详见`数据处理_控制台`以获取如何从Python控制台中运行数据处理算法。
28.2.1.10. 山体阴影
Outputs a raster with a nice shaded relief effect. It’s very useful for visualizing the terrain. You can optionally specify the azimuth and altitude of the light source, a vertical exaggeration factor and a scaling factor to account for differences between vertical and horizontal units.
This algorithm is derived from the GDAL DEM utility .
Default menu:
参数
Basic parameters
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
输入图层 |
|
[栅格] |
Input Elevation raster layer |
Band number |
|
[raster band] Default: 1 |
Band containing the elevation information |
Z factor (vertical exaggeration) |
|
[数字] 默认值:1.0 |
The factor exaggerates the height of the output elevation raster |
Scale (ratio of vert. units to horiz.) |
|
[数字] 默认值:1.0 |
The ratio of vertical units to horizontal units |
Azimuth of the light |
|
[数字] Default: 315.0 |
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. |
Altitude of the light |
|
[数字] Default: 45.0 |
Defines the altitude of the light, in degrees. 90 if the light comes from above the elevation raster, 0 if it is raking light. |
Compute edges |
|
[boolean] Default: False |
Generates edges from the elevation raster |
Use Zevenbergen&Thorne formula (instead of the Horn's one) |
|
[boolean] Default: False |
Activates Zevenbergen&Thorne formula for smooth landscapes |
Combined shading |
|
[boolean] Default: False |
|
Multidirectional shading |
|
[boolean] Default: False |
|
山体阴影 |
|
[栅格] 默认: |
Specify the output raster layer with interpolated values. One of:
|
Advanced parameters
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
Additional creation options 可选 |
|
[string] Default: '' |
For adding one or more creation options that control the raster to be created (colors, block size, file compression...). For convenience, you can rely on predefined profiles (see GDAL driver options section). Batch Process and Model Designer: separate multiple options with a pipe
character ( |
Additional command-line parameters 可选 |
|
[string] Default: None |
Add extra GDAL command line options |
输出
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
山体阴影 |
|
[栅格] |
Output raster with interpolated values |
Python代码
Algorithm ID: gdal:hillshade
import processing
processing.run("algorithm_id", {parameter_dictionary})
当你在数据处理工具箱某个算法前悬停时,算法 id 将会展现。*参数字*将会提供参数的名称与数值。参考详见`数据处理_控制台`以获取如何从Python控制台中运行数据处理算法。
28.2.1.11. Near black
Converts nearly black/white borders to black.
This algorithm will scan an image and try to set all pixels that are nearly or exactly black, white or one or more custom colors around the collar to black or white. This is often used to "fix up" lossy compressed airphotos so that color pixels can be treated as transparent when mosaicking.
This algorithm is derived from the GDAL nearblack utility.
Default menu:
参数
Basic parameters
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
输入图层 |
|
[栅格] |
Input Elevation raster layer |
How far from black (white) |
|
[数字] Default: 15 |
Select how far from black, white or custom colors the pixel values can be and still considered near black, white or custom color. |
Search for nearly white pixels instead of nearly black |
|
[boolean] Default: False |
Search for nearly white (255) pixels instead of nearly black pixels |
Nearblack |
|
[栅格] 默认: |
Specify the output raster layer. One of:
|
Advanced parameters
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
Additional creation options 可选 |
|
[string] Default: '' |
For adding one or more creation options that control the raster to be created (colors, block size, file compression...). For convenience, you can rely on predefined profiles (see GDAL driver options section). Batch Process and Model Designer: separate multiple options with a pipe
character ( |
Additional command-line parameters 可选 |
|
[string] Default: None |
Add extra GDAL command line options |
输出
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
Nearblack |
|
[栅格] |
Output raster |
Python代码
Algorithm ID: gdal:nearblack
import processing
processing.run("algorithm_id", {parameter_dictionary})
当你在数据处理工具箱某个算法前悬停时,算法 id 将会展现。*参数字*将会提供参数的名称与数值。参考详见`数据处理_控制台`以获取如何从Python控制台中运行数据处理算法。
28.2.1.12. Proximity (raster distance)
Generates a raster proximity map indicating the distance from the center of each pixel to the center of the nearest pixel identified as a target pixel. Target pixels are those in the source raster for which the raster pixel value is in the set of target pixel values.
This algorithm is derived from the GDAL proximity utility.
Default menu:
参数
Basic parameters
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
输入图层 |
|
[栅格] |
Input Elevation raster layer |
Band number |
|
[raster band] Default: 1 |
Band containing the elevation information |
A list of pixel values in the source image to be considered target pixels 可选 |
|
[string] Default: '' |
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. |
Distance units |
|
[enumeration] Default: 1 |
Indicate whether distances generated should be in pixel or georeferenced coordinates. One of:
|
The maximum distance to be generated 可选 |
|
[数字] Default: 0.0 |
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 according to the value of Distance units. |
Value to be applied to all pixels that are within the maxdist of target pixels 可选 |
|
[数字] Default: 0.0 |
Specify a value to be applied to all pixels that are closer than the maximum distance from target pixels (including the target pixels) instead of a distance value. |
NoData value to use for the destination proximity raster 可选 |
|
[数字] Default: 0.0 |
Specify the NoData value to use for the output raster |
Proximity map |
|
[栅格] 默认: |
Specify the output raster layer. One of:
|
Advanced parameters
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
Additional creation options 可选 |
|
[string] Default: '' |
For adding one or more creation options that control the raster to be created (colors, block size, file compression...). For convenience, you can rely on predefined profiles (see GDAL driver options section). Batch Process and Model Designer: separate multiple options with a pipe
character ( |
Additional command-line parameters 可选 |
|
[string] Default: None |
Add extra GDAL command line options |
Output data type |
|
[enumeration] Default: 5 |
Defines the data type of the output raster file. Options:
Available options depend on the GDAL version built with QGIS (see menu) |
输出
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
Proximity map |
|
[栅格] |
Output raster |
Python代码
Algorithm ID: gdal:proximity
import processing
processing.run("algorithm_id", {parameter_dictionary})
当你在数据处理工具箱某个算法前悬停时,算法 id 将会展现。*参数字*将会提供参数的名称与数值。参考详见`数据处理_控制台`以获取如何从Python控制台中运行数据处理算法。
28.2.1.13. Roughness
Outputs a single-band raster with values computed from the elevation. Roughness is the degree of irregularity of the surface. It's calculated by the largest inter-cell difference of a central pixel and its surrounding cell. The determination of the roughness plays a role in the analysis of terrain elevation data, it's useful for calculations of the river morphology, in climatology and physical geography in general.
This algorithm is derived from the GDAL DEM utility.
Default menu:
参数
Basic parameters
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
输入图层 |
|
[栅格] |
Input elevation raster layer |
Band number |
|
[raster band] Default: 1 |
The number of the band to use as elevation |
Compute edges |
|
[boolean] Default: False |
Generates edges from the elevation raster |
Roughness |
|
[栅格] 默认: |
Specify the output raster layer. One of:
|
Advanced parameters
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
Additional creation options 可选 |
|
[string] Default: '' |
For adding one or more creation options that control the raster to be created (colors, block size, file compression...). For convenience, you can rely on predefined profiles (see GDAL driver options section). Batch Process and Model Designer: separate multiple options with a pipe
character ( |
输出
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
Roughness |
|
[栅格] |
Single-band output roughness raster. The value -9999 is used as NoData value. |
Python代码
Algorithm ID: gdal:roughness
import processing
processing.run("algorithm_id", {parameter_dictionary})
当你在数据处理工具箱某个算法前悬停时,算法 id 将会展现。*参数字*将会提供参数的名称与数值。参考详见`数据处理_控制台`以获取如何从Python控制台中运行数据处理算法。
28.2.1.14. Sieve
Removes raster polygons smaller than a provided threshold size (in pixels) and replaces them with the pixel value of the largest neighbour polygon. It is useful if you have a large amount of small areas on your raster map.
This algorithm is derived from the GDAL sieve utility.
Default menu:
参数
Basic parameters
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
输入图层 |
|
[栅格] |
Input elevation raster layer |
Threshold |
|
[数字] Default: 10 |
Only raster polygons smaller than this size will be removed |
Use 8-connectedness |
|
[boolean] Default: False |
Use eight connectedness instead of four connectedness |
Do not use the default validity mask for the input band |
|
[boolean] Default: False |
|
Validity mask 可选 |
|
[栅格] |
Validity mask to use instead of the default |
Sieved |
|
[栅格] 默认: |
Specify the output raster layer. One of:
|
Advanced parameters
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
Additional command-line parameters 可选 |
|
[string] Default: None |
Add extra GDAL command line options |
输出
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
Sieved |
|
[栅格] |
Output raster layer. |
Python代码
Algorithm ID: gdal:sieve
import processing
processing.run("algorithm_id", {parameter_dictionary})
当你在数据处理工具箱某个算法前悬停时,算法 id 将会展现。*参数字*将会提供参数的名称与数值。参考详见`数据处理_控制台`以获取如何从Python控制台中运行数据处理算法。
28.2.1.15. 坡度
Generates 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.
This algorithm is derived from the GDAL DEM utility.
Default menu:
参数
Basic parameters
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
输入图层 |
|
[栅格] |
Input Elevation raster layer |
Band number |
|
[raster band] Default: 1 |
Band containing the elevation information |
Ratio of vertical units to horizontal |
|
[数字] 默认值:1.0 |
The ratio of vertical units to horizontal units |
Slope expressed as percent (instead of degrees) |
|
[boolean] Default: False |
Express slope as percent instead of degrees |
Compute edges |
|
[boolean] Default: False |
Generates edges from the elevation raster |
Use Zevenbergen&Thorne formula (instead of the Horn's one) |
|
[boolean] Default: False |
Activates Zevenbergen&Thorne formula for smooth landscapes |
Slope |
|
[栅格] 默认: |
Specify the output raster layer. One of:
|
Advanced parameters
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
Additional creation options 可选 |
|
[string] Default: '' |
For adding one or more creation options that control the raster to be created (colors, block size, file compression...). For convenience, you can rely on predefined profiles (see GDAL driver options section). Batch Process and Model Designer: separate multiple options with a pipe
character ( |
Additional command-line parameters 可选 |
|
[string] Default: None |
Add extra GDAL command line options |
输出
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
Slope |
|
[栅格] |
Output raster |
Python代码
Algorithm ID: gdal:slope
import processing
processing.run("algorithm_id", {parameter_dictionary})
当你在数据处理工具箱某个算法前悬停时,算法 id 将会展现。*参数字*将会提供参数的名称与数值。参考详见`数据处理_控制台`以获取如何从Python控制台中运行数据处理算法。
28.2.1.16. Terrain Ruggedness Index (TRI)
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.
This algorithm is derived from the GDAL DEM utility.
Default menu:
参数
Basic parameters
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
输入图层 |
|
[栅格] |
Input elevation raster layer |
Band number |
|
[raster band] Default: 1 |
The number of the band to use as elevation |
Compute edges |
|
[boolean] Default: False |
Generates edges from the elevation raster |
Terrain Ruggedness Index |
|
[栅格] 默认: |
Specify the output raster layer. One of:
|
Advanced parameters
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
Additional creation options 可选 |
|
[string] Default: '' |
For adding one or more creation options that control the raster to be created (colors, block size, file compression...). For convenience, you can rely on predefined profiles (see GDAL driver options section). Batch Process and Model Designer: separate multiple options with a pipe
character ( |
输出
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
Terrain Ruggedness Index |
|
[栅格] |
Output ruggedness raster. The value -9999 is used as NoData value. |
Python代码
Algorithm ID: gdal:triterrainruggednessindex
import processing
processing.run("algorithm_id", {parameter_dictionary})
当你在数据处理工具箱某个算法前悬停时,算法 id 将会展现。*参数字*将会提供参数的名称与数值。参考详见`数据处理_控制台`以获取如何从Python控制台中运行数据处理算法。
28.2.1.17. Topographic Position Index (TPI)
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.
This algorithm is derived from the GDAL DEM utility.
Default menu:
参数
Basic parameters
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
输入图层 |
|
[栅格] |
Input elevation raster layer |
Band number |
|
[raster band] Default: 1 |
The number of the band to use for elevation values |
Compute edges |
|
[boolean] Default: False |
Generates edges from the elevation raster |
Terrain Ruggedness Index |
|
[栅格] 默认: |
Specify the output raster layer. One of:
|
Advanced parameters
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
Additional creation options 可选 |
|
[string] Default: '' |
For adding one or more creation options that control the raster to be created (colors, block size, file compression...). For convenience, you can rely on predefined profiles (see GDAL driver options section). Batch Process and Model Designer: separate multiple options with a pipe
character ( |
输出
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
Terrain Ruggedness Index |
|
[栅格] |
Output raster. |
Python代码
Algorithm ID: gdal:tpitopographicpositionindex
import processing
processing.run("algorithm_id", {parameter_dictionary})
当你在数据处理工具箱某个算法前悬停时,算法 id 将会展现。*参数字*将会提供参数的名称与数值。参考详见`数据处理_控制台`以获取如何从Python控制台中运行数据处理算法。