Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #2865 from medspx/processing_raster_bunch
[Processing] Add the last GRASS7 r.* algorithms
  • Loading branch information
volaya committed Mar 23, 2016
2 parents bec849c + eb186c4 commit 2e6fcf5
Show file tree
Hide file tree
Showing 134 changed files with 3,646 additions and 19 deletions.
@@ -0,0 +1,9 @@
r.blend
r.blend.combine - Blends color components of two raster maps by a given ratio and export into a unique raster.
Raster (r.*)
ParameterRaster|first|Name of first raster map for blending|False
ParameterRaster|second|Name of second raster map for blending|False
ParameterNumber|percent|Percentage weight of first map for color blending|0.0|100.0|50.0|True
Hardcoded|-c
OutputRaster|output|Blended

10 changes: 10 additions & 0 deletions python/plugins/processing/algs/grass7/description/r.blend.rgb.txt
@@ -0,0 +1,10 @@
r.blend
r.blend.rgb - Blends color components of two raster maps by a given ratio and exports into three rasters.
Raster (r.*)
ParameterRaster|first|Name of first raster map for blending|False
ParameterRaster|second|Name of second raster map for blending|False
ParameterNumber|percent|Percentage weight of first map for color blending|0.0|100.0|50.0|True
OutputRaster|output_red|Blended Red
OutputRaster|output_green|Blended Green
OutputRaster|output_blue|Blended Blue

@@ -0,0 +1,8 @@
r.buffer.lowmem
Creates a raster map layer showing buffer zones surrounding cells that contain non-NULL category values (low-memory alternative).
Raster (r.*)
ParameterRaster|input|Input raster layer|False
ParameterString|distances|Distance zone(s) (e.g. 100,200,300)|None|False|False
ParameterSelection|units|Units of distance|meters;kilometers;feet;miles;nautmiles|False
ParameterBoolean|-z|Ignore zero (0) data cells instead of NULL cells|False
OutputRaster|output|Buffer
Expand Up @@ -2,7 +2,7 @@ r.buffer
Creates a raster map layer showing buffer zones surrounding cells that contain non-NULL category values.
Raster (r.*)
ParameterRaster|input|Input raster layer|False
ParameterString|distances|Distance zone(s) (e.g. 100,200,300)|
ParameterSelection|units|Units of distance|meters;kilometers;feet;miles;nautmiles
ParameterString|distances|Distance zone(s) (e.g. 100,200,300)|None|False|False
ParameterSelection|units|Units of distance|meters;kilometers;feet;miles;nautmiles|False
ParameterBoolean|-z|Ignore zero (0) data cells instead of NULL cells|False
OutputRaster|output|Buffer
@@ -0,0 +1,8 @@
r.category
r.category.out - Exports category values and labels associated with user-specified raster map layers.
Raster (r.*)
ParameterRaster|map|Name of raster map|False
ParameterString|cats|Category values (for Integer rasters). Example: 1,3,7-9,13|None|False|True
ParameterString|values|Comma separated value list (for float rasters). Example: 1.4,3.8,13|None|False|True
ParameterString|separator|Field separator (Special characters: pipe, comma, space, tab, newline)|tab|False|True
OutputFile|output|Category
11 changes: 11 additions & 0 deletions python/plugins/processing/algs/grass7/description/r.category.txt
@@ -0,0 +1,11 @@
r.category
Manages category values and labels associated with user-specified raster map layers.
Raster (r.*)
ParameterRaster|map|Name of raster map|False
ParameterString|separator|Field separator (Special characters: pipe, comma, space, tab, newline)|tab|False|True
ParameterFile|rules|File containing category label rules|False|True
ParameterString|txtrules|Inline category label rules|None|True|True
ParameterRaster|raster|Raster map from which to copy category table|True
*ParameterString|format|Default label or format string for dynamic labeling. Used when no explicit label exists for the category|None|False|True
*ParameterString|coefficients|Dynamic label coefficients. Two pairs of category multiplier and offsets, for $1 and $2|None|False|True
OutputRaster|output|Category
@@ -0,0 +1,6 @@
r.colors.out
Exports the color table associated with a raster map.
Raster (r.*)
ParameterRaster|map|Name of raster map|False
*ParameterBoolean|-p|Output values as percentages|False|True
OutputFile|rules|Color Table
@@ -0,0 +1,7 @@
r.colors.stddev
Sets color rules based on stddev from a raster map's mean value.
Raster (r.*)
ParameterRaster|map|Name of raster map|False
*ParameterBoolean|-b|Color using standard deviation bands|False
*ParameterBoolean|-z|Force center at zero|False
OutputRaster|output|Stddev Colors
16 changes: 16 additions & 0 deletions python/plugins/processing/algs/grass7/description/r.colors.txt
@@ -0,0 +1,16 @@
r.colors
Creates/modifies the color table associated with a raster map.
Raster (r.*)
ParameterMultipleInput|map|Name of raster maps(s)|3|False
ParameterSelection|color|Name of color table|not selected;aspect;aspectcolr;bcyr;bgyr;blues;byg;byr;celsius;corine;curvature;differences;elevation;etopo2;evi;fahrenheit;gdd;greens;grey;grey.eq;grey.log;grey1.0;grey255;gyr;haxby;kelvin;ndvi;ndwi;oranges;population;population_dens;precipitation;precipitation_daily;precipitation_monthly;rainbow;ramp;random;reds;rstcurv;ryb;ryg;sepia;slope;srtm;srtm_plus;terrain;wave|0|False|True
ParameterString|rules_txt|Color rules|None|True|True
ParameterFile|rules|Color rules file|False|True
ParameterRaster|raster|Raster map from which to copy color table|True
ParameterBoolean|-r|Remove existing color table|False
ParameterBoolean|-w|Only write new color table if it does not already exist|False
ParameterBoolean|-n|Invert colors|False
ParameterBoolean|-g|Logarithmic scaling|False
ParameterBoolean|-a|Logarithmic-absolute scaling|False
ParameterBoolean|-e|Histogram equalization|False
OutputDirectory|output_dir|Output Directory

