395 changes: 395 additions & 0 deletions python/plugins/processing/grass7/Grass7Utils.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,395 @@
# -*- coding: utf-8 -*-

"""
***************************************************************************
GrassUtils.py
---------------------
Date : April 2014
Copyright : (C) 2014 by Victor Olaya
Email : volayaf at gmail dot com
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************
"""

__author__ = 'Victor Olaya'
__date__ = 'April 2014'
__copyright__ = '(C) 2014, Victor Olaya'

# This will get replaced with a git SHA1 when you do a git archive

__revision__ = '$Format:%H$'

import stat
import shutil
import traceback
import subprocess
from qgis.core import QgsApplication
from PyQt4.QtCore import *
from processing.core.ProcessingConfig import ProcessingConfig
from processing.core.ProcessingLog import ProcessingLog
from processing.tools.system import *
from processing.tests.TestData import points


class Grass7Utils:

GRASS_REGION_XMIN = 'GRASS_REGION_XMIN'
GRASS_REGION_YMIN = 'GRASS_REGION_YMIN'
GRASS_REGION_XMAX = 'GRASS_REGION_XMAX'
GRASS_REGION_YMAX = 'GRASS_REGION_YMAX'
GRASS_REGION_CELLSIZE = 'GRASS_REGION_CELLSIZE'
GRASS_FOLDER = 'GRASS7_FOLDER'
GRASS_WIN_SHELL = 'GRASS7_WIN_SHELL'
GRASS_LOG_COMMANDS = 'GRASS_LOG_COMMANDS'
GRASS_LOG_CONSOLE = 'GRASS_LOG_CONSOLE'

sessionRunning = False
sessionLayers = {}
projectionSet = False

isGrass7Installed = False

@staticmethod
def grassBatchJobFilename():
'''This is used in Linux. This is the batch job that we assign to
GRASS_BATCH_JOB and then call GRASS and let it do the work
'''
filename = 'grass7_batch_job.sh'
batchfile = userFolder() + os.sep + filename
return batchfile

@staticmethod
def grassScriptFilename():
'''This is used in windows. We create a script that initializes
GRASS and then uses grass commands
'''
filename = 'grass7_script.bat'
filename = userFolder() + os.sep + filename
return filename

@staticmethod
def getGrassVersion():
# FIXME: I do not know if this should be removed or let the user enter it
# or something like that... This is just a temporary thing
return '7.0.0'

@staticmethod
def grassPath():
if not isWindows() and not isMac():
return ''

folder = ProcessingConfig.getSetting(Grass7Utils.GRASS_FOLDER)
if folder is None:
if isWindows():
testfolder = os.path.dirname(str(QgsApplication.prefixPath()))
testfolder = os.path.join(testfolder, 'grass7')
if os.path.isdir(testfolder):
for subfolder in os.listdir(testfolder):
if subfolder.startswith('grass7'):
folder = os.path.join(testfolder, subfolder)
break
else:
folder = os.path.join(str(QgsApplication.prefixPath()), 'grass7'
)
if not os.path.isdir(folder):
folder = '/Applications/GRASS-7.0.app/Contents/MacOS'

return folder

@staticmethod
def grassWinShell():
folder = ProcessingConfig.getSetting(Grass7Utils.GRASS_WIN_SHELL)
if folder is None:
folder = os.path.dirname(str(QgsApplication.prefixPath()))
folder = os.path.join(folder, 'msys')
return folder

@staticmethod
def grassDescriptionPath():
return os.path.join(os.path.dirname(__file__), 'description')

@staticmethod
def createGrass7Script(commands):
folder = Grass7Utils.grassPath()
shell = Grass7Utils.grassWinShell()

script = Grass7Utils.grassScriptFilename()
gisrc = userFolder() + os.sep + 'processing.gisrc7' #FIXME: use temporary file

# Temporary gisrc file
output = open(gisrc, 'w')
location = 'temp_location'
gisdbase = Grass7Utils.grassDataFolder()

output.write('GISDBASE: ' + gisdbase + '\n')
output.write('LOCATION_NAME: ' + location + '\n')
output.write('MAPSET: PERMANENT \n')
output.write('GRASS_GUI: text\n')
output.close()

output = open(script, 'w')
output.write('set HOME=' + os.path.expanduser('~') + '\n')
output.write('set GISRC=' + gisrc + '\n')
output.write('set GRASS_SH=' + shell + '\\bin\\sh.exe\n')
output.write('set PATH=' + shell + os.sep + 'bin;' + shell + os.sep
+ 'lib;' + '%PATH%\n')
output.write('set WINGISBASE=' + folder + '\n')
output.write('set GISBASE=' + folder + '\n')
output.write('set GRASS_PROJSHARE=' + folder + os.sep + 'share'
+ os.sep + 'proj' + '\n')
output.write('set GRASS_MESSAGE_FORMAT=gui\n')

# Replacement code for etc/Init.bat
output.write('if "%GRASS_ADDON_PATH%"=="" set PATH=%WINGISBASE%\\bin;%WINGISBASE%\\lib;%PATH%\n')
output.write('if not "%GRASS_ADDON_PATH%"=="" set PATH=%WINGISBASE%\\bin;%WINGISBASE%\\lib;%GRASS_ADDON_PATH%;%PATH%\n')
output.write('\n')
output.write('set GRASS_VERSION=' + Grass7Utils.getGrass7Version()
+ '\n')
output.write('if not "%LANG%"=="" goto langset\n')
output.write('FOR /F "usebackq delims==" %%i IN (`"%WINGISBASE%\\etc\\winlocale"`) DO @set LANG=%%i\n')
output.write(':langset\n')
output.write('\n')
output.write('set PATHEXT=%PATHEXT%;.PY\n')
output.write('set PYTHONPATH=%PYTHONPATH%;%WINGISBASE%\\etc\\python;%WINGISBASE%\\etc\\wxpython\\n')
output.write('\n')
output.write('g.gisenv.exe set="MAPSET=PERMANENT"\n')
output.write('g.gisenv.exe set="LOCATION=' + location + '"\n')
output.write('g.gisenv.exe set="LOCATION_NAME=' + location + '"\n')
output.write('g.gisenv.exe set="GISDBASE=' + gisdbase + '"\n')
output.write('g.gisenv.exe set="GRASS_GUI=text"\n')
for command in commands:
output.write(command + '\n')
output.write('\n')
output.write('exit\n')
output.close()

@staticmethod
def createGrass7BatchJobFileFromGrass7Commands(commands):
fout = open(Grass7Utils.grassBatchJobFilename(), 'w')
for command in commands:
fout.write(command + '\n')
fout.write('exit')
fout.close()

@staticmethod
def grassMapsetFolder():
folder = os.path.join(Grass7Utils.grassDataFolder(), 'temp_location')
mkdir(folder)
return folder

@staticmethod
def grassDataFolder():
tempfolder = os.path.join(tempFolder(), 'grassdata')
mkdir(tempfolder)
return tempfolder

@staticmethod
def createTempMapset():
'''Creates a temporary location and mapset(s) for GRASS data
processing. A minimal set of folders and files is created in the
system's default temporary directory. The settings files are
written with sane defaults, so GRASS can do its work. The mapset
projection will be set later, based on the projection of the first
input image or vector
'''

folder = Grass7Utils.grassMapsetFolder()
mkdir(os.path.join(folder, 'PERMANENT'))
mkdir(os.path.join(folder, 'PERMANENT', '.tmp'))
Grass7Utils.writeGrass7Window(os.path.join(folder, 'PERMANENT',
'DEFAULT_WIND'))
outfile = open(os.path.join(folder, 'PERMANENT', 'MYNAME'), 'w')
outfile.write(
'QGIS GRASS GIS 7 interface: temporary data processing location.\n')
outfile.close()

# FIXME: in GRASS 7 the SQLite driver is default (and more powerful)
Grass7Utils.writeGrass7Window(os.path.join(folder, 'PERMANENT', 'WIND'))
mkdir(os.path.join(folder, 'PERMANENT', 'dbf'))
outfile = open(os.path.join(folder, 'PERMANENT', 'VAR'), 'w')
outfile.write('DB_DRIVER: dbf\n')
outfile.write('DB_DATABASE: $GISDBASE/$LOCATION_NAME/$MAPSET/dbf/\n')
outfile.close()

@staticmethod
def writeGrass7Window(filename):
out = open(filename, 'w')
out.write('proj: 0\n')
out.write('zone: 0\n')
out.write('north: 1\n')
out.write('south: 0\n')
out.write('east: 1\n')
out.write('west: 0\n')
out.write('cols: 1\n')
out.write('rows: 1\n')
out.write('e-w resol: 1\n')
out.write('n-s resol: 1\n')
out.write('top: 1\n')
out.write('bottom: 0\n')
out.write('cols3: 1\n')
out.write('rows3: 1\n')
out.write('depths: 1\n')
out.write('e-w resol3: 1\n')
out.write('n-s resol3: 1\n')
out.write('t-b resol: 1\n')

out.close()

@staticmethod
def prepareGrass7Execution(commands):
if isWindows():
Grass7Utils.createGrass7Script(commands)
command = ['cmd.exe', '/C ', Grass7Utils.grassScriptFilename()]
else:
gisrc = userFolder() + os.sep + 'processing.gisrc7'
os.putenv('GISRC', gisrc)
os.putenv('GRASS_MESSAGE_FORMAT', 'gui')
os.putenv('GRASS_BATCH_JOB', Grass7Utils.grassBatchJobFilename())
Grass7Utils.createGrass7BatchJobFileFromGrass7Commands(commands)
os.chmod(Grass7Utils.grassBatchJobFilename(), stat.S_IEXEC
| stat.S_IREAD | stat.S_IWRITE)
if isMac():
command = Grass7Utils.grassPath() + os.sep + 'grass70.sh ' \
+ Grass7Utils.grassMapsetFolder() + '/PERMANENT'
else:
command = 'grass70 ' + Grass7Utils.grassMapsetFolder() \
+ '/PERMANENT'

return command

@staticmethod
def executeGrass7(commands, progress, outputCommands=None):
loglines = []
loglines.append('GRASS GIS 7 execution console output')
grassOutDone = False
command = Grass7Utils.prepareGrass7Execution(commands)
proc = subprocess.Popen(
command,
shell=True,
stdout=subprocess.PIPE,
stdin=subprocess.PIPE,
stderr=subprocess.STDOUT,
universal_newlines=True,
).stdout
for line in iter(proc.readline, ''):
if 'GRASS_INFO_PERCENT' in line:
try:
progress.setPercentage(int(line[len('GRASS_INFO_PERCENT')
+ 2:]))
except:
pass
else:
if 'r.out' in line or 'v.out' in line:
grassOutDone = True
loglines.append(line)
progress.setConsoleInfo(line)

# Some GRASS scripts, like r.mapcalculator or r.fillnulls, call
# other GRASS scripts during execution. This may override any
# commands that are still to be executed by the subprocess, which
# are usually the output ones. If that is the case runs the output
# commands again.

if not grassOutDone and outputCommands:
command = Grass7Utils.prepareGrass7Execution(outputCommands)
proc = subprocess.Popen(
command,
shell=True,
stdout=subprocess.PIPE,
stdin=subprocess.PIPE,
stderr=subprocess.STDOUT,
universal_newlines=True,
).stdout
for line in iter(proc.readline, ''):
if 'GRASS_INFO_PERCENT' in line:
try:
progress.setPercentage(int(
line[len('GRASS_INFO_PERCENT') + 2:]))
except:
pass
else:
loglines.append(line)
progress.setConsoleInfo(line)

if ProcessingConfig.getSetting(Grass7Utils.GRASS_LOG_CONSOLE):
ProcessingLog.addToLog(ProcessingLog.LOG_INFO, loglines)
return loglines

# GRASS session is used to hold the layers already exported or
# produced in GRASS between multiple calls to GRASS algorithms.
# This way they don't have to be loaded multiple times and
# following algorithms can use the results of the previous ones.
# Starting a session just involves creating the temp mapset
# structure
@staticmethod
def startGrass7Session():
if not Grass7Utils.sessionRunning:
Grass7Utils.createTempMapset()
Grass7Utils.sessionRunning = True

# End session by removing the temporary GRASS mapset and all
# the layers.
@staticmethod
def endGrass7Session():
shutil.rmtree(Grass7Utils.grassMapsetFolder(), True)
Grass7Utils.sessionRunning = False
Grass7Utils.sessionLayers = {}
Grass7Utils.projectionSet = False

@staticmethod
def getSessionLayers():
return Grass7Utils.sessionLayers

@staticmethod
def addSessionLayers(exportedLayers):
Grass7Utils.sessionLayers = dict(Grass7Utils.sessionLayers.items()
+ exportedLayers.items())

@staticmethod
def checkGrass7IsInstalled(ignorePreviousState=False):
if isWindows():
path = Grass7Utils.grassPath()
if path == '':
return 'GRASS GIS 7 folder is not configured.\nPlease configure \
it before running GRASS GIS 7 algorithms.'
cmdpath = os.path.join(path, 'bin', 'r.out.gdal.exe')
if not os.path.exists(cmdpath):
return 'The specified GRASS GIS 7 folder does not contain a valid \
set of GRASS GIS 7 modules.\n' \
+ 'Please, go to the Processing settings dialog, and \
check that the GRASS GIS 7\n' \
+ 'folder is correctly configured'

if not ignorePreviousState:
if Grass7Utils.isGrass7Installed:
return
try:
from processing import runalg
result = runalg(
'grass7:v.voronoi',
points(),
False,
False,
'270778.60198,270855.745301,4458921.97814,4458983.8488',
-1,
0.0001,
0,
None,
)
if not os.path.exists(result['output']):
return 'It seems that GRASS GIS 7 is not correctly installed and \
configured in your system.\nPlease install it before \
running GRASS GIS 7 algorithms.'
except:
s = traceback.format_exc()
return 'Error while checking GRASS GIS 7 installation. GRASS GIS 7 might not \
be correctly configured.\n' + s

Grass7Utils.isGrass7Installed = True

Empty file.
15 changes: 15 additions & 0 deletions python/plugins/processing/grass7/description/TODO.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
* TODO: Merged modules
r.average: merged into G7:r.statistics, G7:r.statistics2, G7:r.statistics3
r.bilinear merged into G7:r.resamp.interp
r.median: merged into G7:r.statistics, G7:r.statistics2, G7:r.statistics3
r.sum: merged into G7:r.statistics, G7:r.statistics2, G7:r.statistics3

* TODO: decide what to do with nviz:
nviz_cmd -> G7:m.nviz.image


* TODO: CHECK next how really implemented:

Global module changes
interpolation methods 'bilinear', 'bicubic' renamed to 'linear', 'cubic' <<---????

15 changes: 15 additions & 0 deletions python/plugins/processing/grass7/description/i.atcorr.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
i.atcorr
i.atcorr - Performs atmospheric correction using the 6S algorithm.
Imagery (i.*)
ParameterRaster|input|Name of input raster map|False
ParameterBoolean|-a|Input from ETM+ image taken after July 1, 2000|False
ParameterBoolean|-b|Input from ETM+ image taken before July 1, 2000|False
ParameterRaster|elevation|Input altitude raster map in m (optional)|True
ParameterRaster|visibility|Input visibility raster map in km (optional)|True
ParameterFile|parameters|Name of input text file|False
ParameterRange|range|Input imagery range [0,255]|0,255
ParameterBoolean|-o|Try to increase computation speed when altitude and/or visibility map is used|True
OutputRaster|output|Name for output raster map
ParameterBoolean|-f|Output raster is floating point|False
ParameterRange|rescale|Rescale output raster map [0,255]|0,255

7 changes: 7 additions & 0 deletions python/plugins/processing/grass7/description/i.fft.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
i.fft
i.fft - Fast Fourier Transform (FFT) for image processing.
Imagery (i.*)
ParameterRaster|input_image|Name of input raster map|False
OutputRaster|real_image|Name for output real part arrays stored as raster map
OutputRaster|imaginary_image|Name for output imaginary part arrays stored as raster map

10 changes: 10 additions & 0 deletions python/plugins/processing/grass7/description/i.his.rgb.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
i.his.rgb
i.his.rgb - Transforms raster maps from HIS (Hue-Intensity-Saturation) color space to RGB (Red-Green-Blue) color space.
Imagery (i.*)
ParameterRaster|hue_input|Name of input raster map (hue)|False
ParameterRaster|intensity_input|Name of input raster map (intensity)|False
ParameterRaster|saturation_input|Name of input raster map (saturation)|False
OutputRaster|red_output|Name for output raster map (red)
OutputRaster|green_output|Name for output raster map (green)
OutputRaster|blue_output|Name for output raster map (blue)

7 changes: 7 additions & 0 deletions python/plugins/processing/grass7/description/i.ifft.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
i.ifft
i.ifft - Inverse Fast Fourier Transform (IFFT) for image processing.
Imagery (i.*)
ParameterRaster|real_image|Name of input raster map (image fft, real part)|False
ParameterRaster|imaginary_image|Name of input raster map (image fft, imaginary part)|False
OutputRaster|output_image|Name for output raster map

9 changes: 9 additions & 0 deletions python/plugins/processing/grass7/description/i.rgb.his.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
i.rgb.his
i.rgb.his - Transforms raster maps from RGB (Red-Green-Blue) color space to HIS (Hue-Intensity-Saturation) color space.
Imagery (i.*)
ParameterRaster|red_output|Name for input raster map (red)|True
ParameterRaster|green_output|Name for input raster map (green)|True
ParameterRaster|blue_output|Name for input raster map (blue)|True
OutputRaster|hue_input|Name of output raster map (hue)|False
OutputRaster|intensity_input|Name of output raster map (intensity)|False
OutputRaster|saturation_input|Name of output raster map (saturation)|False
9 changes: 9 additions & 0 deletions python/plugins/processing/grass7/description/i.zc.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
i.zc
i.zc - Zero-crossing "edge detection" raster function for image processing.
Imagery (i.*)
ParameterRaster|input|Name of input raster map|False
ParameterNumber|width|x-y extent of the Gaussian filter|1|None|9
ParameterNumber|threshold|Sensitivity of Gaussian filter|0|None|10.0
ParameterNumber|orientations|Number of azimuth directions categorized|0|None|1
OutputRaster|output|Zero crossing raster map