10 changes: 10 additions & 0 deletions python/plugins/processing/algs/grass7/description/r.distance.txt
@@ -0,0 +1,10 @@
r.distance
Locates the closest points between objects in two raster maps.
Raster (r.*)
ParameterMultipleInput|map|Name of two input raster for computing inter-class distances|3|False
ParameterString|separator|Field separator (Special characters: pipe, comma, space, tab, newline)|:|False|True
ParameterSelection|sort|Sort output by distance|asc;desc
*ParameterBoolean|-l|Include category labels in the output|False|True
*ParameterBoolean|-o|Report zero distance if rasters are overlapping|False|True
*ParameterBoolean|-n|Report null objects as *|False|True
OutputFile|output|Distance
7 changes: 5 additions & 2 deletions python/plugins/processing/algs/grass7/description/r.drain.txt
Expand Up @@ -2,9 +2,12 @@ r.drain
Traces a flow through an elevation model on a raster map.
Raster (r.*)
ParameterRaster|input|Elevation|False
ParameterString|start_coordinates|Map coordinates of starting point(s) (E,N)|(0,0)
ParameterMultipleInput|start_points|Vector layer(s) containing starting point(s)|0|True
ParameterRaster|direction|Name of input movement direction map associated with the cost surface|True
ParameterString|start_coordinates|Map coordinates of starting point(s) (E,N)|0.0,0.0|False|True
ParameterVector|start_points|Vector layer containing starting point(s)|0|True
ParameterBoolean|-c|Copy input cell values on output|False
ParameterBoolean|-a|Accumulate input values along the path|False
ParameterBoolean|-n|Count cell numbers along the path|False
ParameterBoolean|-d|The input raster map is a cost surface (direction surface must also be specified)|False
OutputRaster|output|Least cost path
OutputVector|drain|Drain
@@ -0,0 +1,6 @@
r.latlong
Creates a latitude/longitude raster map.
Raster (r.*)
ParameterRaster|input|Name of input raster map|False
ParameterBoolean|-l|Outputs a Longitude map instead of a Latitude map|False|True
OutputRaster|output|LatLong
@@ -0,0 +1,8 @@
r.li.cwed
r.li.cwed.ascii - Calculates contrast weighted edge density index on a raster map
Raster (r.*)
ParameterRaster|input|Name of input raster map|False
ParameterString|config_txt|Landscape structure configuration|None|True|True
ParameterFile|config|Landscape structure configuration file|False|True
ParameterFile|path|Name of file that contains the weight to calculate the index|False
OutputFile|output|CWED
@@ -0,0 +1,8 @@
r.li.cwed
Calculates contrast weighted edge density index on a raster map
Raster (r.*)
ParameterRaster|input|Name of input raster map|False
ParameterString|config_txt|Landscape structure configuration|None|True|True
ParameterFile|config|Landscape structure configuration file|False|True
ParameterFile|path|Name of file that contains the weight to calculate the index|False
OutputRaster|output|CWED
@@ -0,0 +1,7 @@
r.li.dominance
r.li.dominance.ascii - Calculates dominance's diversity index on a raster map
Raster (r.*)
ParameterRaster|input|Name of input raster map|False
ParameterString|config_txt|Landscape structure configuration|None|True|True
ParameterFile|config|Landscape structure configuration file|False|True
OutputFile|output|Dominance
@@ -0,0 +1,7 @@
r.li.dominance
Calculates dominance's diversity index on a raster map
Raster (r.*)
ParameterRaster|input|Name of input raster map|False
ParameterString|config_txt|Landscape structure configuration|None|True|True
ParameterFile|config|Landscape structure configuration file|False|True
OutputRaster|output|Dominance
@@ -0,0 +1,9 @@
r.li.edgedensity
r.li.edgedensity.ascii - Calculates edge density index on a raster map, using a 4 neighbour algorithm
Raster (r.*)
ParameterRaster|input|Name of input raster map|False
ParameterString|config_txt|Landscape structure configuration|None|True|True
ParameterFile|config|Landscape structure configuration file|False|True
ParameterString|patch_type|The value of the patch type|None|False|True
ParameterBoolean|-b|Exclude border edges|False
OutputFile|output|Edge Density
@@ -0,0 +1,9 @@
r.li.edgedensity
Calculates edge density index on a raster map, using a 4 neighbour algorithm
Raster (r.*)
ParameterRaster|input|Name of input raster map|False
ParameterString|config_txt|Landscape structure configuration|None|True|True
ParameterFile|config|Landscape structure configuration file|False|True
ParameterString|patch_type|The value of the patch type|None|False|True
ParameterBoolean|-b|Exclude border edges|False
OutputRaster|output|Edge Density
@@ -0,0 +1,7 @@
r.li.mpa
r.li.mpa.ascii - Calculates mean pixel attribute index on a raster map
Raster (r.*)
ParameterRaster|input|Name of input raster map|False
ParameterString|config_txt|Landscape structure configuration|None|True|True
ParameterFile|config|Landscape structure configuration file|False|True
OutputFile|output|Mean Pixel Attribute
@@ -0,0 +1,7 @@
r.li.mpa
Calculates mean pixel attribute index on a raster map
Raster (r.*)
ParameterRaster|input|Name of input raster map|False
ParameterString|config_txt|Landscape structure configuration|None|True|True
ParameterFile|config|Landscape structure configuration file|False|True
OutputRaster|output|Mean Pixel Attribute
@@ -0,0 +1,7 @@
r.li.mps
r.li.mps.ascii - Calculates mean patch size index on a raster map, using a 4 neighbour algorithm
Raster (r.*)
ParameterRaster|input|Name of input raster map|False
ParameterString|config_txt|Landscape structure configuration|None|True|True
ParameterFile|config|Landscape structure configuration file|False|True
OutputFile|output|Mean Patch Size
@@ -0,0 +1,7 @@
r.li.mps
Calculates mean patch size index on a raster map, using a 4 neighbour algorithm
Raster (r.*)
ParameterRaster|input|Name of input raster map|False
ParameterString|config_txt|Landscape structure configuration|None|True|True
ParameterFile|config|Landscape structure configuration file|False|True
OutputRaster|output|Mean Patch Size
@@ -0,0 +1,7 @@
r.li.padcv
r.li.padcv.ascii - Calculates coefficient of variation of patch area on a raster map
Raster (r.*)
ParameterRaster|input|Name of input raster map|False
ParameterString|config_txt|Landscape structure configuration|None|True|True
ParameterFile|config|Landscape structure configuration file|False|True
OutputFile|output|PADCV
@@ -0,0 +1,7 @@
r.li.padcv
Calculates coefficient of variation of patch area on a raster map
Raster (r.*)
ParameterRaster|input|Name of input raster map|False
ParameterString|config_txt|Landscape structure configuration|None|True|True
ParameterFile|config|Landscape structure configuration file|False|True
OutputRaster|output|PADCV
@@ -0,0 +1,7 @@
r.li.padrange
r.li.padrange.ascii - Calculates range of patch area size on a raster map
Raster (r.*)
ParameterRaster|input|Name of input raster map|False
ParameterString|config_txt|Landscape structure configuration|None|True|True
ParameterFile|config|Landscape structure configuration file|False|True
OutputFile|output|Pad Range
@@ -0,0 +1,7 @@
r.li.padrange
Calculates range of patch area size on a raster map
Raster (r.*)
ParameterRaster|input|Name of input raster map|False
ParameterString|config_txt|Landscape structure configuration|None|True|True
ParameterFile|config|Landscape structure configuration file|False|True
OutputRaster|output|Pad Range
@@ -0,0 +1,7 @@
r.li.padsd
r.li.padsd.ascii - Calculates standard deviation of patch area a raster map
Raster (r.*)
ParameterRaster|input|Name of input raster map|False
ParameterString|config_txt|Landscape structure configuration|None|True|True
ParameterFile|config|Landscape structure configuration file|False|True
OutputFile|output|Patch Area SD
@@ -0,0 +1,7 @@
r.li.padsd
Calculates standard deviation of patch area a raster map
Raster (r.*)
ParameterRaster|input|Name of input raster map|False
ParameterString|config_txt|Landscape structure configuration|None|True|True
ParameterFile|config|Landscape structure configuration file|False|True
OutputRaster|output|Patch Area SD
@@ -0,0 +1,7 @@
r.li.patchdensity
r.li.patchdensity.ascii - Calculates patch density index on a raster map, using a 4 neighbour algorithm
Raster (r.*)
ParameterRaster|input|Name of input raster map|False
ParameterString|config_txt|Landscape structure configuration|None|True|True
ParameterFile|config|Landscape structure configuration file|False|True
OutputFile|output|Patch Density
@@ -0,0 +1,7 @@
r.li.patchdensity
Calculates patch density index on a raster map, using a 4 neighbour algorithm
Raster (r.*)
ParameterRaster|input|Name of input raster map|False
ParameterString|config_txt|Landscape structure configuration|None|True|True
ParameterFile|config|Landscape structure configuration file|False|True
OutputRaster|output|Patch Density
@@ -0,0 +1,7 @@
r.li.patchnum
r.li.patchnum.ascii - Calculates patch number index on a raster map, using a 4 neighbour algorithm.
Raster (r.*)
ParameterRaster|input|Name of input raster map|False
ParameterString|config_txt|Landscape structure configuration|None|True|True
ParameterFile|config|Landscape structure configuration file|False|True
OutputFile|output|Patch Number
@@ -0,0 +1,7 @@
r.li.patchnum
Calculates patch number index on a raster map, using a 4 neighbour algorithm.
Raster (r.*)
ParameterRaster|input|Name of input raster map|False
ParameterString|config_txt|Landscape structure configuration|None|True|True
ParameterFile|config|Landscape structure configuration file|False|True
OutputRaster|output|Patch Number
@@ -0,0 +1,7 @@
r.li.pielou
r.li.pielou.ascii - Calculates Pielou's diversity index on a raster map
Raster (r.*)
ParameterRaster|input|Name of input raster map|False
ParameterString|config_txt|Landscape structure configuration|None|True|True
ParameterFile|config|Landscape structure configuration file|False|True
OutputFile|output|Pielou
@@ -0,0 +1,7 @@
r.li.pielou
Calculates Pielou's diversity index on a raster map
Raster (r.*)
ParameterRaster|input|Name of input raster map|False
ParameterString|config_txt|Landscape structure configuration|None|True|True
ParameterFile|config|Landscape structure configuration file|False|True
OutputRaster|output|Pielou
@@ -0,0 +1,8 @@
r.li.renyi
r.li.renyi.ascii - Calculates Renyi's diversity index on a raster map
Raster (r.*)
ParameterRaster|input|Name of input raster map|False
ParameterString|config_txt|Landscape structure configuration|None|True|True
ParameterFile|config|Landscape structure configuration file|False|True
ParameterString|alpha|Alpha value is the order of the generalized entropy|None|False|True
OutputFile|output|Renyi
@@ -0,0 +1,8 @@
r.li.renyi
Calculates Renyi's diversity index on a raster map
Raster (r.*)
ParameterRaster|input|Name of input raster map|False
ParameterString|config_txt|Landscape structure configuration|None|True|True
ParameterFile|config|Landscape structure configuration file|False|True
ParameterString|alpha|Alpha value is the order of the generalized entropy|None|False|True
OutputRaster|output|Renyi
@@ -0,0 +1,7 @@
r.li.richness
r.li.richness.ascii - Calculates richness index on a raster map
Raster (r.*)
ParameterRaster|input|Name of input raster map|False
ParameterString|config_txt|Landscape structure configuration|None|True|True
ParameterFile|config|Landscape structure configuration file|False|True
OutputFile|output|Richness
@@ -0,0 +1,7 @@
r.li.richness
Calculates richness index on a raster map
Raster (r.*)
ParameterRaster|input|Name of input raster map|False
ParameterString|config_txt|Landscape structure configuration|None|True|True
ParameterFile|config|Landscape structure configuration file|False|True
OutputRaster|output|Richness
@@ -0,0 +1,7 @@
r.li.shannon
r.li.shannon.ascii - Calculates Shannon's diversity index on a raster map
Raster (r.*)
ParameterRaster|input|Name of input raster map|False
ParameterString|config_txt|Landscape structure configuration|None|True|True
ParameterFile|config|Landscape structure configuration file|False|True
OutputFile|output|Shannon
@@ -0,0 +1,7 @@
r.li.shannon
Calculates Shannon's diversity index on a raster map
Raster (r.*)
ParameterRaster|input|Name of input raster map|False
ParameterString|config_txt|Landscape structure configuration|None|True|True
ParameterFile|config|Landscape structure configuration file|False|True
OutputRaster|output|Shannon
@@ -0,0 +1,7 @@
r.li.shape
r.li.shape.ascii - Calculates shape index on a raster map
Raster (r.*)
ParameterRaster|input|Name of input raster map|False
ParameterString|config_txt|Landscape structure configuration|None|True|True
ParameterFile|config|Landscape structure configuration file|False|True
OutputFile|output|Shape
@@ -0,0 +1,7 @@
r.li.shape
Calculates shape index on a raster map
Raster (r.*)
ParameterRaster|input|Name of input raster map|False
ParameterString|config_txt|Landscape structure configuration|None|True|True
ParameterFile|config|Landscape structure configuration file|False|True
OutputRaster|output|Shape
@@ -0,0 +1,7 @@
r.li.simpson
r.li.simpson.ascii - Calculates Simpson's diversity index on a raster map
Raster (r.*)
ParameterRaster|input|Name of input raster map|False
ParameterString|config_txt|Landscape structure configuration|None|True|True
ParameterFile|config|Landscape structure configuration file|False|True
OutputFile|output|Simpson
@@ -0,0 +1,7 @@
r.li.simpson
Calculates Simpson's diversity index on a raster map
Raster (r.*)
ParameterRaster|input|Name of input raster map|False
ParameterString|config_txt|Landscape structure configuration|None|True|True
ParameterFile|config|Landscape structure configuration file|False|True
OutputRaster|output|Simpson
@@ -0,0 +1,9 @@
r.mapcalc
Raster map calculator.
Raster (r.*)
ParameterMultipleInput|maps|Raster maps used in the calculator|3|True
ParameterString|expression|Expression to evaluate. The raster names used in expression should be the same than in QGIS|None|True|True
ParameterFile|file|File containing expression(s) to evaluate (same rule for raster names than above)|True
ParameterString|seed|Integer seed for rand() function|None|False|True
*ParameterBoolean|-s|Generate random seed (result is non-deterministic)|False
OutputDirectory|output_dir|Results Directory

0 comments on commit 2e6fcf5

Please sign in to comment.