10 changes: 10 additions & 0 deletions python/plugins/processing/grass7/description/m.cogo.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
m.cogo
m.cogo - A simple utility for converting bearing and distance measurements to coordinates and vice versa. It assumes a cartesian coordinate system
Miscellaneous (m.*)
ParameterFile|input|Name of input file|False
OutputFile|output|Output text file
ParameterString|coord|Starting coordinate pair (default 0.0, 0.0)|0.0,0.0
*ParameterBoolean|-l|Lines are labelled|False
*ParameterBoolean|-q|Suppress warnings|False
*ParameterBoolean|-r|Convert from coordinates to bearing and distance|False
*ParameterBoolean|-c|Repeat the starting coordinate at the end to close a loop|False
8 changes: 8 additions & 0 deletions python/plugins/processing/grass7/description/nviz.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
nviz
nviz - Visualization and animation tool for GRASS data.
Visualization(NVIZ)
ParameterMultipleInput|elevation|Name of elevation raster map|3|False
ParameterMultipleInput|color|Name of raster map(s) for Color|3|False
ParameterMultipleInput|vector|Name of vector lines/areas overlay map(s)|-1|False
ParameterMultipleInput|point|Name of vector points overlay file(s)|0|True
ParameterMultipleInput|volume|Name of existing 3d raster map|3|True
8 changes: 8 additions & 0 deletions python/plugins/processing/grass7/description/r.aspect.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
r.slope.aspect
r.aspect - Generates raster maps of aspect from a elevation raster map.
Raster (r.*)
ParameterRaster|elevation|Elevation|False
ParameterSelection|prec|Data type|float;double;int
ParameterNumber|zfactor|Multiplicative factor to convert elevation units to meters|None|None|1.0
ParameterNumber|min_slp_allowed|Minimum slope val. (in percent) for which aspect is computed|None|None|0.0
OutputRaster|aspect|Output aspect layer
7 changes: 7 additions & 0 deletions python/plugins/processing/grass7/description/r.average.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
r.average
r.average - Finds the average of values in a cover raster layer within areas assigned the same category value in a user-specified base layer.
Raster (r.*)
ParameterRaster|base|Base raster layer|False
ParameterRaster|cover|Cover raster layer|False
ParameterBoolean|-c|Cover values extracted from the category labels of the cover map|False
OutputRaster|output|Average values
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
r.basins.fill
r.basins.fill - Generates watershed subbasins raster map.
Raster (r.*)
ParameterRaster|cnetwork|Input coded stream network raster layer|False
ParameterRaster|tnetwork|Input thinned ridge network raster layer|False
ParameterNumber|number|Number of passes through the dataset|None|None|1
OutputRaster|output|Watersheds
7 changes: 7 additions & 0 deletions python/plugins/processing/grass7/description/r.bilinear.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
r.bilinear
r.bilinear - Bilinear interpolation utility for raster map layers.
Raster (r.*)
ParameterRaster|input|Input raster layer|False
ParameterNumber|north|Specific input value to be assigned to the north and/or south poles for longitude-latitude grids|None|None|0
ParameterNumber|east|Specific input value to be assigned to the north and/or south poles for longitude-latitude grids|None|None|0
OutputRaster|output|Output raster layer
7 changes: 7 additions & 0 deletions python/plugins/processing/grass7/description/r.bitpattern.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
r.bitpattern
r.bitpattern - Compares bit patterns with a raster map.
Raster (r.*)
ParameterRaster|input|Input raster layer|False
ParameterString|pattern|Bit pattern position(s)|
ParameterString|patval|Bit pattern value|
OutputRaster|output|Output raster layer
8 changes: 8 additions & 0 deletions python/plugins/processing/grass7/description/r.buffer.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
r.buffer
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
ParameterBoolean|-z|Ignore zero (0) data cells instead of NULL cells|False
OutputRaster|output|Buffer
10 changes: 10 additions & 0 deletions python/plugins/processing/grass7/description/r.carve.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
r.carve
r.carve - Takes vector stream data, transforms it to raster and subtracts depth from the output DEM.
Raster (r.*)
ParameterRaster|rast|Elevation|False
ParameterVector|vect|Vector layer containing stream(s)|1|False
ParameterNumber|width|Stream width (in meters). Default is raster cell width|None|None|1
ParameterNumber|depth|Additional stream depth (in meters)|None|None|1
ParameterBoolean|-n|No flat areas allowed in flow direction|False
OutputRaster|output|Modified elevation
OutputVector|points|Adjusted stream points
9 changes: 9 additions & 0 deletions python/plugins/processing/grass7/description/r.circle.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
r.circle
r.circle - Creates a raster map containing concentric rings around a given point.
Raster (r.*)
ParameterString|coordinate|The coordinate of the center (east,north)|0,0
ParameterNumber|min|Minimum radius for ring/circle map (in meters)|None|None|10
ParameterNumber|max|Maximum radius for ring/circle map (in meters)|None|None|20
ParameterString|mult|Data value multiplier|1
ParameterBoolean|-b|Generate binary raster map|False
OutputRaster|output|Name for output raster map
6 changes: 6 additions & 0 deletions python/plugins/processing/grass7/description/r.clump.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
r.clump
r.clump - Recategorizes data in a raster map by grouping cells that form physically discrete areas into unique categories.
Raster (r.*)
ParameterRaster|input|Input layer|False
ParameterString|title|Title for output raster map|
OutputRaster|output|Recategorized layer
8 changes: 8 additions & 0 deletions python/plugins/processing/grass7/description/r.coin.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
r.coin
r.coin - Tabulates the mutual occurrence (coincidence) of categories for two raster map layers.
Raster (r.*)
ParameterRaster|map1|Name of first raster map|False
ParameterRaster|map2|Name of second raster map|False
ParameterSelection|units|Unit of measure|c;p;x;y;a;h;k;m
ParameterBoolean|-w|Wide report, 132 columns (default: 80)|False
OutputHTML|html|Output report
12 changes: 12 additions & 0 deletions python/plugins/processing/grass7/description/r.composite.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
r.composite
r.composite - Combines red, green and blue raster maps into a single composite raster map.
Raster (r.*)
ParameterRaster|red|Red|False
ParameterRaster|green|Green|False
ParameterRaster|blue|Blue|False
ParameterNumber|lev_red|Number of levels to be used for <red>|1|256|32
ParameterNumber|lev_green|Number of levels to be used for <green>|1|256|32
ParameterNumber|lev_blue|Number of levels to be used for <blue>|1|256|32
ParameterBoolean|-d|Dither|False
ParameterBoolean|-c|Use closest color|False
OutputRaster|output|Output RGB image
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
r.contour
r.contour.level - Create vector contour from raster at specified levels
Raster (r.*)
ParameterRaster|input|Input raster|False
ParameterString|levels|List of contour levels|
ParameterString|cut|Minimum number of points for a contour line (0 -> no limit)|0
OutputVector|output|Contours
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
r.contour
r.contour.step - Create vector contours from raster at specified steps
Raster (r.*)
ParameterRaster|input|Input raster|False
ParameterString|minlevel|Minimum contour level|0
ParameterString|maxlevel|Maximum contour level|10000
ParameterString|step|Increment between contour levels|100
ParameterString|cut|Minimum number of points for a contour line (0 -> no limit)|0
OutputVector|output|contours
9 changes: 9 additions & 0 deletions python/plugins/processing/grass7/description/r.cost.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
r.cost
r.cost - Creates a raster layer of cumulative cost of moving across a raster layer whose cell values represent cost.
Raster (r.*)
ParameterRaster|input|Unit cost layer|False
ParameterVector|start_points|Start points|0|False
ParameterVector|stop_points|Stop points|0|False
ParameterBoolean|-k|Use the 'Knight's move'; slower, but more accurate|False
ParameterBoolean|-n|Keep null values in output raster layer|False
OutputRaster|output|Cumulative cost
6 changes: 6 additions & 0 deletions python/plugins/processing/grass7/description/r.covar.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
r.covar
r.covar - Outputs a covariance/correlation matrix for user-specified raster layer(s).
Raster (r.*)
ParameterMultipleInput|map|Input layers|3.0|False
ParameterBoolean|-r|Print correlation matrix|True
OutputHTML|html|Covariance report
6 changes: 6 additions & 0 deletions python/plugins/processing/grass7/description/r.cross.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
r.cross
r.cross - Creates a cross product of the category values from multiple raster map layers.
Raster (r.*)
ParameterMultipleInput|input|Input raster layers|3.0|False
ParameterBoolean|-z|Non-zero data only|False
OutputRaster|output|Output layer
11 changes: 11 additions & 0 deletions python/plugins/processing/grass7/description/r.describe.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
r.describe
r.describe - Prints terse list of category values found in a raster layer.
Raster (r.*)
ParameterRaster|map|input raster layer|False
ParameterNumber|nv|No-data cell value|None|None|0
ParameterNumber|nsteps|Number of quantization steps|1.0|None|255
ParameterBoolean|-r|Only print the range of the data|False
ParameterBoolean|-n|Suppress reporting of any NULLs|False
ParameterBoolean|-d|Use the current region|False
ParameterBoolean|-i|Read fp map as integer|False
OutputHTML|html|Output report
10 changes: 10 additions & 0 deletions python/plugins/processing/grass7/description/r.drain.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
r.drain
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|False
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
OutputRaster|output|Result
8 changes: 8 additions & 0 deletions python/plugins/processing/grass7/description/r.fill.dir.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
r.fill.dir
r.fill.dir - Filters and generates a depressionless elevation layer and a flow direction layer from a given elevation raster layer.
Raster (r.*)
ParameterRaster|input|Elevation|False
ParameterSelection|type|Output aspect direction format|grass;agnps;answers
OutputRaster|elevation|Depressionless DEM
OutputRaster|direction|Flow direction
OutputRaster|areas|Problem areas
7 changes: 7 additions & 0 deletions python/plugins/processing/grass7/description/r.fillnulls.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
r.fillnulls
r.fillnulls - Fills no-data areas in a raster layer using v.surf.rst splines interpolation or v.surf.bspline interpolation
Raster (r.*)
ParameterRaster|input|Input raster layer to fill|False
ParameterNumber|tension|Spline tension parameter|None|None|40.0
ParameterNumber|smooth|Spline smoothing parameter|None|None|0.1
OutputRaster|output|Filled layer
14 changes: 14 additions & 0 deletions python/plugins/processing/grass7/description/r.flow.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
r.flow
r.flow - Construction of slope curves (flowlines), flowpath lengths, and flowline densities (upslope areas) from a raster digital elevation model (DEM).
Raster (r.*)
ParameterRaster|elevation|Elevation|False
ParameterRaster|aspect|Aspect|False
ParameterRaster|barrier|Barriers|False
ParameterNumber|skip|Number of cells between flowlines|None|None|1.0
ParameterNumber|bound|Maximum number of segments per flowline|None|None|5.0
ParameterBoolean|-u|Compute upslope flowlines instead of default downhill flowlines|False
ParameterBoolean|-3|3-D lengths instead of 2-D|False
*ParameterBoolean|-m|Use less memory, at a performance penalty|False
OutputRaster|flowline|Output flowline vector layer
OutputRaster|flowpath|Output flowpath length raster layer
OutputRaster|density|Output flowline density raster layer
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
r.grow.distance
r.grow.distance - Generates a raster layer of distance to features in input layer.
Raster (r.*)
ParameterRaster|input|Input input raster layer|False
ParameterSelection|metric|Metric|euclidean;squared;maximum;manhattan
OutputRaster|distance|Distance layer
OutputRaster|value|Output value
9 changes: 9 additions & 0 deletions python/plugins/processing/grass7/description/r.grow.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
r.grow
r.grow - Generates a raster layer with contiguous areas grown by one cell.
Raster (r.*)
ParameterRaster|input|input raster layer|False
ParameterNumber|radius|Radius of buffer in raster cells|None|None|1.01
ParameterSelection|metric|Metric|euclidean;maximum;manhattan
ParameterNumber|old|Value to write for input cells which are non-NULL (-1 => NULL)|None|None|0
ParameterNumber|new|Value to write for "grown" cells|None|None|1
OutputRaster|output|Output layer
25 changes: 25 additions & 0 deletions python/plugins/processing/grass7/description/r.gwflow.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
r.gwflow
r.gwflow - Numerical calculation program for transient, confined and unconfined groundwater flow in two dimensions.
Raster (r.*)
ParameterString|phead|The initial piezometric head in [m]|
ParameterString|status|Boundary condition status, 0-inactive, 1-active, 2-dirichlet|
ParameterString|hc_x|X-part of the hydraulic conductivity tensor in [m/s]|
ParameterString|hc_y|Y-part of the hydraulic conductivity tensor in [m/s]|
ParameterString|q|Water sources and sinks in [m^3/s]|
ParameterString|s|Specific yield in [1/m]|
ParameterString|r|Recharge map e.g: 6*10^-9 per cell in [m^3/s*m^2]|
ParameterString|top|Top surface of the aquifer in [m]|
ParameterString|bottom|Bottom surface of the aquifer in [m]|
ParameterSelection|type|The type of groundwater flow|confined;unconfined
ParameterString|river_bed|The height of the river bed in [m]|
ParameterString|river_head|Water level (head) of the river with leakage connection in [m]|
ParameterString|river_leak|The leakage coefficient of the river bed in [1/s]|
ParameterString|drain_bed|The height of the drainage bed in [m]|
ParameterString|drain_leak|The leakage coefficient of the drainage bed in [1/s]|
ParameterNumber|dt|The calculation time in seconds|None|None|86400.0
ParameterNumber|maxit|Maximum number of iteration used to solver the linear equation system|None|None|100000.0
ParameterNumber|error|Error break criteria for iterative solvers (jacobi, sor, cg or bicgstab)|None|None|1e-10
ParameterSelection|solver|The type of solver which should solve the symmetric linear equation system|gauss;lu;cholesky;jacobi;sor;cg;bicgstab;pcg
ParameterString|relax|The relaxation parameter used by the jacobi and sor solver for speedup or stabilizing|1
ParameterBoolean|-s|Use a sparse matrix, only available with iterative solvers|False
OutputRaster|output|The map storing the numerical result [m]
10 changes: 10 additions & 0 deletions python/plugins/processing/grass7/description/r.his.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
r.his
r.his - Generates red, green and blue raster layers combining hue, intensity and saturation (HIS) values from user-specified input raster layers.
Raster (r.*)
ParameterRaster|h_map|Hue|False
ParameterRaster|i_map|Intensity|False
ParameterRaster|s_map|Saturation|False
ParameterBoolean|-n|Respect NULL values while drawing|False
OutputRaster|r_map|Red
OutputRaster|g_map|Green
OutputRaster|b_map|Blue
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
r.horizon
r.horizon.height - Horizon angle computation from a digital elevation model.
Raster (r.*)
ParameterRaster|elev_in|Elevation layer [meters]|False
ParameterString|coordinate|Coordinate for which you want to calculate the horizon|0,0
ParameterNumber|horizon_step|Angle step size for multidirectional horizon [degrees]|0|360|0.0
ParameterNumber|maxdistance|The maximum distance to consider when finding the horizon height|0|None|10000
ParameterString|dist|Sampling distance step coefficient (0.5-1.5)|1.0
ParameterBoolean|-d|Write output in degrees (default is radians)|False
9 changes: 9 additions & 0 deletions python/plugins/processing/grass7/description/r.horizon.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
r.horizon
r.horizon - Horizon angle computation from a digital elevation model.
Raster (r.*)
ParameterRaster|elev_in|Elevation layer [meters]|False
ParameterNumber|direction|Direction in which you want to calculate the horizon height|0|360|0.0
ParameterNumber|maxdistance|The maximum distance to consider when finding the horizon height|0|None|10000
ParameterString|dist|Sampling distance step coefficient (0.5-1.5)|1.0
ParameterBoolean|-d|Write output in degrees (default is radians)|False
OutputRaster|horizon|Prefix of the horizon raster output maps
14 changes: 14 additions & 0 deletions python/plugins/processing/grass7/description/r.info.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
r.info
r.info - Output basic information about a raster layer.
Raster (r.*)
ParameterRaster|map|Raster layer|False
ParameterBoolean|-r|Print range only|False
ParameterBoolean|-s|Print raster map resolution (NS-res, EW-res) only|False
ParameterBoolean|-t|Print raster map type only|False
ParameterBoolean|-g|Print map region only|False
ParameterBoolean|-h|Print raster history instead of info|False
ParameterBoolean|-u|Print raster map data units only|False
ParameterBoolean|-d|Print raster map vertical datum only|False
ParameterBoolean|-m|Print map title only|False
ParameterBoolean|-p|Print raster map timestamp (day.month.year hour:minute:seconds) only|False
OutputHTML|html|Layer info
9 changes: 9 additions & 0 deletions python/plugins/processing/grass7/description/r.kappa.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
r.kappa
r.kappa - Calculate error matrix and kappa parameter for accuracy assessment of classification result.
Raster (r.*)
ParameterRaster|classification|Raster layer containing classification result|False
ParameterRaster|reference|Raster layer containing reference classes|False
ParameterString|title|Title for error matrix and kappa|ACCURACY ASSESSMENT
ParameterBoolean|-h|No header in the report|False
ParameterBoolean|-w|Wide report (132 columns)|False
OutputFile|output|Output file containing error matrix and kappa
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
r.lake
r.lake.coords - Fills lake at given point to given level.
Raster (r.*)
ParameterRaster|elevation|Elevation|False
ParameterNumber|water_level|Water level|None|None|1000.0
ParameterString|coordinates|Seed point coordinates|0,0
ParameterBoolean|-n|Use negative depth values for lake raster layer|False
OutputRaster|lake|Output raster map with lake
8 changes: 8 additions & 0 deletions python/plugins/processing/grass7/description/r.lake.layer.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
r.lake
r.lake.layer - Fills lake at given point to given level.
Raster (r.*)
ParameterRaster|elevation|Elevation|False
ParameterNumber|water_level|Water level|None|None|1000.0
ParameterRaster|seed|Raster layer with starting point(s) (at least 1 cell > 0)|False
ParameterBoolean|-n|Use negative depth values for lake raster layer|False
OutputRaster|lake|Output raster map with lake
11 changes: 11 additions & 0 deletions python/plugins/processing/grass7/description/r.mapcalculator.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
r.mapcalculator
r.mapcalculator - Calculate new raster map from a r.mapcalc expression.
Raster (r.*)
ParameterRaster|amap|Raster layer A|False
ParameterRaster|bmap|Raster layer B|True
ParameterRaster|cmap|Raster layer C|True
ParameterRaster|dmap|Raster layer D|True
ParameterRaster|emap|Raster layer E|True
ParameterRaster|fmap|Raster layer F|True
ParameterString|formula|Formula| A*C+B
OutputRaster|outfile|Output raster layer
6 changes: 6 additions & 0 deletions python/plugins/processing/grass7/description/r.median.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
r.median
r.median - Finds the median of values in a cover layer within areas assigned the same category value in a user-specified base layer.
Raster (r.*)
ParameterRaster|base|Base raster layer|False
ParameterRaster|cover|Cover layer|False
OutputRaster|output|Output raster layer
8 changes: 8 additions & 0 deletions python/plugins/processing/grass7/description/r.mfilter.fp.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
r.mfilter.fp
r.mfilter.fp - Raster map matrix filter.
Raster (r.*)
ParameterRaster|input|input layer|False
ParameterFile|filter|Filter file|False
ParameterNumber|repeat|Number of times to repeat the filter|1|None|1
ParameterBoolean|-z|Apply filter only to zero data values|False
OutputRaster|output|Output layer
8 changes: 8 additions & 0 deletions python/plugins/processing/grass7/description/r.mfilter.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
r.mfilter
r.mfilter - Performs raster map matrix filter.
Raster (r.*)
ParameterRaster|input|Input layer|False
ParameterFile|filter|Filter file|False
ParameterNumber|repeat|Number of times to repeat the filter|1|None|1
ParameterBoolean|-z|Apply filter only to zero data values|False
OutputRaster|output|Output layer
6 changes: 6 additions & 0 deletions python/plugins/processing/grass7/description/r.mode.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
r.mode
r.mode - Finds the mode of values in a cover layer within areas assigned the same category value in a user-specified base layer.
Raster (r.*)
ParameterRaster|base|Base layer to be reclassified|False
ParameterRaster|cover|Categories layer|False
OutputRaster|output|Output layer
10 changes: 10 additions & 0 deletions python/plugins/processing/grass7/description/r.neighbors.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
r.neighbors
r.neighbors - Makes each cell category value a function of the category values assigned to the cells around it
Raster (r.*)
ParameterRaster|input|Input raster layer|False
ParameterSelection|method|Neighborhood operation|average;median;mode;minimum;maximum;stddev;sum;variance;diversity;interspersion
ParameterNumber|size|Neighborhood size|1|None|3
ParameterBoolean|-c|Use circular neighborhood|False
*ParameterBoolean|-a|Do not align output with the input|False
*ParameterFile|weight|File containing weights|False
OutputRaster|output|Output layer
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
r.out.gridatb
r.out.gridatb - Exports GRASS raster map to GRIDATB.FOR map file (TOPMODEL)
Raster (r.*)
ParameterRaster|input|Name of input raster map|False
OutputFile|output|GRIDATB i/o map file
6 changes: 6 additions & 0 deletions python/plugins/processing/grass7/description/r.out.ppm.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
r.out.ppm
r.out.ppm - Converts a raster layer to a PPM image file at the pixel resolution of the currently defined region.
Raster (r.*)
ParameterRaster|input|Input raster layer|False
ParameterBoolean|-g|Output greyscale instead of color|True
OutputFile|output|Output PPM file
7 changes: 7 additions & 0 deletions python/plugins/processing/grass7/description/r.out.vrml.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
r.out.vrml
r.out.vrml - Export a raster layer to the Virtual Reality Modeling Language (VRML)
Raster (r.*)
ParameterRaster|elev|Elevation layer|False
ParameterRaster|color|Color layer|False
ParameterNumber|exag|Vertical exaggeration|None|None|1.0
OutputFile|output|Output VRML file
12 changes: 12 additions & 0 deletions python/plugins/processing/grass7/description/r.param.scale.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
r.param.scale
r.param.scale - Extracts terrain parameters from a DEM.
Raster (r.*)
ParameterRaster|input|Name of input raster map|False
ParameterNumber|s_tol|Slope tolerance that defines a 'flat' surface (degrees)|None|None|1.0
ParameterNumber|c_tol|Curvature tolerance that defines 'planar' surface|None|None|0.0001
ParameterNumber|size|Size of processing window (odd number only, max: 69)|None|None|15
ParameterSelection|param|Morphometric parameter in 'size' window to calculate|elev;slope;aspect;profc;planc;longc;crosc;minic;maxic;feature
ParameterNumber|exp|Exponent for distance weighting (0.0-4.0)|None|None|0.0
ParameterNumber|zscale|Vertical scaling factor|None|None|1.0
ParameterBoolean|-c|Constrain model through central window cell|False
OutputRaster|output|Output raster layer containing morphometric parameter
6 changes: 6 additions & 0 deletions python/plugins/processing/grass7/description/r.patch.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
r.patch
r.patch - Creates a composite raster layer by using one (or more) layer(s) to fill in areas of "no data" in another map layer.
Raster (r.*)
ParameterMultipleInput|input|Raster layers to be patched together|3|False
ParameterBoolean|-z|Use zero (0) for transparency instead of NULL|False
OutputRaster|output|Result
10 changes: 10 additions & 0 deletions python/plugins/processing/grass7/description/r.plane.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
r.plane
r.plane - Creates raster plane layer given dip (inclination), aspect (azimuth) and one point.
Raster (r.*)
ParameterNumber|dip|Dip of plane. Value must be between -90 and 90 degrees|None|None|0.0
ParameterNumber|azimuth|Azimuth of the plane. Value must be between 0 and 360 degrees|None|None|0.0
ParameterNumber|easting|Easting coordinate of a point on the plane|None|None|0.0
ParameterNumber|northing|Northing coordinate of a point on the plane|None|None|0.0
ParameterNumber|elevation|Elevation coordinate of a point on the plane|None|None|0.0
ParameterSelection|type|Data type of resulting layer|int;float;double
OutputRaster|output|Output raster layer
10 changes: 10 additions & 0 deletions python/plugins/processing/grass7/description/r.profile.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
r.profile
r.profile - Outputs the raster layer values lying on user-defined line(s).
Raster (r.*)
ParameterRaster|input|Input raster layer|False
ParameterString|profile|Profile coordinate pairs|0,0,1,1
ParameterNumber|res|Resolution along profile|0|None|1.0
ParameterString|null|Character to represent no data cell|*
ParameterBoolean|-g|Output easting and northing in first two columns of four column output|False
ParameterBoolean|-c|Output RRR:GGG:BBB color values for each profile point|False
OutputFile|output|Output filename
9 changes: 9 additions & 0 deletions python/plugins/processing/grass7/description/r.quant.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
r.quant
r.quant - Produces the quantization file for a floating-point map.
Raster (r.*)
ParameterMultipleInput|input|Raster layer(s) to be quantized|1.0|False
ParameterRaster|basemap|Base layer to take quant rules from|False
ParameterRange|fprange|Floating point range: dmin,dmax|0,1
ParameterRange|range|Integer range: min,max|1,255
ParameterBoolean|-t|Truncate floating point data|False
ParameterBoolean|-r|Round floating point data|False
8 changes: 8 additions & 0 deletions python/plugins/processing/grass7/description/r.quantile.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
r.quantile
r.quantile - Compute quantiles using two passes.
Raster (r.*)
ParameterRaster|input|Input raster layer|False
ParameterNumber|quantiles|Number of quantiles|2|None|4
*ParameterBoolean|-r|Generate recode rules based on quantile-defined intervals|False
OutputHTML|html|Output report
OutputFile|outputtext|Output text file
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
r.random.cells
r.random.cells - Generates random cell values with spatial dependence.
Raster (r.*)
ParameterNumber|distance|Maximum distance of spatial correlation (value(s) >= 0.0)|0.0|None|0.0
*ParameterNumber|seed|Random seed (SEED_MIN >= value >= SEED_MAX) (default [random])|None|None|0.0
OutputRaster|output|Output raster layer
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
r.randon.raster
r.random.raster - Create random raster
Raster (r.*)
ParameterRaster|raster|Name of input raster map|False
ParameterNumericalValue|value|The number of points to allocate |None|None|1
OutputRaster|output|Output layer
8 changes: 8 additions & 0 deletions python/plugins/processing/grass7/description/r.random.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
r.random
r.random - Creates a raster layer and vector point map containing randomly located points.
Raster (r.*)
ParameterRaster|input|Input raster layer|False
ParameterRaster|cover|Input cover raster layer|False
ParameterNumber|n|The number of points to allocate|0|None|10
OutputRaster|raster_output|Output raster layer
OutputVector|vector_output|Output vector layer
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
r.reclass.area
r.reclass.area.greater - Reclassifies a raster layer, selecting areas larger than a user specified size
Raster (r.*)
ParameterRaster|input|Input raster layer|False
ParameterNumber|greater|Area threshold [hectares]|0|None|1.0
OutputRaster|output|Output raster layer
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
r.reclass.area
r.reclass.area.lesser - Reclassifies a raster layer, selecting areas lower than a user specified size
Raster (r.*)
ParameterRaster|input|Input raster layer|False
ParameterNumber|lesser|Area threshold [hectares]|0|None|1.0
OutputRaster|output|Output raster layer
6 changes: 6 additions & 0 deletions python/plugins/processing/grass7/description/r.reclass.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
r.reclass
r.reclass - Creates a new map layer whose category values are based upon a reclassification of the categories in an existing raster map layer.
Raster (r.*)
ParameterRaster|input|Input raster layer|False
ParameterFile|rules|File containing reclass rules|-
OutputRaster|output|Output raster layer
7 changes: 7 additions & 0 deletions python/plugins/processing/grass7/description/r.recode.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
r.recode
r.recode - Recodes categorical raster maps.
Raster (r.*)
ParameterRaster|input|Input layer|False
ParameterFile|rules|File containing recode rules|False
*ParameterBoolean|-d|Force output to 'double' raster map type (DCELL)|False
OutputRaster|output|Output raster layer
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
r.regression.line
r.regression.line - Calculates linear regression from two raster layers : y = a + b*x.
Raster (r.*)
ParameterRaster|map1|Layer for x coefficient|False
ParameterRaster|map2|Layer for y coefficient|False
ParameterBoolean|-s|Slower but accurate|False
OutputHTML|html|Regression data
13 changes: 13 additions & 0 deletions python/plugins/processing/grass7/description/r.report.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
r.report
r.report - Reports statistics for raster layers.
Raster (r.*)
ParameterMultipleInput|map|Raster layer(s) to report on|3.0|False
ParameterSelection|units|Units|mi;me;k;a;h;c;p
ParameterString|null|Character representing no data cell value|*
ParameterNumber|nsteps|Number of fp subranges to collect stats from|1|None|255
ParameterBoolean|-h|Suppress page headers|True
ParameterBoolean|-f|Use formfeeds between pages|True
ParameterBoolean|-e|Scientific format|True
ParameterBoolean|-n|Filter out all no data cells|True
ParameterBoolean|-N|Filter out cells where all layers have no data|True
OutputHTML|html|Output report file
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
r.resamp.interp
r.resamp.interp - Resamples a raster map layer to a finer grid using interpolation.
Raster (r.*)
ParameterRaster|input|Input raster layer|False
ParameterSelection|method|Interpolation method|nearest;bilinear;bicubic
ParameterBoolean|-a_r.region|Align region to resolution (default = align to bounds) in r.region|False
OutputRaster|output|Output raster layer
9 changes: 9 additions & 0 deletions python/plugins/processing/grass7/description/r.resamp.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
r.resamp.rst
r.resamp.rst - Reinterpolates using regularized spline with tension and smoothing.
Raster (r.*)
ParameterRaster|input|Raster layer|False
ParameterNumber|ew_res|Desired east-west resolution|0.0|None|1
ParameterNumber|ns_res|Desired north-south resolution|0.0|None|1
ParameterBoolean|-t|Use dnorm independent tension|False
ParameterBoolean|-a_r.region|Align region to resolution (default = align to bounds) in r.region|False
OutputRaster|elev|Output layer
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
r.resamp.stats
r.resamp.stats - Resamples raster layers to a coarser grid using aggregation.
Raster (r.*)
ParameterRaster|input|Input raster layer|False
ParameterSelection|method|Aggregation method|average;median;mode;minimum;maximum;quart1;quart3;perc90;sum;variance;stddev
ParameterBoolean|-n|Propagate NULLs|False
ParameterBoolean|-w|Weight according to area (slower)|False
ParameterBoolean|-a_r.region|Align region to resolution (default = align to bounds) in r.region|False
OutputRaster|output|Output raster layer
5 changes: 5 additions & 0 deletions python/plugins/processing/grass7/description/r.resample.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
r.resample
r.resample - GRASS raster map layer data resampling capability using nearest neighbors.
Raster (r.*)
ParameterRaster|input|Input raster layer |False
OutputRaster|output|Output raster layer
7 changes: 7 additions & 0 deletions python/plugins/processing/grass7/description/r.rescale.eq.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
r.rescale.eq
r.rescale.eq - Rescales histogram equalized the range of category values in a raster layer.
Raster (r.*)
ParameterRaster|input|Input raster layer|False
ParameterRange|from|The input data range to be rescaled
ParameterRange|to|The output data range
OutputRaster|output|Output raster layer
7 changes: 7 additions & 0 deletions python/plugins/processing/grass7/description/r.rescale.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
r.rescale
r.rescale - Rescales the range of category values in a raster layer.
Raster (r.*)
ParameterRaster|input|Input raster layer|False
ParameterRange|from|The input data range to be rescaled|0,1
ParameterRange|to|The output data range|0,1
OutputRaster|output|Output raster layer
8 changes: 8 additions & 0 deletions python/plugins/processing/grass7/description/r.series.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
r.series
r.series - Makes each output cell value a function of the values assigned to the corresponding cells in the input raster layers.
Raster (r.*)
ParameterMultipleInput|input|Input raster layer(s)|3.0|False
ParameterBoolean|-n|Propagate NULLs|True
ParameterSelection|method|Aggregate operation|average;count;median;mode;minimum;min_raster;maximum;max_raster;stddev;range;sum;variance;diversity;slope;offset;detcoeff;quart1;quart3;perc90;skewness;kurtosis
*ParameterString|range|Ignore values outside this range (lo,hi)|-10000000000,10000000000
OutputRaster|output|Ouptut raster layer
10 changes: 10 additions & 0 deletions python/plugins/processing/grass7/description/r.shaded.relief.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
r.shaded.relief
r.shaded.relief - Creates shaded relief from an elevation layer (DEM).
Raster (r.*)
ParameterRaster|map|Input elevation layer|False
ParameterNumber|altitude|Altitude of the sun in degrees above the horizon|None|None|30.0
ParameterNumber|azimuth|Azimuth of the sun in degrees to the east of north|None|None|270.0
ParameterNumber|zmult|Factor for exaggerating relief|None|None|1.0
ParameterNumber|scale|Scale factor for converting horizontal units to elevation units|None|None|1.0
ParameterSelection|units|et scaling factor (applies to lat./long. locations only, none: scale=1)|none;meters;feet
OutputRaster|shadedmap|Output shaded relief layer
21 changes: 21 additions & 0 deletions python/plugins/processing/grass7/description/r.sim.sediment.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
r.sim.sediment
r.sim.sediment - Sediment transport and erosion/deposition simulation using path sampling method (SIMWE).
Raster (r.*)
ParameterRaster|elevation|Name of the elevation raster map [m]|False
ParameterRaster|wdepth|Name of the water depth raster map [m]|False
ParameterRaster|dx|Name of the x-derivatives raster map [m/m]|False
ParameterRaster|dy|Name of the y-derivatives raster map [m/m]|False
ParameterRaster|det|Name of the detachment capacity coefficient raster map [s/m]|False
ParameterRaster|tran|Name of the transport capacity coefficient raster map [s]|False
ParameterRaster|tau|Name of the critical shear stress raster map [Pa]|False
ParameterRaster|man|Name of the Mannings n raster map|False
ParameterNumber|man_value|Name of the Mannings n value|None|None|0.1
ParameterNumber|nwalk|Number of walkers|None|None|1
ParameterNumber|niter|Time used for iterations [minutes]|None|None|10
ParameterNumber|outiter|Time interval for creating output maps [minutes]|None|None|2
ParameterNumber|diffc|Water diffusion constant|None|None|0.8
OutputRaster|tc|Output transport capacity raster map [kg/ms]
OutputRaster|et|Output transp.limited erosion-deposition raster map [kg/m2s]
OutputRaster|conc|Output sediment concentration raster map [particle/m3]
OutputRaster|flux|Output sediment flux raster map [kg/ms]
OutputRaster|erdep|Output erosion-deposition raster map [kg/m2s]
24 changes: 24 additions & 0 deletions python/plugins/processing/grass7/description/r.sim.water.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
r.sim.water
r.sim.water - Overland flow hydrologic simulation using path sampling method (SIMWE).
Raster (r.*)
ParameterRaster|elevation|Name of the elevation raster map [m]|False
ParameterRaster|dx|Name of the x-derivatives raster map [m/m]|False
ParameterRaster|dy|Name of the y-derivatives raster map [m/m]|False
ParameterRaster|rain|Name of the rainfall excess rate (rain-infilt) raster map [mm/hr]|False
ParameterString|rain_value|Rainfall excess rate unique value [mm/hr]|50
ParameterRaster|infil|Name of the runoff infiltration rate raster map [mm/hr]|False
ParameterString|infil_value|Runoff infiltration rate unique value [mm/hr]|0.0
ParameterRaster|man|Name of the Mannings n raster map|False
ParameterString|man_value|Mannings n unique value|0.1
ParameterRaster|traps|Name of the flow controls raster map (permeability ratio 0-1)|False
ParameterString|nwalk|Number of walkers, default is twice the no. of cells|
ParameterString|niter|Time used for iterations [minutes]|10
ParameterString|outiter|Time interval for creating output maps [minutes]|2
ParameterString|diffc|Water diffusion constant|0.8
ParameterString|hmax|Threshold water depth [m] (diffusion increases after this water depth is reached)|0.3
ParameterString|halpha|Diffusion increase constant|4.0
ParameterString|hbeta|Weighting factor for water flow velocity vector|0.5
ParameterBoolean|-t|Time-series output|True
OutputRaster|depth|Output water depth raster map [m]
OutputRaster|disch|Output water discharge raster map [m3/s]
OutputRaster|err|Output simulation error raster map [m]
17 changes: 17 additions & 0 deletions python/plugins/processing/grass7/description/r.slope.aspect.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
r.slope.aspect
r.slope.aspect - Generates raster layers of slope, aspect, curvatures and partial derivatives from a elevation raster layer.
Raster (r.*)
ParameterRaster|elevation|Elevation|False
ParameterSelection|format|Format for reporting the slope|degrees;percent
ParameterSelection|prec|Type of output aspect and slope layer|float;double;int
ParameterNumber|zfactor|Multiplicative factor to convert elevation units to meters|None|None|1.0
ParameterNumber|min_slp_allowed|Minimum slope val. (in percent) for which aspect is computed|None|None|0.0
OutputRaster|slope|Output slope layer
OutputRaster|aspect|Output aspect layer
OutputRaster|pcurv|Output profile curvature layer
OutputRaster|tcurv|Output tangential curvature layer
OutputRaster|dx|Output first order partial derivative dx (E-W slope) layer
OutputRaster|dy|Output first order partial derivative dy (N-S slope) layer
OutputRaster|dxx|Output second order partial derivative dxx layer
OutputRaster|dyy|Output second order partial derivative dyy layer
OutputRaster|dxy|Output second order partial derivative dxy layer
7 changes: 7 additions & 0 deletions python/plugins/processing/grass7/description/r.spreadpath.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
r.spreadpath
r.spreadpath - Recursively traces the least cost path backwards to cells from which the cumulative cost was determined.
Raster (r.*)
ParameterRaster|x_input|x_input|False
ParameterRaster|y_input|y_input|False
ParameterString|coordinate|coordinate|0,0
OutputRaster|output|Output layer
8 changes: 8 additions & 0 deletions python/plugins/processing/grass7/description/r.statistics.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
r.statistics
r.statistics - Calculates category or object oriented statistics.
Raster (r.*)
ParameterRaster|base|Base raster layer|False
ParameterRaster|cover|Cover raster layer|False
ParameterSelection|method|method|diversity;average;mode;median;avedev;stddev;variance;skewness;kurtosis;min;max;sum
ParameterBoolean|-c|Cover values extracted from the category labels of the cover map|False
OutputRaster|output|Output raster layer
21 changes: 21 additions & 0 deletions python/plugins/processing/grass7/description/r.stats.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
r.stats
r.stats - Generates area statistics for raster layers.
Raster (r.*)
ParameterMultipleInput|input|Name of input raster map|3.0|False
ParameterString|separator|Output field separator|space
ParameterString|nv|String representing no data cell value|*
ParameterString|nsteps|Number of fp subranges to collect stats from|255
ParameterBoolean|-1|One cell (range) per line|True
ParameterBoolean|-A|Print averaged values instead of intervals|False
ParameterBoolean|-a|Print area totals|False
ParameterBoolean|-c|Print cell counts|False
ParameterBoolean|-p|Print APPROXIMATE percents (total percent may not be 100%)|False
ParameterBoolean|-l|Print category labels|False
ParameterBoolean|-g|Print grid coordinates (east and north)|False
ParameterBoolean|-x|Print x and y (column and row)|False
ParameterBoolean|-r|Print raw indexes of fp ranges (fp maps only)|False
ParameterBoolean|-n|Suppress reporting of any NULLs|False
ParameterBoolean|-N|Suppress reporting of NULLs when all values are NULL|False
ParameterBoolean|-C|Report for cats fp ranges (fp maps only)|False
ParameterBoolean|-i|Read fp map as integer (use map's quant rules)|False
OutputHTML|html|Output stats file
13 changes: 13 additions & 0 deletions python/plugins/processing/grass7/description/r.stream.angle.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
r.stream.angle
r.stream.angle - Route azimuth, direction and relation to streams of higher order.
Raster (r.*)
ParameterRaster|stream_rast|Input map: stream mask|False
ParameterRaster|directions|Input map: direction map|False
ParameterRaster|elevation|Input map: elevation map|True
ParameterSelection|order|Stream ordering method|none;hack;horton;strahler|0
ParameterNumber|length|Search length to calculat direction|1|None|15
ParameterNumber|skip|Skip segments shorter than|1|None|5
ParameterNumber|treshold|Max angle (degrees) beetwen stream segments to|1.0|360.0|150.0
ParameterBoolean|-r|Output angles in radians|False
ParameterBoolean|-e|Extended topology|False
OutputVector|seg_vector|Vector to store new network with segments
10 changes: 10 additions & 0 deletions python/plugins/processing/grass7/description/r.stream.basins.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
r.stream.basins
r.stream.basins - Calculate basins according user input
Raster (r.*)
ParameterRaster|direction|Input map: flow direction|False
ParameterRaster|stream_rast|Input map: stream network|True
ParameterVector|points|Basins outlets|0|True
ParameterBoolean|-z|Create zero-value background|False
ParameterBoolean|-c|Use unique category sequence|False
ParameterBoolean|-l|Create basins only for last stream links|False
OutputRaster|basins|Output basin map
8 changes: 8 additions & 0 deletions python/plugins/processing/grass7/description/r.stream.del.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
r.stream.del
r.stream.del - Calculate basins according user input
Raster (r.*)
ParameterRaster|stream_rast|Input map: stream mask|False
ParameterRaster|direction|Input map: flow direction|False
ParameterNumber|threshold|Minimum number of cell in stream_rast|1|None|1
ParameterBoolean|-z|Create zero-value background|False
OutputRaster|reduced|Output reduced stream map
12 changes: 12 additions & 0 deletions python/plugins/processing/grass7/description/r.stream.distance.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
r.stream.distance
r.stream.distance - Calculate distance to and elevation above streams and outlets
Raster (r.*)
ParameterRaster|stream_rast|Input map: streams (outlets) mask|False
ParameterRaster|direction|Input map: flow direction|False
ParameterRaster|elevation|Input map: elevation map|True
ParameterSelection|method|Calculation method|upstream,downstream|1
ParameterBoolean|-o|Calculate parameters for outlets|False
ParameterBoolean|-s|Calculate parameters for subbasins|False
ParameterBoolean|-n|Calculate nearest local maximum|False
OutputRaster|difference|Output elevation difference map
OutputRaster|distance|Output distance map
13 changes: 13 additions & 0 deletions python/plugins/processing/grass7/description/r.stream.extract.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
r.stream.extract
r.stream.extract - Stream network extraction
Raster (r.*)
ParameterRaster|elevation|Input map: elevation map|False
ParameterRaster|accumulation|Input map: accumulation map|True
ParameterRaster|depression|Input map: map with real depressions|True
ParameterNumber|threshold|Minimum flow accumulation for streams|1.0|None|0.1
ParameterNumber|mexp|Montgomery exponent for slope|0|None|0
ParameterNumber|stream_length|Delete stream segments shorter than cells|0|None|0
ParameterNumber|d8cut|Use SFD above this threshold|0|None|0
OutputRaster|stream_rast|Output raster map with unique stream ids
OutputVector|stream_vect|Output vector with unique stream ids
OutputRaster|direction|Output raster map with flow direction
12 changes: 12 additions & 0 deletions python/plugins/processing/grass7/description/r.stream.order.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
r.stream.order
r.stream.order - Calculate Strahler's and Horton's stream order Hack's main streams and Shreeve's stream magnitude
Raster (r.*)
ParameterRaster|stream_rast|Input map: stream mask|False
ParameterRaster|direction|Input map: direction map|False
ParameterBoolean|-a|Use flow accumulation to trace horton and hack models|False
ParameterBoolean|-z|Create zero-value background|False
OutputRaster|strahler|Output basin map (Strahler)
OutputRaster|shreve|Output basin map (Shreve)
OutputRaster|horton|Output basin map (Horton)
OutputRaster|hack|Output basin map (Hack)
OutputRaster|topo|Output basin map (Topo)
9 changes: 9 additions & 0 deletions python/plugins/processing/grass7/description/r.stream.pos.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
r.stream.pos
r.stream.pos - Route azimuth, direction and relation to streams of higher order
Raster (r.*)
ParameterRaster|stream_rast|Input map: stream mask|False
ParameterRaster|direction|Input map: flow direction|False
ParameterNumber|multiplier|Multipier to store stream index value|1|None|1000
ParameterBoolean|-s|Create new stream category sequence|False
OutputFile|cells|File to store pixel's position
OutputFile|lengths|File to store current stream length
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
r.stream.stats
r.stream.stats - Calculate Horton's and optionally Hack's statistics
Raster (r.*)
ParameterRaster|stream_rast|Input map: stream mask|False
ParameterRaster|direction|Input map: flow direction|False
ParameterRaster|elevation|Input map: elevation|False
OutputFile|output|Output stats
4 changes: 4 additions & 0 deletions python/plugins/processing/grass7/description/r.sum.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
r.sum
r.sum - Sums up the raster cell values.
Raster (r.*)
ParameterRaster|rast|Name of incidence or density file|False
23 changes: 23 additions & 0 deletions python/plugins/processing/grass7/description/r.sun.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
r.sun
r.sun - Solar irradiance and irradiation model.
Raster (r.*)
ParameterRaster|elev_in|Elevation layer [meters]|False
ParameterRaster|asp_in|Aspect layer [decimal degrees]|False
ParameterRaster|slope_in|Name of the input slope raster map (terrain slope or solar panel inclination) [decimal degrees]|False
ParameterRaster|linke_in|Name of the Linke atmospheric turbidity coefficient input raster map|True
ParameterRaster|albedo|Name of the ground albedo coefficient input raster map|True
ParameterRaster|lat_in|Name of input raster map containing latitudes [decimal degrees]|True
ParameterRaster|long_in|Name of input raster map containing longitudes [decimal degrees]|True
ParameterRaster|coef_bh|Name of real-sky beam radiation coefficient input raster map|True
ParameterRaster|coef_dh|Name of real-sky diffuse radiation coefficient input raster map|True
ParameterNumber|day|No. of day of the year (1-365)|1|365|1
*ParameterNumber|step|Time step when computing all-day radiation sums [decimal hours]|0|None|0.5
*ParameterNumber|declination|Declination value (overriding the internally computed value) [radians]|None|None|0.0
*ParameterNumber|distance_step|Sampling distance step coefficient (0.5-1.5)|0.5|1.5|1.0
ParameterBoolean|-p|Do not iIncorporate the shadowing effect of terrain|False
*ParameterBoolean|-m|Use the low-memory version of the program|False
OutputRaster|beam_rad|Output irradiation layer [Wh.m-2.day-1]
OutputRaster|insol_time|Output insolation time layer [h]
OutputRaster|diff_rad|Outpu diffuse irradiation layer [Wh.m-2.day-1]
OutputRaster|refl_rad|Output ground reflected irradiation layer [Wh.m-2.day-1]
OutputRaster|glob_rad|Output global (total) irradiance/irradiation layer [Wh.m-2.day-1]
17 changes: 17 additions & 0 deletions python/plugins/processing/grass7/description/r.sunmask.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
r.sunmask
r.sunmask - Calculates cast shadow areas from sun position and elevation raster map.
Raster (r.*)
ParameterRaster|elev|elev|False
ParameterNumber|altitude|altitude|0|90|0.0
ParameterNumber|azimuth|azimuth|0|360|0.0
ParameterNumber|year|year|1950|2050|2000
ParameterNumber|month|month|0|12|1
ParameterNumber|day|day|0|31|1
ParameterNumber|hour|hour|0|24|1
ParameterNumber|minute|minute|0|60|0
ParameterNumber|second|second|0|60|0
ParameterNumber|timezone|East positive, offset from GMT|0|None|0.0
ParameterNumber|east|Easting coordinate (point of interest)|None|None|0.0
ParameterNumber|north|Northing coordinate (point of interest)|None|None|0.0
ParameterBoolean|-z|Don't ignore zero elevation|True
OutputRaster|output|Output layer
5 changes: 5 additions & 0 deletions python/plugins/processing/grass7/description/r.surf.area.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
r.surf.area
r.surf.area - Surface area estimation for rasters.
Raster (r.*)
ParameterRaster|map|Input layer|False
ParameterNumber|vscale|Vertical scale|None|None|1
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
r.surf.contour
r.surf.contour - Surface generation program from rasterized contours.
Raster (r.*)
ParameterRaster|input|Raster layer with rasterized contours|False
OutputRaster|output|Output raster layer
6 changes: 6 additions & 0 deletions python/plugins/processing/grass7/description/r.surf.gauss.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
r.surf.gauss
r.surf.gauss - Creates a raster layer of Gaussian deviates.
Raster (r.*)
ParameterString|mean|Distribution mean|0.0
ParameterString|sigma|Standard deviation|1.0
OutputRaster|output|Output raster layer
7 changes: 7 additions & 0 deletions python/plugins/processing/grass7/description/r.surf.idw.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
r.surf.idw
r.surf.idw - Surface interpolation utility for raster layers.
Raster (r.*)
ParameterRaster|input|Name of input raster layer|False
ParameterNumber|npoints|Number of interpolation points|1|None|12
ParameterBoolean|-e|Output is the interpolation error|False
OutputRaster|output|Output raster layer
6 changes: 6 additions & 0 deletions python/plugins/processing/grass7/description/r.surf.idw2.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
r.surf.idw2
r.surf.idw2 - Surface generation.
Raster (r.*)
ParameterRaster|input|Input raster layer|False
ParameterNumber|npoints|Number of interpolation points|1|None|12
OutputRaster|output|Output raster layer
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
r.surf.random
r.surf.random - Produces a raster layer of uniform random deviates whose range can be expressed by the user.
Raster (r.*)
ParameterNumber|min|Minimum random value|None|None|0
ParameterNumber|max|Maximum random value|None|None|100
ParameterBoolean|-i|Create an integer raster layer|False
OutputRaster|output|Output raster layer
11 changes: 11 additions & 0 deletions python/plugins/processing/grass7/description/r.terraflow.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
r.terraflow
r.terraflow - Flow computation for massive grids.
Raster (r.*)
ParameterRaster|elevation|Name of elevation raster map|False
ParameterBoolean|-s|SFD (D8) flow (default is MFD)|False
OutputRaster|filled|Name for output filled (flooded) elevation raster map
OutputRaster|direction|Name for output flow direction raster map
OutputRaster|swatershed|Name for output sink-watershed raster map
OutputRaster|accumulation|Name for output flow accumulation raster map
OutputRaster|tci|Name for output topographic convergence index (tci) raster map
OutputFile|stats|Name of file containing runtime statistics
6 changes: 6 additions & 0 deletions python/plugins/processing/grass7/description/r.thin.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
r.thin
r.thin - Thins non-zero cells that denote linear features in a raster layer.
Raster (r.*)
ParameterRaster|input|Input raster layer to thin|False
ParameterString|iterations|Maximal number of iterations|200
OutputRaster|output|Output thinned raster
7 changes: 7 additions & 0 deletions python/plugins/processing/grass7/description/r.to.vect.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
r.to.vect
r.to.vect - Converts a raster into a vector layer.
Raster (r.*)
ParameterRaster|input|Input raster layer|False
ParameterSelection|feature|Feature type|line;point;area
ParameterBoolean|-s|Smooth corners of area features|False
OutputVector|output|Output vector layer
5 changes: 5 additions & 0 deletions python/plugins/processing/grass7/description/r.topidx.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
r.topidx
r.topidx - Creates topographic index layer from elevation raster layer
Raster (r.*)
ParameterRaster|input|Input elevation layer|False
OutputRaster|Output topographic index layer|output
9 changes: 9 additions & 0 deletions python/plugins/processing/grass7/description/r.viewshed.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
r.viewshed
r.viewshed - Computes the viewshed of a point on an elevation raster map.
Raster (r.*)
ParameterRaster|input|Elevation|False
ParameterString|coordinates|Coordinate identifying the viewing position|0,0
ParameterString|obs_elev|Viewing position height above the ground|1.75
ParameterString|max_dist|Maximum distance from the viewing point (meters)|10000
ParameterBoolean|-c|Consider earth curvature (current ellipsoid)|False
OutputRaster|output|Output raster layer
7 changes: 7 additions & 0 deletions python/plugins/processing/grass7/description/r.volume.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
r.volume
r.volume - Calculates the volume of data "clumps".
Raster (r.*)
ParameterRaster|data|Layer representing data that will be summed within clumps|False
ParameterRaster|clump|Clumps layer (preferably the output of r.clump)|False
*ParameterBoolean|-f|Generate unformatted report|False
OutputVector|centroids|Vector points map to contain clump centroids
16 changes: 16 additions & 0 deletions python/plugins/processing/grass7/description/r.walk.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
r.walk
r.walk - Outputs a raster layer showing the anisotropic cumulative cost of moving based on friction cost.
Raster (r.*)
ParameterRaster|elevation|Elevation raster layer|False
ParameterRaster|friction|Friction costs layer|False
ParameterVector|start_points|Starting points|-1|False
ParameterString|max_cost|An optional maximum cumulative cost|0
ParameterString|percent_memory|Percent of map to keep in memory|100
ParameterString|nseg|Number of the segment to create (segment library)|4
*ParameterString|walk_coeff|Coefficients for walking energy formula parameters a,b,c,d|0.72,6.0,1.9998,-1.9998
*ParameterString|lambda|Lambda coefficients for combining walking energy and friction cost|1.0
ParameterString|slope_factor|Slope factor determines travel energy cost per height step|-0.2125
*ParameterBoolean|-k|Use the 'Knight's move'; slower, but more accurate|True
*ParameterBoolean|-n|Keep null values in output map|True
*ParameterBoolean|-r|Start with values in raster map|True
OutputRaster|output|Output cost layer
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
r.water.outlet
r.water.outlet - Watershed basin creation program.
Raster (r.*)
ParameterRaster|input|Name of input raster map|False
ParameterNumber|easting|Easting coordinate of outlet point|None|None|0
ParameterNumber|northing|Northing coordinate of outlet point|None|None|0
OutputRaster|output|Output basin layer
21 changes: 21 additions & 0 deletions python/plugins/processing/grass7/description/r.watershed.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
r.watershed
r.watershed - Watershed basin analysis program.
Raster (r.*)
ParameterRaster|elevation|Elevation|False
ParameterRaster|depression|Locations of real depressions|True
ParameterRaster|flow|Amount of overland flow per cell|True
ParameterRaster|disturbed.land|Percent of disturbed land, for USLE|True
ParameterRaster|blocking|Terrain blocking overland surface flow, for USLE|True
ParameterNumber|threshold|Minimum size of exterior watershed basin|None|None|0
ParameterNumber|max.slope.length|Maximum length of surface flow, for USLE|None|None|0
ParameterBoolean|-4|Allow only horizontal and vertical flow of water|False
ParameterBoolean|-b|Beautify flat areas|False
OutputRaster|accumulation|Number of cells that drain through each cell
OutputRaster|drainage|Drainage direction
OutputRaster|basin|Unique label for each watershed basin
OutputRaster|stream|Stream segments
OutputRaster|half.basin|Half-basins output layer
OutputRaster|visual|Visual display output layer
OutputRaster|length.slope|Slope length and steepness (LS) factor for USLE
OutputRaster|slope.steepness|Slope steepness (S) factor for USLE
OutputRaster|tci|Topographic index ln(a / tan(b))
11 changes: 11 additions & 0 deletions python/plugins/processing/grass7/description/v.buffer.column.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
v.buffer
v.buffer.column - Creates a buffer around features of given type.
Vector (v.*)
ParameterVector|input|Input vector layer|-1|False
ParameterTableField|bufcolumn|Name of column to use for buffer distances|input|-1|False
ParameterNumber|scale|Scaling factor for attribute column values|None|None|1.0
ParameterString|tolerance|Maximum distance between theoretical arc and polygon segments as multiple of buffer|0.01
ParameterBoolean|-s|Make outside corners straight|False
ParameterBoolean|-c|Don't make caps at the ends of polylines|False
OutputVector|output|Output buffer

10 changes: 10 additions & 0 deletions python/plugins/processing/grass7/description/v.buffer.distance.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
v.buffer
v.buffer.distance - Creates a buffer around features of given type.
Vector (v.*)
ParameterVector|input|Input vector layer|-1|False
ParameterString|distance|Buffer distance in map units|
ParameterString|tolerance|Maximum distance between theoretical arc and polygon segments as multiple of buffer|0.01
ParameterBoolean|-s|Make outside corners straight|False
ParameterBoolean|-c|Don't make caps at the ends of polylines|False
OutputVector|output|Output buffer

11 changes: 11 additions & 0 deletions python/plugins/processing/grass7/description/v.class.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
v.class
v.class - Classifies attribute data, e.g. for thematic mapping.
Vector (v.*)
ParameterVector|map|Input vector layer|-1|False
ParameterTableField|column|Column name or expression|map|-1|False
ParameterString|where|WHERE conditions of SQL statement without 'where' keyword|
ParameterSelection|algorithm|Algorithm to use for classification|int;std;qua;equ;dis
ParameterNumber|nbclasses|Number of classes to define|2.0|None|3
ParameterBoolean|-g|Print only class breaks (without min and max)|True
OutputHTML|html|Classification

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
v.clean
v.clean.advanced - Toolset for cleaning topology of vector map (Advanced).
Vector (v.*)
ParameterVector|input|Layer to clean|-1|False
ParameterString|tool|Cleaning tools (comma separated)|break
ParameterNumber|thresh|Threshold|None|None|0.0001
OutputVector|output|Cleaned vector layer
OutputVector|error|Errors layer
8 changes: 8 additions & 0 deletions python/plugins/processing/grass7/description/v.clean.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
v.clean
v.clean - Toolset for cleaning topology of vector map.
Vector (v.*)
ParameterVector|input|Layer to clean|-1|False
ParameterSelection|tool|Cleaning tool|break;snap;rmdangle;chdangle;rmbridge;chbridge;rmdupl;rmdac;bpol;prune;rmarea;rmline;rmsa
ParameterNumber|thresh|Threshold|None|None|0.1
OutputVector|output|Cleaned vector layer
OutputVector|error|Errors layer
16 changes: 16 additions & 0 deletions python/plugins/processing/grass7/description/v.db.select.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
v.db.select
v.db.select - Prints vector map attributes
Vector (v.*)
ParameterVector|map|Input vector map |-1|False
ParameterNumber|layer|Layer Number|1|None|1
ParameterString|columns|Name of attribute column(s), comma separated|
ParameterBoolean|-c|Do not include column names in output|False
ParameterString|separator|Output field separator|,
*ParameterString|where|WHERE conditions of SQL statement without 'where' keyword|
*ParameterString|vs|Output vertical record separator|
*ParameterString|nv|Null value indicator|
*ParameterBoolean|-v|Vertical output (instead of horizontal)|False
*ParameterBoolean|-r|Print minimal region extent of selected vector features instead of attributes|False
OutputFile|file|Output file|


7 changes: 7 additions & 0 deletions python/plugins/processing/grass7/description/v.delaunay.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
v.delaunay
v.delaunay - Creates a Delaunay triangulation from an input vector map containing points or centroids.
Vector (v.*)
ParameterVector|input|Input vector layer|0|False
ParameterBoolean|-r|Use only points in current region|True
OutputVector|output|Delaunay triangulation

7 changes: 7 additions & 0 deletions python/plugins/processing/grass7/description/v.dissolve.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
v.dissolve
v.dissolve - Dissolves boundaries between adjacent areas sharing a common category number or attribute.
Vector (v.*)
ParameterVector|input|Input vector layer|-1|False
ParameterTableField|column|Name of column used to dissolve common boundaries|input|-1|False
OutputVector|output|Dissolved layer

10 changes: 10 additions & 0 deletions python/plugins/processing/grass7/description/v.distance.toattr.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
v.distance
v.distance.toattr - Finds the nearest element in vector map 'to' for elements in vector map 'from'.
Vector (v.*)
ParameterVector|from|"from" input layer|0|False
ParameterVector|to|"to" input layer|-1|False
ParameterSelection|upload|Values describing the relation between two nearest features|to_attr
ParameterTableField|column|Column where values specified by 'upload' option will be uploaded|to|-1|False
ParameterTableField|to_column|Column name of nearest feature|to|-1|False
ParameterBoolean|-a|Calculate distances to all features within the threshold|False
OutputVector|output|Output layer
10 changes: 10 additions & 0 deletions python/plugins/processing/grass7/description/v.distance.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
v.distance
v.distance - Finds the nearest element in vector map 'to' for elements in vector map 'from'.
Vector (v.*)
ParameterVector|from|"from" input layer|0|False
ParameterVector|to|"to" input layer|-1|False
ParameterSelection|upload|Values describing the relation between two nearest features|cat;dist;to_x;to_y;to_along;to_angle
ParameterTableField|column|Column where values specified by 'upload' option will be uploaded|to|-1|False
ParameterBoolean|-a|Calculate distances to all features within the threshold|False
OutputVector|output|Output layer

11 changes: 11 additions & 0 deletions python/plugins/processing/grass7/description/v.drape.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
v.drape
v.drape - Converts vector map to 3D by sampling of elevation raster map.
Vector (v.*)
ParameterVector|input|Iput vector layer|-1|False
ParameterRaster|elevation|Elevation raster map for height extraction|False
ParameterSelection|method|Sampling method|nearest;bilinear;cubic
ParameterString|scale|Scale factor for sampled raster values|1.0
ParameterString|where|WHERE conditions of SQL statement without 'where' keyword|
ParameterString|null_value|Vector Z value for unknown height|
OutputVector|output|Output layer

8 changes: 8 additions & 0 deletions python/plugins/processing/grass7/description/v.extract.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
v.extract
v.extract - Selects vector objects from a vector layer a new layer containing only the selected objects.
Vector (v.*)
ParameterVector|input|Vector layer|-1|False
ParameterString|where|WHERE conditions of SQL statement without 'where' keyword|
ParameterBoolean|-d|Dissolve common boundaries|True
OutputVector|output|Output layer

19 changes: 19 additions & 0 deletions python/plugins/processing/grass7/description/v.generalize.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
v.generalize
v.generalize - Vector based generalization.
Vector (v.*)
ParameterVector|input|Input layer|-1|False
ParameterSelection|method|method|douglas;douglas_reduction;lang;reduction;reumann;remove_small;boyle;sliding_averaging;distance_weighting;chaiken;hermite;snakes;network;displacement
ParameterNumber|threshold|Maximal tolerance value|None|None|1.0
ParameterNumber|look_ahead|Look-ahead parameter|None|None|7
ParameterNumber|reduction|Percentage of the points in the output of 'douglas_reduction' algorithm|None|None|50
ParameterNumber|slide|Slide of computed point toward the original point|None|None|0.5
ParameterNumber|angle_thresh|Minimum angle between two consecutive segments in Hermite method|None|None|3
ParameterNumber|degree_thresh|Degree threshold in network generalization|None|None|0
ParameterNumber|closeness_thresh|Closeness threshold in network generalization|None|None|0
ParameterNumber|betweeness_thresh|Betweeness threshold in network generalization|None|None|0
ParameterNumber|alpha|Snakes alpha parameter|None|None|1.0
ParameterNumber|beta|Snakes beta parameter|None|None|1.0
ParameterNumber|iterations|Number of iterations|None|None|1
ParameterBoolean|-c|Copy attributes|True
OutputVector|output|Output layer

7 changes: 7 additions & 0 deletions python/plugins/processing/grass7/description/v.hull.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
v.hull
v.hull - Produces a convex hull for a given vector map.
Vector (v.*)
ParameterVector|input|Input layer|0|False
ParameterBoolean|-a|Use all vector points (do not limit to current region)|False
OutputVector|output|Convex hull

13 changes: 13 additions & 0 deletions python/plugins/processing/grass7/description/v.in.dxf.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
v.in.dxf
v.in.dxf - Converts files in DXF format to GRASS vector map format.
Vector (v.*)
ParameterFile|input|Name of input DXF file|False
ParameterString|layers|List of layers to import|
ParameterBoolean|-e|Ignore the map extent of DXF file|True
ParameterBoolean|-t|Do not create attribute tables|False
ParameterBoolean|-f|Import polyface meshes as 3D wire frame|True
ParameterBoolean|-l|List available layers and exit|False
ParameterBoolean|-i|Invert selection by layers (don't import layers in list)|False
ParameterBoolean|-1|Import all objects into one layer|True
OutputVector|output|Name for output vector map

5 changes: 5 additions & 0 deletions python/plugins/processing/grass7/description/v.in.wfs.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
v.in.wfs
v.in.wfs - Import GetFeature from WFS
Vector (v.*)
ParameterString|url|GetFeature URL starting with 'http'|http://
OutputVector|output|Name for output vector map
9 changes: 9 additions & 0 deletions python/plugins/processing/grass7/description/v.info.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
v.info
v.info - Outputs basic information about a user-specified vector map.
Vector (v.*)
ParameterVector|map|Name of input vector map|-1|False
ParameterBoolean|-c|Print types/names of table columns for specified layer instead of info|False
ParameterBoolean|-g|Print map region only|False
ParameterBoolean|-t|Print topology information only|False
OutputHTML|html|Info file

9 changes: 9 additions & 0 deletions python/plugins/processing/grass7/description/v.kcv.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
v.kcv
v.kcv - Randomly partition points into test/train sets.
Vector (v.*)
ParameterVector|input|Input layer|-1|False
ParameterNumber|k|Number of partitions|2.0|32767|10
ParameterString|column|Name for new column to which partition number is written|part
ParameterBoolean|-d|Use drand48()|False
OutputVector|output|Output layer

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
v.lidar.correction
v.lidar.correction - Correction of the v.lidar.growing output. It is the last of the three algorithms for LIDAR filtering.
Vector (v.*)
ParameterVector|input|Input vector layer (v.lidar.growing output)|-1|False
ParameterString|sce|Interpolation spline step value in east direction|25
ParameterString|scn|Interpolation spline step value in north direction|25
ParameterString|lambda_c|Regularization weight in reclassification evaluation|1
ParameterString|tch|High threshold for object to terrain reclassification|2
ParameterString|tcl|Low threshold for object to terrain reclassification|1
ParameterBoolean|-e|Estimate point density and distance|False
OutputVector|output|Output classified layer
OutputVector|terrain|Only 'terrain' points output layer

Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
v.lidar.edgedetection
v.lidar.edgedetection - Detects the object's edges from a LIDAR data set.
Vector (v.*)
ParameterVector|input|Input vector layer|0|False
ParameterString|see|Interpolation spline step value in east direction|4
ParameterString|sen|Interpolation spline step value in north direction|4
ParameterString|lambda_g|Regularization weight in gradient evaluation|0.01
ParameterString|tgh|High gradient threshold for edge classification|6
ParameterString|tgl|Low gradient threshold for edge classification|3
ParameterString|theta_g|Angle range for same direction detection|0.26
ParameterString|lambda_r|Regularization weight in residual evaluation|2
ParameterBoolean|-e|Estimate point density and distance|False
OutputVector|output|Output vector layer

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
v.lidar.growing
v.lidar.growing - Building contour determination and Region Growing algorithm for determining the building inside
Vector (v.*)
ParameterVector|input|Input vector (v.lidar.edgedetection output)|-1|False
ParameterVector|first|First pulse vector layer|-1|False
ParameterNumber|tj|Threshold for cell object frequency in region growing|None|None|0.2
ParameterNumber|td|Threshold for double pulse in region growing|None|None|0.6
OutputVector|output|Output vector layer

11 changes: 11 additions & 0 deletions python/plugins/processing/grass7/description/v.mkgrid.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
v.mkgrid
v.mkgrid - Creates a GRASS vector layer of a user-defined grid.
Vector (v.*)
ParameterString|grid|Number of rows and columns in grid|10,10
ParameterSelection|position|Where to place the grid|coor
ParameterString|coor|Lower left easting and northing coordinates of map|
ParameterString|box|Width and height of boxes in grid|
ParameterString|angle|Angle of rotation (in degrees counter-clockwise)|0
ParameterBoolean|-p|Create grid of points instead of areas and centroids|False
OutputVector|map|Output grid

7 changes: 7 additions & 0 deletions python/plugins/processing/grass7/description/v.neighbors.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
v.neighbors
v.neighbors - Makes each cell value a function of attribute values and stores in an output raster map.
Vector (v.*)
ParameterVector|input|Input vector layer|-1|False
ParameterNumber|size|Neighborhood diameter in map units|None|None|0.1
OutputRaster|output|Output raster layer

10 changes: 10 additions & 0 deletions python/plugins/processing/grass7/description/v.normal.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
v.normal
v.normal - Tests for normality for points.
Vector (v.*)
ParameterVector|map|point vector defining sample points|-1|False
ParameterString|tests|Lists of tests (1-15): e.g. 1,3-8,13|1-3
ParameterTableField|column|Attribute column|map|-1|False
ParameterBoolean|-r|Use only points in current region|True
ParameterBoolean|-l|lognormal|False
OutputHTML|html|Output

6 changes: 6 additions & 0 deletions python/plugins/processing/grass7/description/v.out.dxf.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
v.out.dxf
v.out.dxf - Exports GRASS vector map layers to DXF file format.
Vector (v.*)
ParameterVector|input|Name of input vector map|-1|False
OutputFile|output|Name of DXF output file

9 changes: 9 additions & 0 deletions python/plugins/processing/grass7/description/v.out.pov.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
v.out.pov
v.out.pov - Converts to POV-Ray format, GRASS x,y,z -> POV-Ray x,z,y
Vector (v.*)
ParameterVector|input|Name of input vector map|-1|False
ParameterString|type|Feature type|point,line,area,face
ParameterNumer|size|Radius of sphere for points and tube for lines|0|None|10.0
ParameterString|zmod|Modifier for z coordinates, this string is appended to each z coordinate|
ParameterString|objmod|Object modifier (OBJECT_MODIFIER in POV-Ray documentation)|
OutputFile|output|Output file
12 changes: 12 additions & 0 deletions python/plugins/processing/grass7/description/v.outlier.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
v.outlier
v.outlier - Removes outliers from vector point data.
Vector (v.*)
ParameterVector|input|Input vector layer|-1|False
ParameterNumber|soe|Interpolation spline step value in east direction|None|None|10
ParameterNumber|son|Interpolation spline step value in north direction|None|None|10
ParameterNumber|lambda_i|Tykhonov regularization weight|None|None|0.1
ParameterNumber|thres_o|Threshold for the outliers|None|None|50
ParameterBoolean|-e|Estimate point density and distance|False
OutputVector|output|Layer without outliers
OutputVector|outlier|Outliers

9 changes: 9 additions & 0 deletions python/plugins/processing/grass7/description/v.overlay.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
v.overlay
v.overlay - Overlays two vector maps.
Vector (v.*)
ParameterVector|ainput|Input layer (A)|-1|False
ParameterSelection|atype|Input layer (A) Type|area;line
ParameterVector|binput|Input layer (B)|2|False
ParameterSelection|operator|Operator to use|and;or;not;xor
ParameterBoolean|-t|Do not create attribute table|False
OutputVector|output|Overlay
13 changes: 13 additions & 0 deletions python/plugins/processing/grass7/description/v.parallel.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
v.parallel
v.parallel - Creates parallel line to input vector lines.
Vector (v.*)
ParameterVector|input|Input lines|1|False
ParameterNumber|distance|Offset along major axis in map units|None|None|1
ParameterNumber|minordistance|Offset along minor axis in map units|None|None|1
ParameterNumber|angle|Angle of major axis in degrees|None|None|0
ParameterSelection|side|Side|left;right;both
ParameterNumber|tolerance|Tolerance of arc polylines in map units|None|None|1
ParameterBoolean|-r|Make outside corners round|False
ParameterBoolean|-b|Create buffer-like parallel lines|False
OutputVector|output|Layer with parallel lines

8 changes: 8 additions & 0 deletions python/plugins/processing/grass7/description/v.patch.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
v.patch
v.patch - Create a new vector map layer by combining other vector map layers.
Vector (v.*)
ParameterMultipleInput|input|Input layers|-1.0|False
ParameterBoolean|-e|Copy also attribute table|True
OutputVector|output|Name for output vector map
OutputVector|bbox|Bounding boxes

10 changes: 10 additions & 0 deletions python/plugins/processing/grass7/description/v.perturb.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
v.perturb
v.perturb - Random location perturbations of GRASS vector points
Vector (v.*)
ParameterVector|input|Vector points to be spatially perturbed|-1|False
ParameterSelection|distribution|Distribution of perturbation|uniform;normal
ParameterString|parameters|Parameter(s) of distribution (uniform: maximum; normal: mean and stddev)|
ParameterNumber|minimum|Minimum deviation in map units|None|None|0.0
ParameterNumber|seed|Seed for random number generation|None|None|0
OutputVector|output|Output layer

8 changes: 8 additions & 0 deletions python/plugins/processing/grass7/description/v.qcount.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
v.qcount
v.qcount - Indices for quadrant counts of sites lists.
Vector (v.*)
ParameterVector|input|Vector points layer|0|False
ParameterNumber|n|Number of quadrants|0|None|4
ParameterNumber|r|Quadrat radius|0.0|None|10
OutputVector|output|Output quadrant layer

9 changes: 9 additions & 0 deletions python/plugins/processing/grass7/description/v.random.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
v.random
v.random - Randomly generate a 2D/3D vector points map.
Vector (v.*)
ParameterNumber|n|Number of points to be created|None|None|100
ParameterNumber|zmin|Minimum z height for 3D output|None|None|0.0
ParameterNumber|zmax|Maximum z height for 3D output|None|None|0.0
ParameterString|column|Column for Z values|z
*ParameterBoolean|-d|Use drand48() function instead of rand()|False
OutputVector|output|Output layer
9 changes: 9 additions & 0 deletions python/plugins/processing/grass7/description/v.reclass.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
v.reclass
v.reclass - Changes vector category values for an existing vector map according to results of SQL queries or a value in attribute table column.
Vector (v.*)
ParameterVector|input|Input layer|-1|False
ParameterString|type|Feature type|point,line,boundary,centroid
ParameterTableField|column|The name of the column whose values are to be used as new categories|input|-1|False
ParameterFile|rules|Reclass rule file|False
OutputVector|output|Reclassified layer

8 changes: 8 additions & 0 deletions python/plugins/processing/grass7/description/v.report.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
v.report
v.report - Reports geometry statistics for vectors.
Vector (v.*)
ParameterVector|map|Input layer|-1|False
ParameterSelection|option|Value to calculate|area;length;coor
ParameterSelection|units|units|miles;feet;meters;kilometers;acres;hectares;percent
ParameterSelection|sort|Sort the result (ascending, descending)|asc;desc
OutputHTML|html|Report HTML file
11 changes: 11 additions & 0 deletions python/plugins/processing/grass7/description/v.sample.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
v.sample
v.sample - Samples a raster layer at vector point locations.
Vector (v.*)
ParameterVector|input|Vector layer defining sample points|0|False
ParameterTableField|column|Vector layer attribute column to use for comparison|input|-1|False
ParameterRaster|raster|Raster map to be sampled|False
ParameterNumber|z|Sampled raster values will be multiplied by this factor|None|None|1.0
ParameterBoolean|-b|Bilinear interpolation (default is nearest neighbor)|False
ParameterBoolean|-c|Cubic convolution interpolation (default is nearest neighbor)|False
OutputVector|output|Output vector layer

7 changes: 7 additions & 0 deletions python/plugins/processing/grass7/description/v.segment.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
v.segment
v.segment - Creates points/segments from input vector lines and positions.
Vector (v.*)
ParameterVector|input|Input lines layer|1|False
ParameterFile|file|File containing segment rules|False
OutputVector|output|Output vector layer

10 changes: 10 additions & 0 deletions python/plugins/processing/grass7/description/v.select.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
v.select
v.select - Selects features from vector map (A) by features from other vector map (B).
Vector (v.*)
ParameterVector|ainput|Input layer (A)|-1|False
ParameterSelection|atype|Input layer (A) Type|area;line;point
ParameterVector|binput|Input layer (B)|-1|False
ParameterSelection|btype|Input layer (B) Type|area;line;point
ParameterSelection|operator|Operator to use|overlap;equals;disjoint;intersect;touches;crosses;within;contains;relate
ParameterBoolean|-r|Reverse selection|False
OutputVector|output|Name for output vector map
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
v.split
v.split.length - Split lines to shorter segments by length.
Vector (v.*)
ParameterVector|input|Input lines layer|1|False
ParameterNumber|length|Maximum segment length|None|None|10.0
OutputVector|output|Output layer

7 changes: 7 additions & 0 deletions python/plugins/processing/grass7/description/v.split.vert.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
v.split
v.split.vert - Split lines to shorter segments by max number of vertices.
Vector (v.*)
ParameterVector|input|Input lines layer|1|False
ParameterNumber|vertices|Maximum number of vertices in segment|None|None|10
OutputVector|output|Output layer

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
v.surf.bspline
v.surf.bspline.lambda - Bicubic or bilinear spline interpolation with Tykhonov regularization.
Vector (v.*)
ParameterVector|input|Input points layer|-1|False
ParameterNumber|sie|Length of each spline step in the east-west direction|None|None|4
ParameterNumber|sin|Length of each spline step in the north-south direction|None|None|4
ParameterSelection|method|Spline interpolation algorithm|bilinear;bicubic
ParameterTableField|column|Attribute table column with values to interpolate|input|-1|False
ParameterBoolean|-c|Find the best Tykhonov regularizing parameter using a "leave-one-out" cross validation method|True
ParameterBoolean|-e|Estimate point density and distance|False
ParameterSelection|layer|layer|1;0
OutputHTML|html|Lambda or Point Density and Distance
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
v.surf.bspline
v.surf.bspline.sparse - Bicubic or bilinear spline interpolation with Tykhonov regularization.
Vector (v.*)
ParameterVector|input|Input points layer|-1|False
ParameterVector|sparse|Input layer of sparse points|-1|False
ParameterNumber|sie|Length of each spline step in the east-west direction|None|None|4
ParameterNumber|sin|Length of each spline step in the north-south direction|None|None|4
ParameterSelection|method|Spline interpolation algorithm|bilinear;bicubic
ParameterNumber|lambda_i|Tykhonov regularization parameter (affects smoothing)|None|None|0.01
ParameterTableField|column|Attribute table column with values to interpolate|input|-1|False
ParameterSelection|layer|layer|1;0
OutputRaster|raster|Output raster layer
11 changes: 11 additions & 0 deletions python/plugins/processing/grass7/description/v.surf.bspline.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
v.surf.bspline
v.surf.bspline - Bicubic or bilinear spline interpolation with Tykhonov regularization.
Vector (v.*)
ParameterVector|input|Input points layer|-1|False
ParameterNumber|sie|Length of each spline step in the east-west direction|None|None|4
ParameterNumber|sin|Length of each spline step in the north-south direction|None|None|4
ParameterSelection|method|Spline interpolation algorithm|bilinear;bicubic
ParameterNumber|lambda_i|Tykhonov regularization parameter (affects smoothing)|None|None|0.01
ParameterTableField|column|Attribute table column with values to interpolate|input|-1|False
ParameterSelection|layer|layer|1;0
OutputRaster|raster|Output raster layer
9 changes: 9 additions & 0 deletions python/plugins/processing/grass7/description/v.surf.idw.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
v.surf.idw
v.surf.idw - Surface interpolation from vector point data by Inverse Distance Squared Weighting.
Vector (v.*)
ParameterVector|input|Input vector layer|0|False
ParameterNumber|npoints|Number of interpolation points|None|None|12
ParameterNumber|power|Power parameter; greater values assign greater influence to closer points|None|None|2.0
ParameterTableField|column|Attribute table column with values to interpolate|input|-1|False
ParameterBoolean|-n|Don't index points by raster cell|False
OutputRaster|output|Output raster
16 changes: 16 additions & 0 deletions python/plugins/processing/grass7/description/v.surf.rst.cvdev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
v.surf.rst
v.surf.rst.cvdev - Spatial approximation and topographic analysis using regularized spline with tension.
Vector (v.*)
ParameterVector|input|Input vector layer|0|False
ParameterString|where|WHERE conditions of SQL statement without 'where' keyword|
ParameterRaster|mask|Name of the raster map used as mask|True
ParameterTableField|zcolumn|Name of the attribute column with values to be used for approximation|input|-1|False
ParameterNumber|tension|Tension parameter|None|None|40
ParameterNumber|segmax|Maximum number of points in a segment|None|None|40
ParameterNumber|npmin|Minimum number of points for approximation in a segment (>segmax)|None|None|300
ParameterNumber|dmin|Minimum distance between points (to remove almost identical points)|None|None|0.001
ParameterNumber|dmax|Maximum distance between points on isoline (to insert additional points)|None|None|2.5
ParameterNumber|theta|Anisotropy angle (in degrees counterclockwise from East)|0|360|0
ParameterNumber|scalex|Anisotropy scaling factor|None|None|0
ParameterBoolean|-c|-c[leave this as True]|True
OutputVector|cvdev|Cross-validation errors
23 changes: 23 additions & 0 deletions python/plugins/processing/grass7/description/v.surf.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
v.surf.rst
v.surf.rst - Spatial approximation and topographic analysis using regularized spline with tension.
Vector (v.*)
ParameterVector|input|Input points layer|0|False
ParameterString|where|WHERE conditions of SQL statement without 'where' keyword|
ParameterRaster|mask|Name of the raster map used as mask|True
ParameterTableField|zcolumn|Name of the attribute column with values to be used for approximation|input|-1|False
ParameterNumber|tension|Tension parameter|None|None|40
ParameterNumber|segmax|Maximum number of points in a segment|None|None|40
ParameterNumber|npmin|Minimum number of points for approximation in a segment (>segmax)|None|None|300
ParameterNumber|dmin|Minimum distance between points (to remove almost identical points)|None|None|0.001
ParameterNumber|dmax|Maximum distance between points on isoline (to insert additional points)|None|None|2.5
ParameterNumber|zmult|Conversion factor for values used for approximation|None|None|1.0
ParameterNumber|theta|Anisotropy angle (in degrees counterclockwise from East)|0|360|0
ParameterNumber|scalex|Anisotropy scaling factor|None|None|0
ParameterBoolean|-t|Use scale dependent tension|False
ParameterBoolean|-d|Output partial derivatives instead of topographic parameters|False
OutputRaster|elevation|Surface
OutputRaster|slope|Slope
OutputRaster|aspect|Aspect
OutputRaster|pcurv|Profile curvature
OutputRaster|tcurv|Tangential curvature
OutputRaster|mcurv|Mean curvature
8 changes: 8 additions & 0 deletions python/plugins/processing/grass7/description/v.to.points.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
v.to.points
v.to.points - Create points along input lines
Vector (v.*)
ParameterVector|input|Input lines layer|1|False
ParameterString|dmax|Maximum distance between points in map units|100
ParameterSelection|use|Use line nodes or vertices only|node;vertex
ParameterBoolean|-i|Interpolate points between line vertices|False
OutputVector|output|Output vector map where points will be written
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
v.to.rast
v.to.rast.attribute - Converts (rasterize) a vector layer into a raster layer.
Vector (v.*)
ParameterVector|input|Input vector layer|-1|False
ParameterSelection|use|Source of raster values|attr
ParameterTableField|column|Name of column for 'attr' parameter (data type must be numeric)|input|0|-1|False
OutputRaster|output|Rasterized layer
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
v.to.rast
v.to.rast.value - Converts (rasterize) a vector layer into a raster layer.
Vector (v.*)
ParameterVector|input|Input vector layer|-1|False
ParameterSelection|use|Source of raster values|val
ParameterNumber|value|Raster value|None|None|1.0
OutputRaster|output|Rasterized layer
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
v.transform
v.transform.pointsfile - Performs an affine transformation on a vector layer, using a support point file.
Vector (v.*)
ParameterVector|input|input vector layer|-1|False
ParameterFile|pointsfile|Points file|False|False
ParameterNumber|zrot|Rotation around z axis in degrees counterclockwise|None|None|0.0
OutputVector|output|Transformed layer
12 changes: 12 additions & 0 deletions python/plugins/processing/grass7/description/v.transform.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
v.transform
v.transform - Performs an affine transformation on a vector layer.
Vector (v.*)
ParameterVector|input|Input vector layer|-1|False
ParameterNumber|xshift|X shift|None|None|0.0
ParameterNumber|yshift|Y shift|None|None|0.0
ParameterNumber|zshift|Z shift|None|None|0.0
ParameterNumber|xscale|X scale|None|None|1.0
ParameterNumber|yscale|Y scale|None|None|1.0
ParameterNumber|zscale|Z scale|None|None|1.0
ParameterNumber|zrot|Rotation around z axis in degrees counterclockwise|None|None|0.0
OutputVector|output|Transformed layer
11 changes: 11 additions & 0 deletions python/plugins/processing/grass7/description/v.univar.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
v.univar
v.univar - Calculates univariate statistics for attribute. Variance and standard deviation is calculated only for points if specified.
Vector (v.*)
ParameterVector|map|Name of input vector map|-1|False
ParameterString|type|Feature type|point,line,area
ParameterTableField|column|Column name|map|-1|False
ParameterString|where|WHERE conditions of SQL statement without 'where' keyword|
ParameterString|percentile|Percentile to calculate|90
ParameterBoolean|-g|Print the stats in shell script style|True
ParameterBoolean|-e|Calculate extended statistics|False
OutputHTML|html|Statistics
8 changes: 8 additions & 0 deletions python/plugins/processing/grass7/description/v.voronoi.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
v.voronoi
v.voronoi - Creates a Voronoi diagram from an input vector layer containing points.
Vector (v.*)
ParameterVector|input|Input points layer|0|False
ParameterBoolean|-l|Output tessellation as a graph (lines), not areas|False
ParameterBoolean|-t|Do not create attribute table|False
OutputVector|output|Voronoi diagram

3 changes: 3 additions & 0 deletions python/plugins/processing/grass7/ext/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FILE(GLOB PY_FILES *.py)

PLUGIN_INSTALL(processing grass7/ext ${PY_FILES})
40 changes: 40 additions & 0 deletions python/plugins/processing/grass7/ext/HtmlReportPostProcessor.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# -*- coding: utf-8 -*-

"""
***************************************************************************
HtmlReportPostProcessor.py
---------------------
Date : December 2012
Copyright : (C) 2012 by Victor Olaya
Email : volayaf at gmail dot com
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************
"""

__author__ = 'Victor Olaya'
__date__ = 'December 2012'
__copyright__ = '(C) 2012, Victor Olaya'

# This will get replaced with a git SHA1 when you do a git archive

__revision__ = '$Format:%H$'


def postProcessResults(alg):
htmlFile = alg.getOutputFromName('html').value
grass7Name = alg.grass7Name
found = False
f = open(htmlFile, 'w')
f.write('<h2>' + grass7Name + '</h2>\n')
for line in alg.consoleOutput:
if found and not line.strip().endswith('exit'):
f.write(line + '<br>\n')
if grass7Name in line and not line.startswith('GRASS'):
found = True
f.close()
Empty file.
32 changes: 32 additions & 0 deletions python/plugins/processing/grass7/ext/r_coin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# -*- coding: utf-8 -*-

"""
***************************************************************************
r_coin.py
---------------------
Date : December 2012
Copyright : (C) 2012 by Victor Olaya
Email : volayaf at gmail dot com
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************
"""

__author__ = 'Victor Olaya'
__date__ = 'December 2012'
__copyright__ = '(C) 2012, Victor Olaya'

# This will get replaced with a git SHA1 when you do a git archive

__revision__ = '$Format:%H$'

from processing.grass7.ext import HtmlReportPostProcessor


def postProcessResults(alg):
HtmlReportPostProcessor.postProcessResults(alg)
32 changes: 32 additions & 0 deletions python/plugins/processing/grass7/ext/r_covar.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# -*- coding: utf-8 -*-

"""
***************************************************************************
r_covar.py
---------------------
Date : December 2012
Copyright : (C) 2012 by Victor Olaya
Email : volayaf at gmail dot com
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************
"""

__author__ = 'Victor Olaya'
__date__ = 'December 2012'
__copyright__ = '(C) 2012, Victor Olaya'

# This will get replaced with a git SHA1 when you do a git archive

__revision__ = '$Format:%H$'

from processing.grass7.ext import HtmlReportPostProcessor


def postProcessResults(alg):
HtmlReportPostProcessor.postProcessResults(alg)
Loading