Merge pull request #5426 from medspx/ProcessingPortGrass72

[Processing] Port GRASS 7.2 algorithm provider
This commit is contained in:
Nyall Dawson 2017-11-09 06:42:38 +10:00 committed by GitHub
commit cab807dc30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
393 changed files with 4304 additions and 3525 deletions

View File

@ -61,6 +61,7 @@ class GdalUtils(object):
GDAL_HELP_PATH = 'GDAL_HELP_PATH'
supportedRasters = None
supportedOutputRasters = None
@staticmethod
def runGdal(commands, feedback=None):
@ -135,7 +136,10 @@ class GdalUtils(object):
gdal.AllRegister()
GdalUtils.supportedRasters = {}
GdalUtils.supportedOutputRasters = {}
GdalUtils.supportedRasters['GTiff'] = ['tif']
GdalUtils.supportedOutputRasters['GTiff'] = ['tif']
for i in range(gdal.GetDriverCount()):
driver = gdal.GetDriver(i)
if driver is None:
@ -146,18 +150,31 @@ class GdalUtils(object):
or metadata[gdal.DCAP_RASTER] != 'YES':
continue
# ===================================================================
# if gdal.DCAP_CREATE not in metadata \
# or metadata[gdal.DCAP_CREATE] != 'YES':
# continue
# ===================================================================
if gdal.DMD_EXTENSION in metadata:
extensions = metadata[gdal.DMD_EXTENSION].split('/')
if extensions:
GdalUtils.supportedRasters[shortName] = extensions
# Only creatable rasters can be referenced in output rasters
if ((gdal.DCAP_CREATE in metadata
and metadata[gdal.DCAP_CREATE] == 'YES')
or (gdal.DCAP_CREATECOPY in metadata
and metadata[gdal.DCAP_CREATECOPY] == 'YES')):
GdalUtils.supportedOutputRasters[shortName] = extensions
return GdalUtils.supportedRasters
@staticmethod
def getSupportedOutputRasters():
if not gdalAvailable:
return {}
if GdalUtils.supportedOutputRasters is not None:
return GdalUtils.supportedOutputRasters
else:
GdalUtils.getSupportedRasters()
return GdalUtils.supportedOutputRasters
@staticmethod
def getSupportedRasterExtensions():
allexts = ['tif']
@ -167,6 +184,15 @@ class GdalUtils(object):
allexts.append(ext)
return allexts
@staticmethod
def getSupportedOutputRasterExtensions():
allexts = ['tif']
for exts in list(GdalUtils.getSupportedOutputRasters().values()):
for ext in exts:
if ext not in allexts and ext != '':
allexts.append(ext)
return allexts
@staticmethod
def getVectorDriverFromFileName(filename):
ext = os.path.splitext(filename)[1]

File diff suppressed because it is too large Load Diff

View File

@ -30,9 +30,10 @@ import os
from qgis.PyQt.QtCore import QCoreApplication
from qgis.core import (QgsApplication,
QgsProcessingProvider,
QgsVectorFileWriter,
QgsMessageLog,
QgsProcessingUtils)
from processing.core.ProcessingConfig import ProcessingConfig, Setting
from processing.core.ProcessingConfig import (ProcessingConfig, Setting)
from .Grass7Utils import Grass7Utils
from .Grass7Algorithm import Grass7Algorithm
from processing.tools.system import isWindows, isMac
@ -70,6 +71,12 @@ class Grass7AlgorithmProvider(QgsProcessingProvider):
Grass7Utils.GRASS_HELP_PATH,
self.tr('Location of GRASS docs'),
Grass7Utils.grassHelpPath()))
# Add a setting for using v.external instead of v.in.ogr
ProcessingConfig.addSetting(Setting(
self.name(),
Grass7Utils.GRASS_USE_VEXTERNAL,
self.tr('For vector layers, use v.external (faster) instead of v.in.ogr'),
True))
ProcessingConfig.readSettings()
self.refreshAlgorithms()
return True
@ -81,6 +88,7 @@ class Grass7AlgorithmProvider(QgsProcessingProvider):
ProcessingConfig.removeSetting(Grass7Utils.GRASS_LOG_COMMANDS)
ProcessingConfig.removeSetting(Grass7Utils.GRASS_LOG_CONSOLE)
ProcessingConfig.removeSetting(Grass7Utils.GRASS_HELP_PATH)
ProcessingConfig.removeSetting(Grass7Utils.GRASS_USE_VEXTERNAL)
def isActive(self):
return ProcessingConfig.getSetting('ACTIVATE_GRASS7')
@ -123,8 +131,21 @@ class Grass7AlgorithmProvider(QgsProcessingProvider):
def svgIconPath(self):
return QgsApplication.iconPath("providerGrass.svg")
def supportsNonFileBasedOutput(self):
"""
GRASS7 Provider doesn't support non file based outputs
"""
return False
def supportedOutputVectorLayerExtensions(self):
return ['shp']
# We use the same extensions than QGIS because:
# - QGIS is using OGR like GRASS
# - There are very chances than OGR version used in GRASS is
# different from QGIS OGR version.
return QgsVectorFileWriter.supportedFormatExtensions()
def supportedOutputRasterLayerExtensions(self):
return Grass7Utils.getSupportedOutputRasterExtensions()
def canBeActivated(self):
return not bool(Grass7Utils.checkGrass7IsInstalled())

View File

@ -29,6 +29,7 @@ __revision__ = '$Format:%H$'
import stat
import shutil
import shlex
import subprocess
import os
@ -39,6 +40,7 @@ from qgis.PyQt.QtCore import QCoreApplication
from processing.core.ProcessingConfig import ProcessingConfig
from processing.tools.system import userFolder, isWindows, isMac, mkdir
from processing.tests.TestData import points
from processing.algs.gdal.GdalUtils import GdalUtils
class Grass7Utils(object):
@ -52,75 +54,154 @@ class Grass7Utils(object):
GRASS_LOG_COMMANDS = 'GRASS7_LOG_COMMANDS'
GRASS_LOG_CONSOLE = 'GRASS7_LOG_CONSOLE'
GRASS_HELP_PATH = 'GRASS_HELP_PATH'
GRASS_USE_VEXTERNAL = 'GRASS_USE_VEXTERNAL'
# TODO Review all default options formats
GRASS_RASTER_FORMATS_CREATEOPTS = {
'GTiff': 'TFW=YES,COMPRESS=LZW',
'PNG': 'ZLEVEL=9',
'WEBP': 'QUALITY=85'
}
sessionRunning = False
sessionLayers = {}
projectionSet = False
isGrass7Installed = False
isGrassInstalled = False
version = None
path = None
command = None
@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 = os.path.join(userFolder(), 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 = os.path.join(userFolder(), filename)
return filename
"""
The Batch file is executed by GRASS binary.
On GNU/Linux and MacOSX it will be executed by a shell.
On MS-Windows, it will be executed by cmd.exe.
"""
gisdbase = Grass7Utils.grassDataFolder()
if isWindows():
batchFile = os.path.join(gisdbase, 'grass_batch_job.cmd')
else:
batchFile = os.path.join(gisdbase, 'grass_batch_job.sh')
return batchFile
@staticmethod
def installedVersion(run=False):
if Grass7Utils.isGrass7Installed and not run:
"""
Returns the installed version of GRASS by
launching the GRASS command with -v parameter.
"""
if Grass7Utils.isGrassInstalled and not run:
return Grass7Utils.version
if Grass7Utils.grassPath() is None:
if Grass7Utils.grassBin() is None:
return None
for command in ["grass73", "grass72", "grass71", "grass70", "grass"]:
with subprocess.Popen(
["{} -v".format(command)],
shell=True,
# Launch GRASS command with -v parameter
# For MS-Windows, hide the console
if isWindows():
si = subprocess.STARTUPINFO()
si.dwFlags |= subprocess.STARTF_USESHOWWINDOW
si.wShowWindow = subprocess.SW_HIDE
with subprocess.Popen(
[Grass7Utils.command, '-v'],
shell=False,
stdout=subprocess.PIPE,
stdin=subprocess.DEVNULL,
stderr=subprocess.STDOUT,
universal_newlines=True,
) as proc:
try:
lines = proc.stdout.readlines()
for line in lines:
if "GRASS GIS " in line:
line = line.split(" ")[-1].strip()
if line.startswith("7."):
Grass7Utils.version = line
Grass7Utils.command = command
return Grass7Utils.version
except:
pass
startupinfo=si if isWindows() else None
) as proc:
try:
lines = proc.stdout.readlines()
for line in lines:
if "GRASS GIS " in line:
line = line.split(" ")[-1].strip()
if line.startswith("7."):
Grass7Utils.version = line
return Grass7Utils.version
except:
pass
return None
@staticmethod
def grassBin():
"""
Find GRASS binary path on the operating system.
Sets global variable Grass7Utils.command
"""
cmdList = ["grass73", "grass72", "grass71", "grass70", "grass",
"grass73.sh", "grass72.sh", "grass71.sh", "grass70.sh", "grass.sh"]
def searchFolder(folder):
"""
Inline function to search for grass binaries into a folder
with os.walk
"""
command = None
if os.path.exists(folder):
for root, dirs, files in os.walk(folder):
for cmd in cmdList:
if cmd in files:
command = os.path.join(root, cmd)
break
return command
if Grass7Utils.command:
return Grass7Utils.command
path = Grass7Utils.grassPath()
command = None
# For MS-Windows there is a difference between GRASS Path and GRASS binary
if isWindows():
# If nothing found, use OSGEO4W or QgsPrefix:
if "OSGEO4W_ROOT" in os.environ:
testFolder = str(os.environ['OSGEO4W_ROOT'])
else:
testFolder = str(QgsApplication.prefixPath())
testFolder = os.path.join(testFolder, 'bin')
command = searchFolder(testFolder)
elif isMac():
# Search in grassPath
command = searchFolder(path)
# Under GNU/Linux or if everything has failed, use shutil
if not command:
for cmd in cmdList:
testBin = shutil.which(cmd)
if testBin:
command = os.path.abspath(testBin)
break
if command:
Grass7Utils.command = command
if path is '':
Grass7Utils.path = os.path.dirname(command)
return command
@staticmethod
def grassPath():
"""
Find GRASS path on the operating system.
Sets global variable Grass7Utils.path
"""
if Grass7Utils.path is not None:
return Grass7Utils.path
if not isWindows() and not isMac():
return ''
folder = ProcessingConfig.getSetting(Grass7Utils.GRASS_FOLDER) or ''
if not os.path.exists(folder):
folder = None
if folder is None:
# Under MS-Windows, we use OSGEO4W or QGIS Path for folder
if isWindows():
if "OSGEO4W_ROOT" in os.environ:
testfolder = os.path.join(str(os.environ['OSGEO4W_ROOT']), "apps")
@ -132,10 +213,25 @@ class Grass7Utils(object):
if subfolder.startswith('grass-7'):
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'
elif isMac():
# For MacOSX, we scan some well-known directories
# Start with QGIS bundle
for version in ['', '7', '70', '71', '72', '73']:
testfolder = os.path.join(str(QgsApplication.prefixPath()),
'grass{}'.format(version))
if os.path.isdir(testfolder):
folder = testfolder
break
# If nothing found, try standalone GRASS installation
if folder is None:
for version in ['0', '1', '2', '3']:
testfolder = '/Applications/GRASS-7.{}.app/Contents/MacOS'.format(version)
if os.path.isdir(testfolder):
folder = testfolder
break
if folder is not None:
Grass7Utils.path = folder
return folder or ''
@ -144,97 +240,73 @@ class Grass7Utils(object):
return os.path.join(os.path.dirname(__file__), 'description')
@staticmethod
def createGrass7Script(commands):
folder = Grass7Utils.grassPath()
script = Grass7Utils.grassScriptFilename()
gisrc = os.path.join(userFolder(), 'processing.gisrc7') # FIXME: use temporary file
# Temporary gisrc file
with open(gisrc, 'w') as output:
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')
with open(script, 'w') as output:
output.write('set HOME=' + os.path.expanduser('~') + '\n')
output.write('set GISRC=' + gisrc + '\n')
output.write('set WINGISBASE=' + folder + '\n')
output.write('set GISBASE=' + folder + '\n')
output.write('set GRASS_PROJSHARE=' + os.path.join(folder, 'share', 'proj') + '\n')
output.write('set GRASS_MESSAGE_FORMAT=plain\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.installedVersion() + '\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:
Grass7Utils.writeCommand(output, command)
output.write('\n')
output.write('exit\n')
def getWindowsCodePage():
"""
Determines MS-Windows CMD.exe shell codepage.
Used into GRASS exec script under MS-Windows.
"""
from ctypes import cdll
return str(cdll.kernel32.GetACP())
@staticmethod
def createGrass7BatchJobFileFromGrass7Commands(commands):
def createGrassBatchJobFileFromGrassCommands(commands):
with open(Grass7Utils.grassBatchJobFilename(), 'w') as fout:
if not isWindows():
fout.write('#!/bin/sh\n')
else:
fout.write('chcp {}>NUL\n'.format(Grass7Utils.getWindowsCodePage()))
for command in commands:
Grass7Utils.writeCommand(fout, command)
fout.write('exit')
@staticmethod
def grassMapsetFolder():
"""
Creates and returns the GRASS temporary DB LOCATION directory.
"""
folder = os.path.join(Grass7Utils.grassDataFolder(), 'temp_location')
mkdir(folder)
return folder
@staticmethod
def grassDataFolder():
tempfolder = os.path.join(QgsProcessingUtils.tempFolder(), 'grassdata')
"""
Creates and returns the GRASS temporary DB directory.
"""
tempfolder = os.path.normpath(
os.path.join(QgsProcessingUtils.tempFolder(), 'grassdata'))
mkdir(tempfolder)
return tempfolder
@staticmethod
def createTempMapset():
'''Creates a temporary location and mapset(s) for GRASS data
"""
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'))
Grass7Utils.writeGrassWindow(os.path.join(folder, 'PERMANENT', 'DEFAULT_WIND'))
with open(os.path.join(folder, 'PERMANENT', 'MYNAME'), 'w') as outfile:
outfile.write(
'QGIS GRASS GIS 7 interface: temporary data processing location.\n')
Grass7Utils.writeGrass7Window(os.path.join(folder, 'PERMANENT', 'WIND'))
Grass7Utils.writeGrassWindow(os.path.join(folder, 'PERMANENT', 'WIND'))
mkdir(os.path.join(folder, 'PERMANENT', 'sqlite'))
with open(os.path.join(folder, 'PERMANENT', 'VAR'), 'w') as outfile:
outfile.write('DB_DRIVER: sqlite\n')
outfile.write('DB_DATABASE: $GISDBASE/$LOCATION_NAME/$MAPSET/sqlite/sqlite.db\n')
@staticmethod
def writeGrass7Window(filename):
def writeGrassWindow(filename):
"""
Creates the GRASS Window file
"""
with open(filename, 'w') as out:
out.write('proj: 0\n')
out.write('zone: 0\n')
@ -256,43 +328,46 @@ class Grass7Utils(object):
out.write('t-b resol: 1\n')
@staticmethod
def prepareGrass7Execution(commands):
def prepareGrassExecution(commands):
"""
Prepare GRASS batch job in a script and
returns it as a command ready for subprocess.
"""
env = os.environ.copy()
if isWindows():
Grass7Utils.createGrass7Script(commands)
command = ['cmd.exe', '/C ', Grass7Utils.grassScriptFilename()]
else:
gisrc = os.path.join(userFolder(), 'processing.gisrc7')
env['GISRC'] = gisrc
env['GRASS_MESSAGE_FORMAT'] = 'plain'
env['GRASS_BATCH_JOB'] = Grass7Utils.grassBatchJobFilename()
if 'GISBASE' in env:
del env['GISBASE']
Grass7Utils.createGrass7BatchJobFileFromGrass7Commands(commands)
os.chmod(Grass7Utils.grassBatchJobFilename(), stat.S_IEXEC | stat.S_IREAD | stat.S_IWRITE)
if isMac() and os.path.exists(os.path.join(Grass7Utils.grassPath(), 'grass.sh')):
command = os.path.join(Grass7Utils.grassPath(), 'grass.sh') + ' ' \
+ os.path.join(Grass7Utils.grassMapsetFolder(), 'PERMANENT')
else:
command = Grass7Utils.command + ' ' + os.path.join(Grass7Utils.grassMapsetFolder(), 'PERMANENT')
env['GRASS_MESSAGE_FORMAT'] = 'plain'
if 'GISBASE' in env:
del env['GISBASE']
Grass7Utils.createGrassBatchJobFileFromGrassCommands(commands)
os.chmod(Grass7Utils.grassBatchJobFilename(), stat.S_IEXEC | stat.S_IREAD | stat.S_IWRITE)
command = [Grass7Utils.command,
os.path.join(Grass7Utils.grassMapsetFolder(), 'PERMANENT'),
'--exec', Grass7Utils.grassBatchJobFilename()]
return command, env
@staticmethod
def executeGrass7(commands, feedback, outputCommands=None):
def executeGrass(commands, feedback, outputCommands=None):
loglines = []
loglines.append(Grass7Utils.tr('GRASS GIS 7 execution console output'))
grassOutDone = False
command, grassenv = Grass7Utils.prepareGrass7Execution(commands)
command, grassenv = Grass7Utils.prepareGrassExecution(commands)
#QgsMessageLog.logMessage('exec: {}'.format(command), 'DEBUG', QgsMessageLog.INFO)
# For MS-Windows, we need to hide the console window.
if isWindows():
si = subprocess.STARTUPINFO()
si.dwFlags |= subprocess.STARTF_USESHOWWINDOW
si.wShowWindow = subprocess.SW_HIDE
with subprocess.Popen(
command,
shell=True,
stdout=subprocess.PIPE,
stdin=subprocess.DEVNULL,
stderr=subprocess.STDOUT,
universal_newlines=True,
env=grassenv
command,
shell=False,
stdout=subprocess.PIPE,
stdin=subprocess.DEVNULL,
stderr=subprocess.STDOUT,
universal_newlines=True,
env=grassenv,
startupinfo=si if isWindows() else None
) as proc:
for line in iter(proc.stdout.readline, ''):
if 'GRASS_INFO_PERCENT' in line:
@ -311,17 +386,17 @@ class Grass7Utils(object):
# 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, grassenv = Grass7Utils.prepareGrass7Execution(outputCommands)
command, grassenv = Grass7Utils.prepareGrassExecution(outputCommands)
with subprocess.Popen(
command,
shell=True,
stdout=subprocess.PIPE,
stdin=subprocess.DEVNULL,
stderr=subprocess.STDOUT,
universal_newlines=True,
env=grassenv
command,
shell=False,
stdout=subprocess.PIPE,
stdin=subprocess.DEVNULL,
stderr=subprocess.STDOUT,
universal_newlines=True,
env=grassenv,
startupinfo=si if isWindows() else None
) as proc:
for line in iter(proc.stdout.readline, ''):
if 'GRASS_INFO_PERCENT' in line:
@ -344,7 +419,7 @@ class Grass7Utils(object):
# Starting a session just involves creating the temp mapset
# structure
@staticmethod
def startGrass7Session():
def startGrassSession():
if not Grass7Utils.sessionRunning:
Grass7Utils.createTempMapset()
Grass7Utils.sessionRunning = True
@ -352,8 +427,8 @@ class Grass7Utils(object):
# End session by removing the temporary GRASS mapset and all
# the layers.
@staticmethod
def endGrass7Session():
shutil.rmtree(Grass7Utils.grassMapsetFolder(), True)
def endGrassSession():
#shutil.rmtree(Grass7Utils.grassMapsetFolder(), True)
Grass7Utils.sessionRunning = False
Grass7Utils.sessionLayers = {}
Grass7Utils.projectionSet = False
@ -369,48 +444,43 @@ class Grass7Utils(object):
list(exportedLayers.items()))
@staticmethod
def checkGrass7IsInstalled(ignorePreviousState=False):
if isWindows():
path = Grass7Utils.grassPath()
if path == '':
return Grass7Utils.tr(
'GRASS GIS 7 folder is not configured. Please 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 Grass7Utils.tr(
'The specified GRASS 7 folder "{}" does not contain '
'a valid set of GRASS 7 modules.\nPlease, go to the '
'Processing settings dialog, and check that the '
'GRASS 7\nfolder is correctly configured'.format(os.path.join(path, 'bin')))
def checkGrassIsInstalled(ignorePreviousState=False):
if not ignorePreviousState:
if Grass7Utils.isGrass7Installed:
if Grass7Utils.isGrassInstalled:
return
try:
from processing import run
result = run(
'grass7:v.voronoi',
points(),
False,
False,
None,
-1,
0.0001,
0,
None,
)
if not os.path.exists(result['output']):
return Grass7Utils.tr(
'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:
return Grass7Utils.tr(
'Error while checking GRASS GIS 7 installation. GRASS GIS 7 '
'might not be correctly configured.\n')
Grass7Utils.isGrass7Installed = True
# We check the version of Grass7
if Grass7Utils.installedVersion() is not None:
# For Ms-Windows, we check GRASS binaries
if isWindows():
cmdpath = os.path.join(Grass7Utils.path, 'bin', 'r.out.gdal.exe')
if not os.path.exists(cmdpath):
return Grass7Utils.tr(
'The specified GRASS 7 folder "{}" does not contain '
'a valid set of GRASS 7 modules.\nPlease, go to the '
'Processing settings dialog, and check that the '
'GRASS 7\nfolder is correctly configured'.format(os.path.join(path, 'bin')))
Grass7Utils.isGrassInstalled = True
return
# Return error messages
else:
# MS-Windows or MacOSX
if isWindows() or isMac():
if Grass7Utils.path is None:
return Grass7Utils.tr(
'GRASS GIS 7 folder is not configured. Please configure '
'it before running GRASS GIS 7 algorithms.')
if Grass7Utils.command is None:
return Grass7Utils.tr(
'GRASS GIS 7 binary {0} can\t be found on this system from a shell.'
'Please install it or configure your PATH {1} environment variable.'.format(
'(grass.bat)' if isWindows() else '(grass.sh)',
'or OSGEO4W_ROOT' if isWindows() else ''))
# GNU/Linux
else:
return Grass7Utils.tr(
'GRASS 7 can\'t be found on this system from a shell.'
'Please install it or configure your PATH environment variable.')
@staticmethod
def tr(string, context=''):
@ -432,12 +502,8 @@ class Grass7Utils(object):
helpPath = ProcessingConfig.getSetting(Grass7Utils.GRASS_HELP_PATH)
if helpPath is None:
if isWindows():
localPath = os.path.join(Grass7Utils.grassPath(), 'docs/html')
if os.path.exists(localPath):
helpPath = os.path.abspath(localPath)
elif isMac():
localPath = '/Applications/GRASS-7.0.app/Contents/MacOS/docs/html'
if isWindows() or isMac():
localPath = os.path.join(Grass7Utils.path, 'docs/html')
if os.path.exists(localPath):
helpPath = os.path.abspath(localPath)
else:
@ -451,8 +517,33 @@ class Grass7Utils(object):
if helpPath is not None:
return helpPath
elif Grass7Utils.command:
return 'http://grass.osgeo.org/{}/manuals/'.format(Grass7Utils.command)
elif Grass7Utils.version:
version = Grass7Utils.version.replace('.', '')[:2]
return 'https://grass.osgeo.org/grass{}/manuals/'.format(version)
else:
# grass not available!
return 'http://grass.osgeo.org/72/manuals/'
# GRASS not available!
return 'https://grass.osgeo.org/grass72/manuals/'
@staticmethod
def getSupportedOutputRasterExtensions():
# We use the same extensions than GDAL because:
# - GRASS is also using GDAL for raster imports.
# - Chances that GRASS is compiled with another version of
# GDAL than QGIS are very limited!
return GdalUtils.getSupportedOutputRasterExtensions()
@staticmethod
def getRasterFormatFromFilename(filename):
"""
Returns Raster format name from a raster filename.
:param filename: The name with extension of the raster.
:return: The Gdal short format name for extension.
"""
ext = os.path.splitext(filename)[1].lower()
ext = ext.lstrip('.')
supported = GdalUtils.getSupportedRasters()
for name in list(supported.keys()):
exts = supported[name]
if ext in exts:
return name
return 'GTiff'

View File

@ -1,70 +0,0 @@
TODO List for GRASS7 algorithms support into QGIS Processing
Unit tests
==========
i.* modules:
------------
* i.albedo: needs better data
* i.aster.toar: needs OutputDir support in tests
* i.atcorr: OK (basic implementation)
* i.biomass: OK (basic implementation)
* i.cca: needs OutputDir support in tests
* i.cluster: OK (full implementation)
* i.colors.enhance: needs other raster data
* i.eb.eta: OK (basic implementation)
* i.eb.evapfr: needs better data
* i.eb.hsebal01: OK (basic implementation)
* i.eb.netrad: OK (basic implementation)
* i.eb.soilheatflux: OK (basic implementation)
* i.emissivity: OK (basic implementation)
* i.evapo.mh: OK (basic implementation)
* i.evapo.pm: OK (basic implementation)
* i.evapo.pt: OK (basic implementation)
* i.evapo.time: broken (don't know why, should work)
* i.fft: OK (full implementation)
* i.gensig: OK (full implementation)
* i.gensigset: OK (full implementation)
* i.group: OK (full implementation)
* i.his.rgb: needs better data
* i.ifft: needs specific raster data
* i.image.mosaic: OK (basic implementation)
* i.in.spotvgt: needs probably a true NVDI SPOT file (quite huge for tests).
* i.landsat.acca: needs better data
* i.landsat.toar: needs OutputDir support in tests
* i.maxlik: OK (full implementation)
* i.modis.qc: OK (full implementation)
* i.oif: OK (full implementation)
* i.ortho.camera: not implemented in Processing
* i.ortho.elev: not implemented in Processing
* i.ortho.rectify: not implemented in Processing
* i.pansharpen: OK (full implementation)
* i.pca: needs OutputDir support in tests
* i.rectify: needs OutputDir support in tests
* i.rgb.his: OK (full implementation)
* i.segment: OK (full implementation)
* i.smap: OK (full implementation)
* i.spectral: not implementable in Processing
* i.target: not implementable in Processing
* i.tasscap: needs OutputDir support in tests
* i.topo.corr.ill: OK (basic implementation)
* i.topo.corr: needs OutputDir support in tests
* i.vi: OK (basic implementation)
* i.zc: OK (basic implementation)
r.* modules
-----------
Need to write everything
v.* modules
-----------
Need to write everything
Other
=====
* TODO: decide what to do with nviz:
nviz_cmd -> G7:m.nviz.image

View File

@ -0,0 +1,363 @@
TODO List for GRASS7 algorithms support into QGIS Processing
QGIS3 Processing Port
=====================
* Things to do elsewhere
* TODO We need Null QgsProcessingParameterNumber!
* TODO We need NULL QgsProcessingParameterPoint!
* TODO We need a QgsParameterMultipleInputLayers parameter for minimum and maximum number of layers.
* TODO Open all the files in a QgsProcessingOutputFolder at the end of the algorithm.
* TODO Review all the methods of QgsProcessingAlgorithm.
* TODO Make tests under MS-Windows 7 for Utf-8 support.
* DONE Algorithms can handle data with utf-8 in filepath.
* TODO Support utf-8 profiles filepath.
* TODO Review Python3 port.
* dict iteritems
* TODO Improve unit tests.
* TODO Use prepareAlgorithm for algorithm preparation.
* TODO Support ParameterTable.
* TODO Support multiple output vector formats.
* TODO Try to use v.external.out on simple algorithms.
* TODO Add an optional/advanced 'format option' textbox if vector output is detected.
* TODO Support multiple input vector formats
* DONE create a general inputVectorLayer method.
* TODO Support database connections.
* TODO Support Auth API for databases connections.
* TODO Some formats can't be correctly used by v.external:
* GML.
* TODO Build a workaround for those formats (use v.in.ogr).
* TODO Review all algorithm parameters.
* MOD r.basins.fill
* OK r.blend
* OK r.buffer
* OK r.buffer.lowmem
* OK r.carve
* OK r.category
* MOD r.circle
* MOD r.clump
* OK r.coin
* TODO r.colors OutputDirectory
* OK r.colors.out
* OK r.colors.stddev
* OK r.composite
* OK r.compress
* MOD r.contour
* MOD r.cost
* OK r.covar
* OK r.cross
* r.describe
* r.distance
* r.drain
* r.external
* r.external.out
* r.fill.dir
* r.fillnulls
* r.flow
* r.grow.distance
* r.grow
* r.gwflow
* r.his
* r.horizon
* r.import
* r.in.ascii
* r.in.aster
* r.in.bin
* r.in.gdal
* r.in.gridatb
* r.in.lidar
* r.in.mat
* r.in.png
* r.in.poly
* r.in.srtm
* r.in.wms
* r.in.xyz
* r.info
* r.kappa
* r.lake
* r.latlong
* r.li.cwed
* r.li.daemon
* r.li.dominance
* r.li.edgedensity
* r.li
* r.li.mpa
* r.li.mps
* r.li.padcv
* r.li.padrange
* r.li.padsd
* r.li.patchdensity
* r.li.patchnum
* r.li.pielou
* r.li.renyi
* r.li.richness
* r.li.shannon
* r.li.shape
* r.li.simpson
* r.mapcalc
* r.mask
* r.mfilter
* r.mode
* r.neighbors
* r.null
* r.out.ascii
* r.out.bin
* r.out.gdal
* r.out.gridatb
* r.out.mat
* r.out.mpeg
* r.out.png
* r.out.pov
* r.out.ppm
* r.out.ppm3
* r.out.vrml
* r.out.vtk
* r.out.xyz
* r.pack
* r.param.scale
* r.patch
* r.plane
* r.profile
* r.proj
* r.quant
* r.quantile
* r.random.cells
* r.random
* r.random.surface
* r.reclass.area
* r.reclass
* r.recode
* r.region
* r.regression.line
* r.regression.multi
* r.relief
* r.report
* r.resamp.bspline
* r.resamp.filter
* r.resamp.interp
* r.resamp.rst
* r.resamp.stats
* r.resample
* r.rescale.eq
* r.rescale
* r.rgb
* r.ros
* r.series.accumulate
* r.series
* r.series.interp
* r.shade
* r.sim.sediment
* r.sim.water
* r.slope.aspect
* r.solute.transport
* r.spread
* r.spreadpath
* r.statistics
* r.stats
* r.stats.quantile
* r.stats.zonal
* r.stream.extract
* r.sun
* r.sunhours
* r.sunmask
* r.support
* r.support.stats
* r.surf.area
* r.surf.contour
* r.surf.fractal
* r.surf.gauss
* r.surf.idw
* r.surf.random
* r.terraflow
* r.texture
* r.thin
* r.tile
* r.tileset
* r.timestamp
* r.to.rast3
* r.to.rast3elev
* r.to.vect
* r.topidx
* r.topmodel
* r.transect
* r.univar
* r.unpack
* r.uslek
* r.usler
* r.viewshed
* r.volume
* r.walk
* r.water.outlet
* r.watershed
* r.what.color
* r.what
* TODO Convert all ext scripts.
* TODO Review i.py.
* TODO Force projection in description file?
* r_rgb.py
* r_blend_combine.py
* r_blend_rgb.py
* r_drain.py
* r_horizon.py
* r_mask.py
* r_mask_vect.py
* r_mask_rast.py
* r_null.py
* r_statistics.py
* v_voronoi.py
* v_build_polylines.py => TO delete.
* v_in_geonames.py.
* v_sample.py.
* v_to_3d.py.
* v_pack.py.
* v_what_vect.py => TO delete.
* v_what_rast_points.py.
* v_what_rast_centroids.py.
* v_vect_stats.py
* v_rast_stats.py
* v_net.py
* v_net_alloc.py
* v_net_allpairs.py
* v_net_arcs.py
* v_net_articulation.py
* v_net_connect.py
* v_net_connectivity.py
* v_net_flow.py
* v_net_iso.py
* v_net_nodes.py
* v_net_path.py
* v_net_steiner.py
* v_net_visibility.py
* DONE Support multiple output file raster formats.
* DONE Add an optional/advanced 'format option' textbox if raster output is detected.
* DONE Detext file format from extension.
* DONE Improve GdalUtils to report raster formats that can be created with GDAL.
* DONE Add GRASS 7.2 new algorithms.
* DONE Remove r.aspect => r.slope.aspect.
* DONE Remove r.median.
* DONE r.out.ascii.
* DONE r.out.mat.
* DONE r.out.mpeg.
* DONE r.out.png.
* DONE r.out.pop.
* DONE r.out.ppm3.
* DONE r.out.vtk.
* DONE r.out.xyz.
* DONE r.proj.
* DONE r.stats.zonal.
* DONE v.decimate.
* DONE v.in.e00.
* DONE v.proj.
* DONE Support QgsProcessingParameterRange (error in processing/gui/wrappers.py).
* DONE implement a basic RangePanel/wrapper.
* DONE Improve Wrapper logic for min/max.
* DONE Use some raster/vector layers with spacename into their path.
* DONE Use GRASS --exec instead of GRASS_BATCH_JOB.
* DONE Improve Grass Path and Binary detection for all OSs.
* DONE Replace all parameters by QgsProcessingParameters.
* DONE Support multiple QgsProcessingParameterEnum.
* DONE Review all ParameterFile
* DONE Review all OutputDirectory.
* DONE Convert all OutputDirectory to QgsProcessingParameterFolderDestination
* DONE Default case:
* Take the name of the output variable.
* create a default value as basename.
* export all layers into the directory with a shell loop.
* DONE Remove all multipleOutputDir in ext/
* r.colors: TODO ext | DONE desc | TODO tests.
* r.texture: DONE ext | DONE desc | TODO tests.
* r.stats.quantile: DONE ext | DONE desc | TODO tests.
* r.series.interp: DONE ext | DONE desc | TODO tests.
* r.mapcalc: DONE ext | DONE desc | TODO tests.
* i.aster.toar: DONE ext | DONE desc | TODO tests.
* i.tasscap: DONE ext | DONE desc | TODO tests.
* i.rectify: DONE ext | DONE desc | TODO tests.
* i.cca: DONE ext | DONE desc | TODO tests.
* i.landsat.toar: DONE ext | DONE desc | TODO tests.
* i.pca: DONE ext | DONE desc | TODO tests.
* i.topo.corr: DONE ext | DONE desc | TODO tests.
* DONE Review all OutputFile
* DONE Replace by QgsProcessingParameterFileDestination
* DONE QgsProcessingParameterFileDestination should use the file filter in Dialog.
Replace fileOut with fileDestination in gui/ParametersUtils.py
* DONE Remove specific algorithms code in Grass7Algorithm.py (move them in ext).
* DONE Re-enable GRASS algorithm by default.
* DONE Support multiple bands input rasters.
* DONE Better support for files output that are HTML.
* DONE All html output files will be report outputs.
* DONE All html output will come as stdout files by default.
* DONE OutputHtml must not be converted to OutputLayerDefinition.
* DONE Convert false HTML files to real HTML files.
* DONE Opens HTML files in Viewer.
Unit tests
==========
i.* modules:
------------
* i.albedo: needs better data
* i.aster.toar: needs OutputDir support in tests
* i.atcorr: OK (basic implementation)
* i.biomass: OK (basic implementation)
* i.cca: needs OutputDir support in tests
* i.cluster: OK (full implementation)
* i.colors.enhance: needs other raster data
* i.eb.eta: OK (basic implementation)
* i.eb.evapfr: needs better data
* i.eb.hsebal01: OK (basic implementation)
* i.eb.netrad: OK (basic implementation)
* i.eb.soilheatflux: OK (basic implementation)
* i.emissivity: OK (basic implementation)
* i.evapo.mh: OK (basic implementation)
* i.evapo.pm: OK (basic implementation)
* i.evapo.pt: OK (basic implementation)
* i.evapo.time: broken (don't know why, should work)
* i.fft: OK (full implementation)
* i.gensig: OK (full implementation)
* i.gensigset: OK (full implementation)
* i.group: OK (full implementation)
* i.his.rgb: needs better data
* i.ifft: needs specific raster data
* i.image.mosaic: OK (basic implementation)
* i.in.spotvgt: needs probably a true NVDI SPOT file (quite huge for tests).
* i.landsat.acca: needs better data
* i.landsat.toar: needs OutputDir support in tests
* i.maxlik: OK (full implementation)
* i.modis.qc: OK (full implementation)
* i.oif: OK (full implementation)
* i.ortho.camera: not implemented in Processing
* i.ortho.elev: not implemented in Processing
* i.ortho.rectify: not implemented in Processing
* i.pansharpen: OK (full implementation)
* i.pca: needs OutputDir support in tests
* i.rectify: needs OutputDir support in tests
* i.rgb.his: OK (full implementation)
* i.segment: OK (full implementation)
* i.smap: OK (full implementation)
* i.spectral: not implementable in Processing
* i.target: not implementable in Processing
* i.tasscap: needs OutputDir support in tests
* i.topo.corr.ill: OK (basic implementation)
* i.topo.corr: needs OutputDir support in tests
* i.vi: OK (basic implementation)
* i.zc: OK (basic implementation)
r.* modules
-----------
Need to write everything
v.* modules
-----------
Need to write everything
Other
=====
* TODO: decide what to do with nviz:
nviz_cmd -> G7:m.nviz.image

View File

@ -1,11 +1,11 @@
i.albedo
Computes broad band albedo from surface reflectance.
Imagery (i.*)
ParameterMultipleInput|input|Name of input raster maps|3|False
ParameterBoolean|-m|MODIS (7 input bands:1,2,3,4,5,6,7)|False
ParameterBoolean|-n|NOAA AVHRR (2 input bands:1,2)|False
ParameterBoolean|-l|Landsat 5+7 (6 input bands:1,2,3,4,5,7)|False
ParameterBoolean|-a|ASTER (6 input bands:1,3,5,6,8,9)|False
ParameterBoolean|-c|Aggressive mode (Landsat)|False
ParameterBoolean|-d|Soft mode (MODIS)|False
OutputRaster|output|Albedo
QgsProcessingParameterMultipleLayers|input|Name of input raster maps|3|None|False
QgsProcessingParameterBoolean|-m|MODIS (7 input bands:1,2,3,4,5,6,7)|False
QgsProcessingParameterBoolean|-n|NOAA AVHRR (2 input bands:1,2)|False
QgsProcessingParameterBoolean|-l|Landsat 5+7 (6 input bands:1,2,3,4,5,7)|False
QgsProcessingParameterBoolean|-a|ASTER (6 input bands:1,3,5,6,8,9)|False
QgsProcessingParameterBoolean|-c|Aggressive mode (Landsat)|False
QgsProcessingParameterBoolean|-d|Soft mode (MODIS)|False
QgsProcessingParameterRasterDestination|output|Albedo

View File

@ -1,13 +1,13 @@
i.aster.toar
Calculates Top of Atmosphere Radiance/Reflectance/Brightness Temperature from ASTER DN.
Imagery (i.*)
ParameterMultipleInput|input|Names of ASTER DN layers (15 layers)|3|False
ParameterNumber|dayofyear|Day of Year of satellite overpass [0-366]|0|366|0|False
ParameterNumber|sun_elevation|Sun elevation angle (degrees, < 90.0)|0.0|90.0|45.0|False
ParameterBoolean|-r|Output is radiance (W/m2)|False
ParameterBoolean|-a|VNIR is High Gain|False
ParameterBoolean|-b|SWIR is High Gain|False
ParameterBoolean|-c|VNIR is Low Gain 1|False
ParameterBoolean|-d|SWIR is Low Gain 1|False
ParameterBoolean|-e|SWIR is Low Gain 2|False
OutputDirectory|output|Output Directory
QgsProcessingParameterMultipleLayers|input|Names of ASTER DN layers (15 layers)|3|None|False
QgsProcessingParameterNumber|dayofyear|Day of Year of satellite overpass [0-366]|QgsProcessingParameterNumber.Integer|0|False|0|366
QgsProcessingParameterNumber|sun_elevation|Sun elevation angle (degrees, < 90.0)|QgsProcessingParameterNumber.Double|45.0|False|0.0|90.0
QgsProcessingParameterBoolean|-r|Output is radiance (W/m2)|False
QgsProcessingParameterBoolean|-a|VNIR is High Gain|False
QgsProcessingParameterBoolean|-b|SWIR is High Gain|False
QgsProcessingParameterBoolean|-c|VNIR is Low Gain 1|False
QgsProcessingParameterBoolean|-d|SWIR is Low Gain 1|False
QgsProcessingParameterBoolean|-e|SWIR is Low Gain 2|False
QgsProcessingParameterFolderDestination|output|Output Directory

View File

@ -1,16 +1,14 @@
i.atcorr
Performs atmospheric correction using the 6S algorithm.
Imagery (i.*)
ParameterRaster|input|Name of input raster map|False
ParameterRange|range|Input imagery range [0,255]|0,255|True
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|False
ParameterRange|rescale|Rescale output raster map [0,255]|0,255|True
OutputRaster|output|Atmospheric correction
*ParameterBoolean|-i|Output raster map as integer|False
*ParameterBoolean|-r|Input raster map converted to reflectance (default is radiance)|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
QgsProcessingParameterRasterLayer|input|Name of input raster map|None|False
QgsProcessingParameterRange|range|Input imagery range [0,255]|0,255|True
QgsProcessingParameterRasterLayer|elevation|Input altitude raster map in m (optional)|None|True
QgsProcessingParameterRasterLayer|visibility|Input visibility raster map in km (optional)|None|True
QgsProcessingParameterFile|parameters|Name of input text file|0|txt|None|False
QgsProcessingParameterRange|rescale|Rescale output raster map [0,255]|0,255|True
QgsProcessingParameterRasterDestination|output|Atmospheric correction
*QgsProcessingParameterBoolean|-i|Output raster map as integer|False
*QgsProcessingParameterBoolean|-r|Input raster map converted to reflectance (default is radiance)|False
*QgsProcessingParameterBoolean|-a|Input from ETM+ image taken after July 1, 2000|False
*QgsProcessingParameterBoolean|-b|Input from ETM+ image taken before July 1, 2000|False

View File

@ -1,10 +1,10 @@
i.biomass
Computes biomass growth, precursor of crop yield calculation.
Imagery (i.*)
ParameterRaster|fpar|Name of fPAR raster map|False
ParameterRaster|lightuse_efficiency|Name of light use efficiency raster map (UZB:cotton=1.9)|False
ParameterRaster|latitude|Name of degree latitude raster map [dd.ddd]|False
ParameterRaster|dayofyear|Name of Day of Year raster map [1-366]|False
ParameterRaster|transmissivity_singleway|Name of single-way transmissivity raster map [0.0-1.0]False
ParameterRaster|water_availability|Value of water availability raster map [0.0-1.0]|False
OutputRaster|output|Biomass
QgsProcessingParameterRasterLayer|fpar|Name of fPAR raster map|None|False
QgsProcessingParameterRasterLayer|lightuse_efficiency|Name of light use efficiency raster map (UZB:cotton=1.9)|None|False
QgsProcessingParameterRasterLayer|latitude|Name of degree latitude raster map [dd.ddd]|None|False
QgsProcessingParameterRasterLayer|dayofyear|Name of Day of Year raster map [1-366]|None|False
QgsProcessingParameterRasterLayer|transmissivity_singleway|Name of single-way transmissivity raster map [0.0-1.0]False
QgsProcessingParameterRasterLayer|water_availability|Value of water availability raster map [0.0-1.0]|None|False
QgsProcessingParameterRasterDestination|output|Biomass

View File

@ -1,6 +1,6 @@
i.cca
Canonical components analysis (CCA) program for image processing.
Imagery (i.*)
ParameterMultipleInput|input|Input rasters (2 to 8)|3|False
ParameterFile|signature|File containing spectral signatures|False|False
OutputDirectory|output|Output Directory
QgsProcessingParameterMultipleLayers|input|Input rasters (2 to 8)|3|None|False
QgsProcessingParameterFile|signature|File containing spectral signatures|0|txt|None|False
QgsProcessingParameterFolderDestination|output|Output Directory

View File

@ -1,13 +1,13 @@
i.cluster
Generates spectral signatures for land cover types in an image using a clustering algorithm.
Imagery (i.*)
ParameterMultipleInput|input|Input rasters|3|False
ParameterNumber|classes|Initial number of classes (1-255)|1|255|1|True
ParameterFile|seed|Name of file containing initial signatures|False|True
ParameterString|sample|Sampling intervals (by row and col)|None|False|True
ParameterNumber|iterations|Maximum number of iterations|1|None|30|True
ParameterNumber|convergence|Percent convergence|0.0|100.0|98.0|True
ParameterNumber|separation|Cluster separation|0.0|None|0.0|True
ParameterNumber|min_size|Minimum number of pixels in a class|1|None|17|True
OutputFile|signaturefile|Signature File
OutputFile|reportfile|Final Report File
QgsProcessingParameterMultipleLayers|input|Input rasters|3|None|False
QgsProcessingParameterNumber|classes|Initial number of classes (1-255)|QgsProcessingParameterNumber.Integer|1|True|1|255
QgsProcessingParameterFile|seed|Name of file containing initial signatures|0|txt|None|True
QgsProcessingParameterString|sample|Sampling intervals (by row and col)|None|False|True
QgsProcessingParameterNumber|iterations|Maximum number of iterations|QgsProcessingParameterNumber.Integer|30|True|1|None
QgsProcessingParameterNumber|convergence|Percent convergence|QgsProcessingParameterNumber.Double|98.0|True|0.0|100.0
QgsProcessingParameterNumber|separation|Cluster separation|QgsProcessingParameterNumber.Double|0.0|True|0.0|None
QgsProcessingParameterNumber|min_size|Minimum number of pixels in a class|QgsProcessingParameterNumber.Integer|17|True|1|None
QgsProcessingParameterFileDestination|signaturefile|Signature File|Txt files (*.txt)|None|False
QgsProcessingParameterFileDestination|reportfile|Final Report File|Txt files (*.txt)|None|False

View File

@ -1,15 +1,14 @@
i.colors.enhance
Performs auto-balancing of colors for RGB images.
Imagery (i.*)
ParameterRaster|red|Name of red channel|False
ParameterRaster|green|Name of green channel|False
ParameterRaster|blue|Name of blue channel|False
ParameterNumber|strength|Cropping intensity (upper brightness level)|0|100|98|True
*ParameterBoolean|-f|Extend colors to full range of data on each channel|False
*ParameterBoolean|-p|Preserve relative colors, adjust brightness only|False
*ParameterBoolean|-r|Reset to standard color range|False
*ParameterBoolean|-s|Process bands serially (default: run in parallel)|False
OutputRaster|redoutput|Enhanced Red
OutputRaster|greenoutput|Enhanced Green
OutputRaster|blueoutput|Enhanced Blue
QgsProcessingParameterRasterLayer|red|Name of red channel|None|False
QgsProcessingParameterRasterLayer|green|Name of green channel|None|False
QgsProcessingParameterRasterLayer|blue|Name of blue channel|None|False
QgsProcessingParameterNumber|strength|Cropping intensity (upper brightness level)|QgsProcessingParameterNumber.Double|98.0|True|0.0|100.0
*QgsProcessingParameterBoolean|-f|Extend colors to full range of data on each channel|False
*QgsProcessingParameterBoolean|-p|Preserve relative colors, adjust brightness only|False
*QgsProcessingParameterBoolean|-r|Reset to standard color range|False
*QgsProcessingParameterBoolean|-s|Process bands serially (default: run in parallel)|False
QgsProcessingParameterRasterDestination|redoutput|Enhanced Red
QgsProcessingParameterRasterDestination|greenoutput|Enhanced Green
QgsProcessingParameterRasterDestination|blueoutput|Enhanced Blue

View File

@ -1,7 +1,7 @@
i.eb.eta
Actual evapotranspiration for diurnal period (Bastiaanssen, 1995).
Imagery (i.*)
ParameterRaster|netradiationdiurnal|Name of the diurnal net radiation map [W/m2]|False
ParameterRaster|evaporativefraction|Name of the evaporative fraction map|False
ParameterRaster|temperature|Name of the surface skin temperature [K]|False
OutputRaster|output|Evapotranspiration
QgsProcessingParameterRasterLayer|netradiationdiurnal|Name of the diurnal net radiation map [W/m2]|None|False
QgsProcessingParameterRasterLayer|evaporativefraction|Name of the evaporative fraction map|None|False
QgsProcessingParameterRasterLayer|temperature|Name of the surface skin temperature [K]|None|False
QgsProcessingParameterRasterDestination|output|Evapotranspiration

View File

@ -1,9 +1,9 @@
i.eb.evapfr
Computes evaporative fraction (Bastiaanssen, 1995) and root zone soil moisture (Makin, Molden and Bastiaanssen, 2001).
Imagery (i.*)
ParameterRaster|netradiation|Name of Net Radiation raster map [W/m2]|False
ParameterRaster|soilheatflux|Name of soil heat flux raster map [W/m2]|False
ParameterRaster|sensibleheatflux|Name of sensible heat flux raster map [W/m2]|False
QgsProcessingParameterRasterLayer|netradiation|Name of Net Radiation raster map [W/m2]|None|False
QgsProcessingParameterRasterLayer|soilheatflux|Name of soil heat flux raster map [W/m2]|None|False
QgsProcessingParameterRasterLayer|sensibleheatflux|Name of sensible heat flux raster map [W/m2]|None|False
Hardcoded|-m
OutputRaster|evaporativefraction|Evaporative Fraction
OutputRaster|soilmoisture|Root Zone Soil Moisture
QgsProcessingParameterRasterDestination|evaporativefraction|Evaporative Fraction
QgsProcessingParameterRasterDestination|soilmoisture|Root Zone Soil Moisture

View File

@ -1,15 +1,15 @@
i.eb.hsebal01
i.eb.hsebal01.coords - Computes sensible heat flux iteration SEBAL 01. Inline coordinates
Imagery (i.*)
ParameterRaster|netradiation|Name of instantaneous net radiation raster map [W/m2]|False
ParameterRaster|soilheatflux|Name of instantaneous soil heat flux raster map [W/m2]|False
ParameterRaster|aerodynresistance|Name of aerodynamic resistance to heat momentum raster map [s/m]|False
ParameterRaster|temperaturemeansealevel|Name of altitude corrected surface temperature raster map [K]|False
ParameterNumber|frictionvelocitystar|Value of the height independent friction velocity (u*) [m/s]|0.0|None|0.32407|False
ParameterNumber|vapourpressureactual|Value of the actual vapour pressure (e_act) [KPa]|0.0|None|1.511|False
ParameterString|row_wet_pixel|Row value of the wet pixel|None|False|False
ParameterString|column_wet_pixel|Column value of the wet pixel|None|False|False
ParameterString|row_dry_pixel|Row value of the dry pixel|None|False|False
ParameterString|column_dry_pixel|Column value of the dry pixel|None|False|False
*ParameterBoolean|-c|Dry/Wet pixels coordinates are in image projection, not row/col|False
OutputRaster|output|Sensible Heat Flux
QgsProcessingParameterRasterLayer|netradiation|Name of instantaneous net radiation raster map [W/m2]|None|False
QgsProcessingParameterRasterLayer|soilheatflux|Name of instantaneous soil heat flux raster map [W/m2]|None|False
QgsProcessingParameterRasterLayer|aerodynresistance|Name of aerodynamic resistance to heat momentum raster map [s/m]|None|False
QgsProcessingParameterRasterLayer|temperaturemeansealevel|Name of altitude corrected surface temperature raster map [K]|None|False
QgsProcessingParameterNumber|frictionvelocitystar|Value of the height independent friction velocity (u*) [m/s]|QgsProcessingParameterNumber.Double|0.32407|False|0.0|None
QgsProcessingParameterNumber|vapourpressureactual|Value of the actual vapour pressure (e_act) [KPa]|QgsProcessingParameterNumber.Double|1.511|False|0.0|None
QgsProcessingParameterNumber|row_wet_pixel|Row value of the wet pixel|QgsProcessingParameterNumber.Double|None|True|None|None
QgsProcessingParameterNumber|column_wet_pixel|Column value of the wet pixel|QgsProcessingParameterNumber.Double|None|True|None|None
QgsProcessingParameterNumber|row_dry_pixel|Row value of the dry pixel|QgsProcessingParameterNumber.Double|None|True|None|None
QgsProcessingParameterNumber|column_dry_pixel|Column value of the dry pixel|QgsProcessingParameterNumber.Double|None|True|None|None
*QgsProcessingParameterBoolean|-c|Dry/Wet pixels coordinates are in image projection, not row/col|False
QgsProcessingParameterRasterDestination|output|Sensible Heat Flux

View File

@ -1,11 +1,11 @@
i.eb.hsebal01
Computes sensible heat flux iteration SEBAL 01.
Imagery (i.*)
ParameterRaster|netradiation|Name of instantaneous net radiation raster map [W/m2]|False
ParameterRaster|soilheatflux|Name of instantaneous soil heat flux raster map [W/m2]|False
ParameterRaster|aerodynresistance|Name of aerodynamic resistance to heat momentum raster map [s/m]|False
ParameterRaster|temperaturemeansealevel|Name of altitude corrected surface temperature raster map [K]|False
ParameterNumber|frictionvelocitystar|Value of the height independent friction velocity (u*) [m/s]|0.0|None|0.32407|False
ParameterNumber|vapourpressureactual|Value of the actual vapour pressure (e_act) [KPa]|0.0|None|1.511|False
QgsProcessingParameterRasterLayer|netradiation|Name of instantaneous net radiation raster map [W/m2]|None|False
QgsProcessingParameterRasterLayer|soilheatflux|Name of instantaneous soil heat flux raster map [W/m2]|None|False
QgsProcessingParameterRasterLayer|aerodynresistance|Name of aerodynamic resistance to heat momentum raster map [s/m]|None|False
QgsProcessingParameterRasterLayer|temperaturemeansealevel|Name of altitude corrected surface temperature raster map [K]|None|False
QgsProcessingParameterNumber|frictionvelocitystar|Value of the height independent friction velocity (u*) [m/s]|QgsProcessingParameterNumber.Double|0.32407|False|0.0|None
QgsProcessingParameterNumber|vapourpressureactual|Value of the actual vapour pressure (e_act) [KPa]|QgsProcessingParameterNumber.Double|1.511|False|0.0|None
Hardcoded|-a
OutputRaster|output|Sensible Heat Flux
QgsProcessingParameterRasterDestination|output|Sensible Heat Flux

View File

@ -1,13 +1,13 @@
i.eb.netrad
Net radiation approximation (Bastiaanssen, 1995).
Imagery (i.*)
ParameterRaster|albedo|Name of albedo raster map [0.0;1.0]|False
ParameterRaster|ndvi|Name of NDVI raster map [-1.0;+1.0]|False
ParameterRaster|temperature|Name of surface temperature raster map [K]|False
ParameterRaster|localutctime|Name of time of satellite overpass raster map [local time in UTC]|False
ParameterRaster|temperaturedifference2m|Name of the difference map of temperature from surface skin to about 2 m height [K]|False
ParameterRaster|emissivity|Name of the emissivity map [-]|False
ParameterRaster|transmissivity_singleway|Name of the single-way atmospheric transmissivitymap [-]|False
ParameterRaster|dayofyear|Name of the Day Of Year (DOY) map [-]|False
ParameterRaster|sunzenithangle|Name of the sun zenith angle map [degrees]|False
OutputRaster|output|Net Radiation
QgsProcessingParameterRasterLayer|albedo|Name of albedo raster map [0.0;1.0]|None|False
QgsProcessingParameterRasterLayer|ndvi|Name of NDVI raster map [-1.0;+1.0]|None|False
QgsProcessingParameterRasterLayer|temperature|Name of surface temperature raster map [K]|None|False
QgsProcessingParameterRasterLayer|localutctime|Name of time of satellite overpass raster map [local time in UTC]|None|False
QgsProcessingParameterRasterLayer|temperaturedifference2m|Name of the difference map of temperature from surface skin to about 2 m height [K]|None|False
QgsProcessingParameterRasterLayer|emissivity|Name of the emissivity map [-]|None|False
QgsProcessingParameterRasterLayer|transmissivity_singleway|Name of the single-way atmospheric transmissivitymap [-]|None|False
QgsProcessingParameterRasterLayer|dayofyear|Name of the Day Of Year (DOY) map [-]|None|False
QgsProcessingParameterRasterLayer|sunzenithangle|Name of the sun zenith angle map [degrees]|None|False
QgsProcessingParameterRasterDestination|output|Net Radiation

View File

@ -1,10 +1,10 @@
i.eb.soilheatflux
Soil heat flux approximation (Bastiaanssen, 1995).
Imagery (i.*)
ParameterRaster|albedo|Name of albedo raster map [0.0;1.0]|False
ParameterRaster|ndvi|Name of NDVI raster map [-1.0;+1.0]|False
ParameterRaster|temperature|Name of Surface temperature raster map [K]|False
ParameterRaster|netradiation|Name of Net Radiation raster map [W/m2]|False
ParameterRaster|localutctime|Name of time of satellite overpass raster map [local time in UTC]|False
ParameterBoolean|-r|HAPEX-Sahel empirical correction (Roerink, 1995)|False
OutputRaster|output|Soil Heat Flux
QgsProcessingParameterRasterLayer|albedo|Name of albedo raster map [0.0;1.0]|None|False
QgsProcessingParameterRasterLayer|ndvi|Name of NDVI raster map [-1.0;+1.0]|None|False
QgsProcessingParameterRasterLayer|temperature|Name of Surface temperature raster map [K]|None|False
QgsProcessingParameterRasterLayer|netradiation|Name of Net Radiation raster map [W/m2]|None|False
QgsProcessingParameterRasterLayer|localutctime|Name of time of satellite overpass raster map [local time in UTC]|None|False
QgsProcessingParameterBoolean|-r|HAPEX-Sahel empirical correction (Roerink, 1995)|False
QgsProcessingParameterRasterDestination|output|Soil Heat Flux

View File

@ -1,5 +1,5 @@
i.emissivity
Computes emissivity from NDVI, generic method for sparse land.
Imagery (i.*)
ParameterRaster|input|Name of NDVI raster map [-]|False
OutputRaster|output|Emissivity
QgsProcessingParameterRasterLayer|input|Name of NDVI raster map [-]|None|False
QgsProcessingParameterRasterDestination|output|Emissivity

View File

@ -1,12 +1,12 @@
i.evapo.mh
Computes evapotranspiration calculation modified or original Hargreaves formulation, 2001.
Imagery (i.*)
ParameterRaster|netradiation_diurnal|Name of input diurnal net radiation raster map [W/m2/d]|False
ParameterRaster|average_temperature|Name of input average air temperature raster map [C]|False
ParameterRaster|minimum_temperature|Name of input minimum air temperature raster map [C]|False
ParameterRaster|maximum_temperature|Name of input maximum air temperature raster map [C]|False
ParameterRaster|precipitation|Name of precipitation raster map [mm/month]|True
*ParameterBoolean|-z|Set negative ETa to zero|False
*ParameterBoolean|-h|Use original Hargreaves (1985)|False
*ParameterBoolean|-s|Use Hargreaves-Samani (1985)|False
OutputRaster|output|Evapotranspiration
QgsProcessingParameterRasterLayer|netradiation_diurnal|Name of input diurnal net radiation raster map [W/m2/d]|None|False
QgsProcessingParameterRasterLayer|average_temperature|Name of input average air temperature raster map [C]|None|False
QgsProcessingParameterRasterLayer|minimum_temperature|Name of input minimum air temperature raster map [C]|None|False
QgsProcessingParameterRasterLayer|maximum_temperature|Name of input maximum air temperature raster map [C]|None|False
QgsProcessingParameterRasterLayer|precipitation|Name of precipitation raster map [mm/month]|None|True
*QgsProcessingParameterBoolean|-z|Set negative ETa to zero|False
*QgsProcessingParameterBoolean|-h|Use original Hargreaves (1985)|False
*QgsProcessingParameterBoolean|-s|Use Hargreaves-Samani (1985)|False
QgsProcessingParameterRasterDestination|output|Evapotranspiration

View File

@ -1,12 +1,12 @@
i.evapo.pm
Computes potential evapotranspiration calculation with hourly Penman-Monteith.
Imagery (i.*)
ParameterRaster|elevation|Name of input elevation raster map [m a.s.l.]|False
ParameterRaster|temperature|Name of input temperature raster map [C]|False
ParameterRaster|relativehumidity|Name of input relative humidity raster map [%]|False
ParameterRaster|windspeed|Name of input wind speed raster map [m/s]|False
ParameterRaster|netradiation|Name of input net solar radiation raster map [MJ/m2/h]|False
ParameterRaster|cropheight|Name of input crop height raster map [m]|False
*ParameterBoolean|-z|Set negative ETa to zero|False
*ParameterBoolean|-n|Use Night-time|False
OutputRaster|output|Evapotranspiration
QgsProcessingParameterRasterLayer|elevation|Name of input elevation raster map [m a.s.l.]|None|False
QgsProcessingParameterRasterLayer|temperature|Name of input temperature raster map [C]|None|False
QgsProcessingParameterRasterLayer|relativehumidity|Name of input relative humidity raster map [%]|None|False
QgsProcessingParameterRasterLayer|windspeed|Name of input wind speed raster map [m/s]|None|False
QgsProcessingParameterRasterLayer|netradiation|Name of input net solar radiation raster map [MJ/m2/h]|None|False
QgsProcessingParameterRasterLayer|cropheight|Name of input crop height raster map [m]|None|False
*QgsProcessingParameterBoolean|-z|Set negative ETa to zero|False
*QgsProcessingParameterBoolean|-n|Use Night-time|False
QgsProcessingParameterRasterDestination|output|Evapotranspiration

View File

@ -1,10 +1,10 @@
i.evapo.pt
Computes evapotranspiration calculation Priestley and Taylor formulation, 1972.
Imagery (i.*)
ParameterRaster|net_radiation|Name of input net radiation raster map [W/m2]|False
ParameterRaster|soil_heatflux|Name of input soil heat flux raster map [W/m2]|False
ParameterRaster|air_temperature|Name of input air temperature raster map [K]|False
ParameterRaster|atmospheric_pressure|Name of input atmospheric pressure raster map [millibars]|False
ParameterNumber|priestley_taylor_coeff|Priestley-Taylor coefficient|0.0|None|1.26|False
*ParameterBoolean|-z|Set negative ETa to zero|False
OutputRaster|output|Evapotranspiration
QgsProcessingParameterRasterLayer|net_radiation|Name of input net radiation raster map [W/m2]|None|False
QgsProcessingParameterRasterLayer|soil_heatflux|Name of input soil heat flux raster map [W/m2]|None|False
QgsProcessingParameterRasterLayer|air_temperature|Name of input air temperature raster map [K]|None|False
QgsProcessingParameterRasterLayer|atmospheric_pressure|Name of input atmospheric pressure raster map [millibars]|None|False
QgsProcessingParameterNumber|priestley_taylor_coeff|Priestley-Taylor coefficient|QgsProcessingParameterNumber.Double|1.26|False|0.0|None
*QgsProcessingParameterBoolean|-z|Set negative ETa to zero|False
QgsProcessingParameterRasterDestination|output|Evapotranspiration

View File

@ -1,10 +1,10 @@
i.evapo.time
Computes temporal integration of satellite ET actual (ETa) following the daily ET reference (ETo) from meteorological station(s).
Imagery (i.*)
ParameterMultipleInput|eta|Names of satellite ETa raster maps [mm/d or cm/d]|3|False
ParameterMultipleInput|eta_doy|Names of satellite ETa Day of Year (DOY) raster maps [0-400] [-]|3|False
ParameterMultipleInput|eto|Names of meteorological station ETo raster maps [0-400] [mm/d or cm/d]|3|False
ParameterNumber|eto_doy_min|Value of DOY for ETo first day|0|366|1|False
ParameterNumber|start_period|Value of DOY for the first day of the period studied|0|366|1|False
ParameterNumber|end_period|Value of DOY for the last day of the period studied|0|366|1|False
OutputRaster|output|Temporal integration
QgsProcessingParameterMultipleLayers|eta|Names of satellite ETa raster maps [mm/d or cm/d]|3|None|False
QgsProcessingParameterMultipleLayers|eta_doy|Names of satellite ETa Day of Year (DOY) raster maps [0-400] [-]|3|None|False
QgsProcessingParameterMultipleLayers|eto|Names of meteorological station ETo raster maps [0-400] [mm/d or cm/d]|3|None|False
QgsProcessingParameterNumber|eto_doy_min|Value of DOY for ETo first day|QgsProcessingParameterNumber.Double|1|False|0|366
QgsProcessingParameterNumber|start_period|Value of DOY for the first day of the period studied|QgsProcessingParameterNumber.Double|1|False|0|366
QgsProcessingParameterNumber|end_period|Value of DOY for the last day of the period studied|QgsProcessingParameterNumber.Double|1|False|0|366
QgsProcessingParameterRasterDestination|output|Temporal integration

View File

@ -1,6 +1,6 @@
i.fft
Fast Fourier Transform (FFT) for image processing.
Imagery (i.*)
ParameterRaster|input|Name of input raster map|False
OutputRaster|real|Real part arrays
OutputRaster|imaginary|Imaginary part arrays
QgsProcessingParameterRasterLayer|input|Name of input raster map|None|False
QgsProcessingParameterRasterDestination|real|Real part arrays
QgsProcessingParameterRasterDestination|imaginary|Imaginary part arrays

View File

@ -1,7 +1,6 @@
i.gensig
Generates statistics for i.maxlik from raster map.
Imagery (i.*)
ParameterRaster|trainingmap|Ground truth training map|False
ParameterMultipleInput|input|Input rasters|3|False
OutputFile|signaturefile|Signature File
QgsProcessingParameterRasterLayer|trainingmap|Ground truth training map|None|False
QgsProcessingParameterMultipleLayers|input|Input rasters|3|None|False
QgsProcessingParameterFileDestination|signaturefile|Signature File|Txt files (*.txt)|None|False

View File

@ -1,8 +1,7 @@
i.gensigset
Generates statistics for i.smap from raster map.
Imagery (i.*)
ParameterRaster|trainingmap|Ground truth training map|False
ParameterMultipleInput|input|Input rasters|3|False
ParameterNumber|maxsig|Maximum number of sub-signatures in any class|1|None|5|True
OutputFile|signaturefile|Signature File
QgsProcessingParameterRasterLayer|trainingmap|Ground truth training map|None|False
QgsProcessingParameterMultipleLayers|input|Input rasters|3|None|False
QgsProcessingParameterNumber|maxsig|Maximum number of sub-signatures in any class|QgsProcessingParameterNumber.Integer|5|True|0|None
QgsProcessingParameterFileDestination|signaturefile|Signature File|Txt files (*.txt)|None|False

View File

@ -1,6 +1,5 @@
i.group
Regroup multiple mono-band rasters into a single multiband raster.
Imagery (i.*)
ParameterMultipleInput|input|Input rasters|3|False
OutputRaster|group|Multiband raster
QgsProcessingParameterMultipleLayers|input|Input rasters|3|None|False
QgsProcessingParameterRasterDestination|group|Multiband raster

View File

@ -1,9 +1,9 @@
i.his.rgb
Transforms raster maps from HIS (Hue-Intensity-Saturation) color space to RGB (Red-Green-Blue) color space.
Imagery (i.*)
ParameterRaster|hue|Name of input raster map (hue)|False
ParameterRaster|intensity|Name of input raster map (intensity)|False
ParameterRaster|saturation|Name of input raster map (saturation)|False
OutputRaster|red|Red
OutputRaster|green|Green
OutputRaster|blue|Blue
QgsProcessingParameterRasterLayer|hue|Name of input raster map (hue)|None|False
QgsProcessingParameterRasterLayer|intensity|Name of input raster map (intensity)|None|False
QgsProcessingParameterRasterLayer|saturation|Name of input raster map (saturation)|None|False
QgsProcessingParameterRasterDestination|red|Red
QgsProcessingParameterRasterDestination|green|Green
QgsProcessingParameterRasterDestination|blue|Blue

View File

@ -1,7 +1,6 @@
i.ifft
Inverse Fast Fourier Transform (IFFT) for image processing.
Imagery (i.*)
ParameterRaster|real|Name of input raster map (image fft, real part)|False
ParameterRaster|imaginary|Name of input raster map (image fft, imaginary part)|False
OutputRaster|output|Inverse Fast Fourier Transform
QgsProcessingParameterRasterLayer|real|Name of input raster map (image fft, real part)|None|False
QgsProcessingParameterRasterLayer|imaginary|Name of input raster map (image fft, imaginary part)|None|False
QgsProcessingParameterRasterDestination|output|Inverse Fast Fourier Transform

View File

@ -1,6 +1,5 @@
i.image.mosaic
Mosaics several images and extends colormap.
Imagery (i.*)
ParameterMultipleInput|input|Input rasters|3|False
OutputRaster|output|Mosaic Raster
QgsProcessingParameterMultipleLayers|input|Input rasters|3|None|False
QgsProcessingParameterRasterDestination|output|Mosaic Raster

View File

@ -1,7 +1,6 @@
i.in.spotvgt
Imports SPOT VGT NDVI data into a raster map.
Imagery (i.*)
ParameterRaster|input|Name of input SPOT VGT NDVI HDF file|False
*ParameterBoolean|-a|Also import quality map (SM status map layer) and filter NDVI map|False
OutputRaster|output|SPOT NDVI Raster
QgsProcessingParameterRasterLayer|input|Name of input SPOT VGT NDVI HDF file|None|False
*QgsProcessingParameterBoolean|-a|Also import quality map (SM status map layer) and filter NDVI map|False
QgsProcessingParameterRasterDestination|output|SPOT NDVI Raster

View File

@ -1,14 +1,13 @@
i.landsat.acca
Performs Landsat TM/ETM+ Automatic Cloud Cover Assessment (ACCA).
Imagery (i.*)
ParameterMultipleInput|rasters|Landsat input rasters|3|False
ParameterNumber|b56composite|B56composite (step 6)|0|None|225|True
ParameterNumber|b45ratio|B45ratio: Desert detection (step 10)|0|None|1|True
ParameterNumber|histogram|Number of classes in the cloud temperature histogram|0|None|100|True
*ParameterBoolean|-5|Data is Landsat-5 TM|False
*ParameterBoolean|-f|Apply post-processing filter to remove small holes|False
*ParameterBoolean|-x|Always use cloud signature (step 14)|False
*ParameterBoolean|-2|Bypass second-pass processing, and merge warm (not ambiguous) and cold clouds|False
*ParameterBoolean|-s|Include a category for cloud shadows|False
OutputRaster|output|ACCA Raster
QgsProcessingParameterMultipleLayers|rasters|Landsat input rasters|3|None|False
QgsProcessingParameterNumber|b56composite|B56composite (step 6)|QgsProcessingParameterNumber.Double|225.0|True|0.0|None
QgsProcessingParameterNumber|b45ratio|B45ratio: Desert detection (step 10)|QgsProcessingParameterNumber.Double|1.0|True|0.0|None
QgsProcessingParameterNumber|histogram|Number of classes in the cloud temperature histogram|QgsProcessingParameterNumber.Integer|100|True|0|None
*QgsProcessingParameterBoolean|-5|Data is Landsat-5 TM|False
*QgsProcessingParameterBoolean|-f|Apply post-processing filter to remove small holes|False
*QgsProcessingParameterBoolean|-x|Always use cloud signature (step 14)|False
*QgsProcessingParameterBoolean|-2|Bypass second-pass processing, and merge warm (not ambiguous) and cold clouds|False
*QgsProcessingParameterBoolean|-s|Include a category for cloud shadows|False
QgsProcessingParameterRasterDestination|output|ACCA Raster

View File

@ -1,19 +1,18 @@
i.landsat.toar
Calculates top-of-atmosphere radiance or reflectance and temperature for Landsat MSS/TM/ETM+/OLI
Imagery (i.*)
ParameterMultipleInput|rasters|Landsat input rasters|3|False
ParameterFile|metfile|Name of Landsat metadata file (.met or MTL.txt)|False|True
ParameterSelection|sensor|Spacecraft sensor|mss1;mss2;mss3;mss4;mss5;tm4;tm5;tm7;oli8|7
ParameterSelection|method|Atmospheric correction method|uncorrected;dos1;dos2;dos2b;dos3;dos4|0
ParameterString|date|Image acquisition date (yyyy-mm-dd)|None|False|True
ParameterString|sun_elevation|Sun elevation in degrees|None|False|True
ParameterString|product_date|Image creation date (yyyy-mm-dd)|None|False|True
ParameterString|gain|Gain (H/L) of all Landsat ETM+ bands (1-5,61,62,7,8)|None|False|True
ParameterNumber|percent|Percent of solar radiance in path radiance|0.0|100.0|0.01|True
ParameterNumber|pixel|Minimum pixels to consider digital number as dark object|0|None|1000|True
ParameterNumber|rayleigh|Rayleigh atmosphere (diffuse sky irradiance)|0.0|None|0.0|True
ParameterNumber|scale|Scale factor for output|1.0|None|1.0|True
*ParameterBoolean|-r|Output at-sensor radiance instead of reflectance for all bands|False
*ParameterBoolean|-n|Input raster maps use as extension the number of the band instead the code|False
OutputDirectory|output|Output Directory
QgsProcessingParameterMultipleLayers|rasters|Landsat input rasters|3|None|False
QgsProcessingParameterFile|metfile|Name of Landsat metadata file (.met or MTL.txt)|0|met|None|True
QgsProcessingParameterEnum|sensor|Spacecraft sensor|mss1;mss2;mss3;mss4;mss5;tm4;tm5;tm7;oli8|False|7
QgsProcessingParameterEnum|method|Atmospheric correction method|uncorrected;dos1;dos2;dos2b;dos3;dos4|False|0
QgsProcessingParameterString|date|Image acquisition date (yyyy-mm-dd)|None|False|True
QgsProcessingParameterNumber|sun_elevation|Sun elevation in degrees|QgsProcessingParameterNumber.Double|None|True|0.0|360.0
QgsProcessingParameterString|product_date|Image creation date (yyyy-mm-dd)|None|False|True
QgsProcessingParameterString|gain|Gain (H/L) of all Landsat ETM+ bands (1-5,61,62,7,8)|None|False|True
QgsProcessingParameterNumber|percent|Percent of solar radiance in path radiance|QgsProcessingParameterNumber.Double|0.01|True|0.0|100.0
QgsProcessingParameterNumber|pixel|Minimum pixels to consider digital number as dark object|QgsProcessingParameterNumber.Integer|1000|True|0|None
QgsProcessingParameterNumber|rayleigh|Rayleigh atmosphere (diffuse sky irradiance)|QgsProcessingParameterNumber.Double|0.0|True|0.0|None
QgsProcessingParameterNumber|scale|Scale factor for output|QgsProcessingParameterNumber.Double|1.0|True|0.0|None
*QgsProcessingParameterBoolean|-r|Output at-sensor radiance instead of reflectance for all bands|False
*QgsProcessingParameterBoolean|-n|Input raster maps use as extension the number of the band instead the code|False
QgsProcessingParameterFolderDestination|output|Output Directory

View File

@ -1,7 +1,7 @@
i.maxlik
Classifies the cell spectral reflectances in imagery data.
Imagery (i.*)
ParameterMultipleInput|input|Input rasters|3|False
ParameterFile|signaturefile|Name of input file containing signatures|False|False
OutputRaster|output|Classification
OutputRaster|reject|Reject Threshold
QgsProcessingParameterMultipleLayers|input|Input rasters|3|None|False
QgsProcessingParameterFile|signaturefile|Name of input file containing signatures|0|txt|None|False
QgsProcessingParameterRasterDestination|output|Classification
QgsProcessingParameterRasterDestination|reject|Reject Threshold

View File

@ -1,9 +1,8 @@
i.modis.qc
Extracts quality control parameters from MODIS QC layers.
Imagery (i.*)
ParameterRaster|input|Name of input surface reflectance QC layer [bit array]|False
ParameterSelection|productname|Name of MODIS product type|mod09Q1;mod09A1;mod09A1s;mod09CMG;mod09CMGs;mod09CMGi;mod11A1;mod11A2;mod13A2;mcd43B2;mcd43B2q|8
ParameterSelection|qcname|Name of QC type to extract|adjcorr;atcorr;cloud;data_quality;diff_orbit_from_500m;modland_qa;mandatory_qa_11A1;data_quality_flag_11A1;emis_error_11A1;lst_error_11A1;data_quality_flag_11A2;emis_error_11A2;mandatory_qa_11A2;lst_error_11A2;aerosol_quantity;brdf_correction_performed;cirrus_detected;cloud_shadow;cloud_state;internal_cloud_algorithm;internal_fire_algorithm;internal_snow_mask;land_water;mod35_snow_ice;pixel_adjacent_to_cloud;icm_cloudy;icm_clear;icm_high_clouds;icm_low_clouds;icm_snow;icm_fire;icm_sun_glint;icm_dust;icm_cloud_shadow;icm_pixel_is_adjacent_to_cloud;icm_cirrus;icm_pan_flag;icm_criteria_for_aerosol_retrieval;icm_aot_has_clim_val;modland_qa;vi_usefulness;aerosol_quantity;pixel_adjacent_to_cloud;brdf_correction_performed;mixed_clouds;land_water;possible_snow_ice;possible_shadow;platform;land_water;sun_z_angle_at_local_noon;brdf_correction_performed|5
ParameterString|band|Band number of MODIS product (mod09Q1=[1,2],mod09A1=[1-7],m[o/y]d09CMG=[1-7], mcd43B2q=[1-7])|None|False|True
OutputRaster|output|QC Classification
QgsProcessingParameterRasterLayer|input|Name of input surface reflectance QC layer [bit array]|None|False
QgsProcessingParameterEnum|productname|Name of MODIS product type|mod09Q1;mod09A1;mod09A1s;mod09CMG;mod09CMGs;mod09CMGi;mod11A1;mod11A2;mod13A2;mcd43B2;mcd43B2q|False|8
QgsProcessingParameterEnum|qcname|Name of QC type to extract|adjcorr;atcorr;cloud;data_quality;diff_orbit_from_500m;modland_qa;mandatory_qa_11A1;data_quality_flag_11A1;emis_error_11A1;lst_error_11A1;data_quality_flag_11A2;emis_error_11A2;mandatory_qa_11A2;lst_error_11A2;aerosol_quantity;brdf_correction_performed;cirrus_detected;cloud_shadow;cloud_state;internal_cloud_algorithm;internal_fire_algorithm;internal_snow_mask;land_water;mod35_snow_ice;pixel_adjacent_to_cloud;icm_cloudy;icm_clear;icm_high_clouds;icm_low_clouds;icm_snow;icm_fire;icm_sun_glint;icm_dust;icm_cloud_shadow;icm_pixel_is_adjacent_to_cloud;icm_cirrus;icm_pan_flag;icm_criteria_for_aerosol_retrieval;icm_aot_has_clim_val;modland_qa;vi_usefulness;aerosol_quantity;pixel_adjacent_to_cloud;brdf_correction_performed;mixed_clouds;land_water;possible_snow_ice;possible_shadow;platform;land_water;sun_z_angle_at_local_noon;brdf_correction_performed|False|5
QgsProcessingParameterString|band|Band number of MODIS product (mod09Q1=[1,2],mod09A1=[1-7],m[o/y]d09CMG=[1-7], mcd43B2q=[1-7])|None|False|True
QgsProcessingParameterRasterDestination|output|QC Classification

View File

@ -1,8 +1,7 @@
i.oif
Calculates Optimum-Index-Factor table for spectral bands
Imagery (i.*)
ParameterMultipleInput|input|Name of input raster map(s)|3|False
*ParameterBoolean|-g|Print in shell script style|False
*ParameterBoolean|-s|Process bands serially (default: run in parallel)|False
OutputFile|output|OIF File
QgsProcessingParameterMultipleLayers|input|Name of input raster map(s)|3|None|False
*QgsProcessingParameterBoolean|-g|Print in shell script style|False
*QgsProcessingParameterBoolean|-s|Process bands serially (default: run in parallel)|False
QgsProcessingParameterFileDestination|output|OIF File|Txt files (*.txt)|None|False

View File

@ -1,14 +1,13 @@
i.pansharpen
Image fusion algorithms to sharpen multispectral with high-res panchromatic channels
Imagery (i.*)
ParameterRaster|red|Name of red channel|False
ParameterRaster|green|Name of green channel|False
ParameterRaster|blue|Name of blue channel|False
ParameterRaster|pan|Name of raster map to be used for high resolution panchromatic channel|False
ParameterSelection|method|Method|brovey;ihs;pca|1
*ParameterBoolean|-l|Rebalance blue channel for LANDSAT|False
*ParameterBoolean|-s|Process bands serially (default: run in parallel)|False
OutputRaster|redoutput|Enhanced Red
OutputRaster|greenoutput|Enhanced Green
OutputRaster|blueoutput|Enhanced Blue
QgsProcessingParameterRasterLayer|red|Name of red channel|None|False
QgsProcessingParameterRasterLayer|green|Name of green channel|None|False
QgsProcessingParameterRasterLayer|blue|Name of blue channel|None|False
QgsProcessingParameterRasterLayer|pan|Name of raster map to be used for high resolution panchromatic channel|None|False
QgsProcessingParameterEnum|method|Method|brovey;ihs;pca|False|1
*QgsProcessingParameterBoolean|-l|Rebalance blue channel for LANDSAT|False
*QgsProcessingParameterBoolean|-s|Process bands serially (default: run in parallel)|False
QgsProcessingParameterRasterDestination|redoutput|Enhanced Red
QgsProcessingParameterRasterDestination|greenoutput|Enhanced Green
QgsProcessingParameterRasterDestination|blueoutput|Enhanced Blue

View File

@ -1,10 +1,9 @@
i.pca
Principal components analysis (PCA) for image processing.
Imagery (i.*)
ParameterMultipleInput|input|Name of two or more input raster maps|3|False
ParameterString|rescale|Rescaling range for output maps. For no rescaling use 0,0|0,255|False|True
ParameterNumber|percent|Cumulative percent importance for filtering|50.0|99.0|99.0|True
*ParameterBoolean|-n|Normalize (center and scale) input maps|False
*ParameterBoolean|-f|Output will be filtered input bands|False
OutputDirectory|output|Output Directory
QgsProcessingParameterMultipleLayers|input|Name of two or more input raster maps|3|None|False
QgsProcessingParameterRange|rescale|Rescaling range for output maps. For no rescaling use 0,0|0,255|True
QgsProcessingParameterNumber|percent|Cumulative percent importance for filtering|QgsProcessingParameterNumber.Integer|99|True|50|99
*QgsProcessingParameterBoolean|-n|Normalize (center and scale) input maps|False
*QgsProcessingParameterBoolean|-f|Output will be filtered input bands|False
QgsProcessingParameterFolderDestination|output|Output Directory

View File

@ -1,14 +1,13 @@
i.rectify
Rectifies an image by computing a coordinate transformation for each pixel in the image based on the control points.
Imagery (i.*)
ParameterMultipleInput|rasters|Name of raster maps to rectify|3|False
ParameterFile|gcp|Ground Control Points file|False|False
ParameterSelection|order|Rectification polynomial order|1;2;3|0
ParameterString|resolution|Target resolution|None|False|True
ParameterNumber|memory|Amount of memory to use in MB|1|None|300|True
ParameterSelection|method|Interpolation method to use|nearest;linear;cubic;lanczos;linear_f;cubic_f;lanczos_f|0
ParameterCrs|crs|Destination CRS|None|False
QgsProcessingParameterMultipleLayers|rasters|Name of raster maps to rectify|3|None|False
QgsProcessingParameterFile|gcp|Ground Control Points file|0|txt|None|False
QgsProcessingParameterEnum|order|Rectification polynomial order|1;2;3|False|0
QgsProcessingParameterNumber|resolution|Target resolution|QgsProcessingParameterNumber.Double|None|True|None|None
QgsProcessingParameterNumber|memory|Amount of memory to use in MB|QgsProcessingParameterNumber.Integer|300|True|1|None
QgsProcessingParameterEnum|method|Interpolation method to use|nearest;linear;cubic;lanczos;linear_f;cubic_f;lanczos_f|False|0
QgsProcessingParameterCrs|crs|Destination CRS|None|False
Hardcoded|extension=rectified
*ParameterBoolean|-t|Use thin plate spline|False
OutputDirectory|output|Output Directory
*QgsProcessingParameterBoolean|-t|Use thin plate spline|False
QgsProcessingParameterFolderDestination|output|Output Directory

View File

@ -1,9 +1,9 @@
i.rgb.his
Transforms raster maps from RGB (Red-Green-Blue) color space to HIS (Hue-Intensity-Saturation) color space.
Imagery (i.*)
ParameterRaster|red|Name for input raster map (red)|True
ParameterRaster|green|Name for input raster map (green)|True
ParameterRaster|blue|Name for input raster map (blue)|True
OutputRaster|hue|Hue|False
OutputRaster|intensity|Intensity|False
OutputRaster|saturation|Saturation|False
QgsProcessingParameterRasterLayer|red|Name for input raster map (red)|None|True
QgsProcessingParameterRasterLayer|green|Name for input raster map (green)|None|True
QgsProcessingParameterRasterLayer|blue|Name for input raster map (blue)|None|True
QgsProcessingParameterRasterDestination|hue|Hue|False
QgsProcessingParameterRasterDestination|intensity|Intensity|False
QgsProcessingParameterRasterDestination|saturation|Saturation|False

View File

@ -1,16 +1,16 @@
i.segment
Identifies segments (objects) from imagery data.
Imagery (i.*)
ParameterMultipleInput|input|Input rasters|3|False
ParameterNumber|threshold|Difference threshold between 0 and 1|0.0|1.0|0.5|False
ParameterSelection|method|Segmentation method|region_growing|0
ParameterSelection|similarity|Similarity calculation method|euclidean;manhattan|0
ParameterNumber|minsize|Minimum number of cells in a segment|1|100000|1|True
ParameterNumber|memory|Amount of memory to use in MB|1|None|300|True
ParameterNumber|iterations|Maximum number of iterations|1|None|20|True
ParameterRaster|seeds|Name for input raster map with starting seeds|True
ParameterRaster|bounds|Name of input bounding/constraining raster map|True
*ParameterBoolean|-d|Use 8 neighbors (3x3 neighborhood) instead of the default 4 neighbors for each pixel|False
*ParameterBoolean|-w|Weighted input, do not perform the default scaling of input raster maps|False
OutputRaster|output|Segmented Raster
OutputRaster|goodness|Goodness Raster
QgsProcessingParameterMultipleLayers|input|Input rasters|3|None|False
QgsProcessingParameterNumber|threshold|Difference threshold between 0 and 1|QgsProcessingParameterNumber.Double|0.5|False|0.0|1.0
QgsProcessingParameterEnum|method|Segmentation method|region_growing|False|0
QgsProcessingParameterEnum|similarity|Similarity calculation method|euclidean;manhattan|False|0
QgsProcessingParameterNumber|minsize|Minimum number of cells in a segment|QgsProcessingParameterNumber.Integer|1|True|1|100000
QgsProcessingParameterNumber|memory|Amount of memory to use in MB|QgsProcessingParameterNumber.Integer|300|True|1|None
QgsProcessingParameterNumber|iterations|Maximum number of iterations|QgsProcessingParameterNumber.Integer|20|True|1|None
QgsProcessingParameterRasterLayer|seeds|Name for input raster map with starting seeds|None|True
QgsProcessingParameterRasterLayer|bounds|Name of input bounding/constraining raster map|None|True
*QgsProcessingParameterBoolean|-d|Use 8 neighbors (3x3 neighborhood) instead of the default 4 neighbors for each pixel|False
*QgsProcessingParameterBoolean|-w|Weighted input, do not perform the default scaling of input raster maps|False
QgsProcessingParameterRasterDestination|output|Segmented Raster
QgsProcessingParameterRasterDestination|goodness|Goodness Raster

View File

@ -1,9 +1,9 @@
i.smap
Performs contextual image classification using sequential maximum a posteriori (SMAP) estimation.
Imagery (i.*)
ParameterMultipleInput|input|Input rasters|3|False
ParameterFile|signaturefile|Name of input file containing signatures|False|False
ParameterNumber|blocksize|Size of submatrix to process at one time|1|None|1024|True
*ParameterBoolean|-m|Use maximum likelihood estimation (instead of smap)|False
OutputRaster|output|Classification
OutputRaster|goodness|Goodness_of_fit
QgsProcessingParameterMultipleLayers|input|Input rasters|3|None|False
QgsProcessingParameterFile|signaturefile|Name of input file containing signatures|0|txt|None|False
QgsProcessingParameterNumber|blocksize|Size of submatrix to process at one time|QgsProcessingParameterNumber.Integer|1024|True|1|None
*QgsProcessingParameterBoolean|-m|Use maximum likelihood estimation (instead of smap)|False
QgsProcessingParameterRasterDestination|output|Classification
QgsProcessingParameterRasterDestination|goodness|Goodness_of_fit

View File

@ -1,6 +1,6 @@
i.tasscap
Performs Tasseled Cap (Kauth Thomas) transformation.
Imagery (i.*)
ParameterMultipleInput|input|Input rasters. Landsat4-7: bands 1,2,3,4,5,7; Landsat8: bands 2,3,4,5,6,7; MODIS: bands 1,2,3,4,5,6,7|3|False
ParameterSelection|sensor|Satellite sensor|landsat4_tm;landsat5_tm;landsat7_etm;landsat8_oli;modis|0
OutputDirectory|output|Output Directory
QgsProcessingParameterMultipleLayers|input|Input rasters. Landsat4-7: bands 1,2,3,4,5,7; Landsat8: bands 2,3,4,5,6,7; MODIS: bands 1,2,3,4,5,6,7|3|None|False
QgsProcessingParameterEnum|sensor|Satellite sensor|landsat4_tm;landsat5_tm;landsat7_etm;landsat8_oli;modis|False|0
QgsProcessingParameterFolderDestination|output|Output Directory

View File

@ -1,8 +1,8 @@
i.topo.corr
i.topo.coor.ill - Creates illumination model for topographic correction of reflectance.
Imagery (i.*)
ParameterRaster|basemap|Name of elevation raster map|False
ParameterNumber|zenith|Solar zenith in degrees|0.0|360.0|0.0|False
ParameterNumber|azimuth|Solar azimuth in degrees|0.0|360.0|0.0|False
QgsProcessingParameterRasterLayer|basemap|Name of elevation raster map|None|False
QgsProcessingParameterNumber|zenith|Solar zenith in degrees|QgsProcessingParameterNumber.Double|0.0|False|0.0|360.0
QgsProcessingParameterNumber|azimuth|Solar azimuth in degrees|QgsProcessingParameterNumber.Double|0.0|False|0.0|360.0
Hardcoded|-i
OutputRaster|output|Illumination Model
QgsProcessingParameterRasterDestination|output|Illumination Model

View File

@ -1,9 +1,9 @@
i.topo.corr
Computes topographic correction of reflectance.
Imagery (i.*)
ParameterMultipleInput|input|Name of reflectance raster maps to be corrected topographically|3|False
ParameterRaster|basemap|Name of illumination input base raster map|False
ParameterNumber|zenith|Solar zenith in degrees|0.0|360.0|0.0|False
ParameterSelection|method|Topographic correction method|cosine;minnaert;c-factor;percent|0
*ParameterBoolean|-s|Scale output to input and copy color rules|False
OutputDirectory|output|Output Directory
QgsProcessingParameterMultipleLayers|input|Name of reflectance raster maps to be corrected topographically|3|None|False
QgsProcessingParameterRasterLayer|basemap|Name of illumination input base raster map|None|False
QgsProcessingParameterNumber|zenith|Solar zenith in degrees|QgsProcessingParameterNumber.Double|0.0|False|0.0|360.0
QgsProcessingParameterEnum|method|Topographic correction method|cosine;minnaert;c-factor;percent|False|0
*QgsProcessingParameterBoolean|-s|Scale output to input and copy color rules|False
QgsProcessingParameterFolderDestination|output|Output Directory

View File

@ -1,15 +1,15 @@
i.vi
Calculates different types of vegetation indices.
Imagery (i.*)
ParameterRaster|red|Name of input red channel surface reflectance map [0.0-1.0]|True
ParameterSelection|viname|Type of vegetation index|arvi;dvi;evi;evi2;gvi;gari;gemi;ipvi;msavi;msavi2;ndvi;pvi;savi;sr;vari;wdvi|10
ParameterRaster|nir|Name of input nir channel surface reflectance map [0.0-1.0]|True
ParameterRaster|green|Name of input green channel surface reflectance map [0.0-1.0]|True
ParameterRaster|blue|Name of input blue channel surface reflectance map [0.0-1.0]|True
ParameterRaster|band5|Name of input 5th channel surface reflectance map [0.0-1.0]|True
ParameterRaster|band7|Name of input 7th channel surface reflectance map [0.0-1.0]|True
ParameterString|soil_line_slope|Value of the slope of the soil line (MSAVI2 only)|None|False|True
ParameterString|soil_line_intercept|Value of the factor of reduction of soil noise (MSAVI2 only)|None|False|True
ParameterString|soil_noise_reduction|Value of the slope of the soil line (MSAVI2 only)|None|False|True
ParameterSelection|storage_bit|Maximum bits for digital numbers|7;8;9;10;16|1
OutputRaster|output|Vegetation Index
QgsProcessingParameterRasterLayer|red|Name of input red channel surface reflectance map [0.0-1.0]|None|True
QgsProcessingParameterEnum|viname|Type of vegetation index|arvi;dvi;evi;evi2;gvi;gari;gemi;ipvi;msavi;msavi2;ndvi;pvi;savi;sr;vari;wdvi|False|10
QgsProcessingParameterRasterLayer|nir|Name of input nir channel surface reflectance map [0.0-1.0]|None|True
QgsProcessingParameterRasterLayer|green|Name of input green channel surface reflectance map [0.0-1.0]|None|True
QgsProcessingParameterRasterLayer|blue|Name of input blue channel surface reflectance map [0.0-1.0]|None|True
QgsProcessingParameterRasterLayer|band5|Name of input 5th channel surface reflectance map [0.0-1.0]|None|True
QgsProcessingParameterRasterLayer|band7|Name of input 7th channel surface reflectance map [0.0-1.0]|None|True
QgsProcessingParameterString|soil_line_slope|Value of the slope of the soil line (MSAVI2 only)|None|False|True
QgsProcessingParameterString|soil_line_intercept|Value of the factor of reduction of soil noise (MSAVI2 only)|None|False|True
QgsProcessingParameterString|soil_noise_reduction|Value of the slope of the soil line (MSAVI2 only)|None|False|True
QgsProcessingParameterEnum|storage_bit|Maximum bits for digital numbers|7;8;9;10;16|False|1
QgsProcessingParameterRasterDestination|output|Vegetation Index

View File

@ -1,9 +1,8 @@
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
QgsProcessingParameterRasterLayer|input|Name of input raster map|None|False
QgsProcessingParameterNumber|width|x-y extent of the Gaussian filter|QgsProcessingParameterNumber.Double|9|False|None|1
QgsProcessingParameterNumber|threshold|Sensitivity of Gaussian filter|QgsProcessingParameterNumber.Double|10.0|False|None|0
QgsProcessingParameterNumber|orientations|Number of azimuth directions categorized|QgsProcessingParameterNumber.Double|1|False|None|0
QgsProcessingParameterRasterDestination|output|Zero crossing

View File

@ -1,10 +1,10 @@
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
ParameterPoint|coordinates|Starting coordinate pair|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
QgsProcessingParameterFile|input|Name of input file|0|txt|None|False
QgsProcessingParameterFileDestination|output|Output text file|Txt files (*.txt)|None|False
QgsProcessingParameterPoint|coordinates|Starting coordinate pair|0.0,0.0
*QgsProcessingParameterBoolean|-l|Lines are labelled|False
*QgsProcessingParameterBoolean|-q|Suppress warnings|False
*QgsProcessingParameterBoolean|-r|Convert from coordinates to bearing and distance|False
*QgsProcessingParameterBoolean|-c|Repeat the starting coordinate at the end to close a loop|False

View File

@ -1,8 +1,8 @@
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
QgsProcessingParameterMultipleLayers|elevation|Name of elevation raster map|3|None|False
QgsProcessingParameterMultipleLayers|color|Name of raster map(s) for Color|3|None|False
QgsProcessingParameterMultipleLayers|vector|Name of vector lines/areas overlay map(s)|-1|None|False
QgsProcessingParameterMultipleLayers|point|Name of vector points overlay file(s)|0|None|True
QgsProcessingParameterMultipleLayers|volume|Name of existing 3d raster map|3|None|True

View File

@ -1,9 +0,0 @@
r.slope.aspect
r.aspect - Generates raster maps of aspect from an elevation raster map.
Raster (r.*)
ParameterRaster|elevation|Elevation|False
ParameterSelection|precision|Data type|FCELL;CELL;DCELL|0
*ParameterBoolean|-a|Do not align the current region to the elevation layer|False
ParameterNumber|zscale|Multiplicative factor to convert elevation units to meters|None|None|1.0
ParameterNumber|min_slope|Minimum slope val. (in percent) for which aspect is computed|None|None|0.0
OutputRaster|aspect|Aspect

View File

@ -1,7 +1,7 @@
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
QgsProcessingParameterRasterLayer|cnetwork|Input coded stream network raster layer|None|False
QgsProcessingParameterRasterLayer|tnetwork|Input thinned ridge network raster layer|None|False
QgsProcessingParameterNumber|number|Number of passes through the dataset|QgsProcessingParameterNumber.Double|1|False|None|None
QgsProcessingParameterRasterDestination|output|Watersheds

View File

@ -1,9 +1,9 @@
r.blend
r.blend.combine - Blends color components of two raster maps by a given ratio and export into a unique raster.
Raster (r.*)
ParameterRaster|first|Name of first raster map for blending|False
ParameterRaster|second|Name of second raster map for blending|False
ParameterNumber|percent|Percentage weight of first map for color blending|0.0|100.0|50.0|True
QgsProcessingParameterRasterLayer|first|Name of first raster map for blending|None|False
QgsProcessingParameterRasterLayer|second|Name of second raster map for blending|None|False
QgsProcessingParameterNumber|percent|Percentage weight of first map for color blending|QgsProcessingParameterNumber.Double|50.0|True|0.0|100.0
Hardcoded|-c
OutputRaster|output|Blended
QgsProcessingParameterRasterDestination|output|Blended

View File

@ -1,10 +1,9 @@
r.blend
r.blend.rgb - Blends color components of two raster maps by a given ratio and exports into three rasters.
Raster (r.*)
ParameterRaster|first|Name of first raster map for blending|False
ParameterRaster|second|Name of second raster map for blending|False
ParameterNumber|percent|Percentage weight of first map for color blending|0.0|100.0|50.0|True
OutputRaster|output_red|Blended Red
OutputRaster|output_green|Blended Green
OutputRaster|output_blue|Blended Blue
QgsProcessingParameterRasterLayer|first|Name of first raster map for blending|None|False
QgsProcessingParameterRasterLayer|second|Name of second raster map for blending|None|False
QgsProcessingParameterNumber|percent|Percentage weight of first map for color blending|QgsProcessingParameterNumber.Double|50.0|True|0.0|100.0
QgsProcessingParameterRasterDestination|output_red|Blended Red
QgsProcessingParameterRasterDestination|output_green|Blended Green
QgsProcessingParameterRasterDestination|output_blue|Blended Blue

View File

@ -1,8 +1,8 @@
r.buffer.lowmem
Creates a raster map layer showing buffer zones surrounding cells that contain non-NULL category values (low-memory alternative).
Raster (r.*)
ParameterRaster|input|Input raster layer|False
ParameterString|distances|Distance zone(s) (e.g. 100,200,300)|None|False|False
ParameterSelection|units|Units of distance|meters;kilometers;feet;miles;nautmiles|False
ParameterBoolean|-z|Ignore zero (0) data cells instead of NULL cells|False
OutputRaster|output|Buffer
QgsProcessingParameterRasterLayer|input|Input raster layer|None|False
QgsProcessingParameterString|distances|Distance zone(s) (e.g. 100,200,300)|None|False|False
QgsProcessingParameterEnum|units|Units of distance|meters;kilometers;feet;miles;nautmiles|False|0|False
QgsProcessingParameterBoolean|-z|Ignore zero (0) data cells instead of NULL cells|False
QgsProcessingParameterRasterDestination|output|Buffer

View File

@ -1,8 +1,8 @@
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)|None|False|False
ParameterSelection|units|Units of distance|meters;kilometers;feet;miles;nautmiles|False
ParameterBoolean|-z|Ignore zero (0) data cells instead of NULL cells|False
OutputRaster|output|Buffer
QgsProcessingParameterRasterLayer|input|Input raster layer|None|False
QgsProcessingParameterString|distances|Distance zone(s) (e.g. 100,200,300)|None|False|False
QgsProcessingParameterEnum|units|Units of distance|meters;kilometers;feet;miles;nautmiles|False|0|False
QgsProcessingParameterBoolean|-z|Ignore zero (0) data cells instead of NULL cells|False
QgsProcessingParameterRasterDestination|output|Buffer

View File

@ -1,10 +1,10 @@
r.carve
Takes vector stream data, transforms it to raster and subtracts depth from the output DEM.
Raster (r.*)
ParameterRaster|raster|Elevation|False
ParameterVector|vector|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
QgsProcessingParameterRasterLayer|raster|Elevation|None|False
QgsProcessingParameterVectorLayer|vector|Vector layer containing stream(s)|1|None|False
QgsProcessingParameterNumber|width|Stream width (in meters). Default is raster cell width|QgsProcessingParameterNumber.Double|1|False|None|None
QgsProcessingParameterNumber|depth|Additional stream depth (in meters)|QgsProcessingParameterNumber.Double|1|False|None|None
QgsProcessingParameterBoolean|-n|No flat areas allowed in flow direction|False
QgsProcessingParameterRasterDestination|output|Modified elevation
QgsProcessingParameterVectorDestination|points|Adjusted stream points

View File

@ -1,8 +1,8 @@
r.category
r.category.out - Exports category values and labels associated with user-specified raster map layers.
Raster (r.*)
ParameterRaster|map|Name of raster map|False
ParameterString|cats|Category values (for Integer rasters). Example: 1,3,7-9,13|None|False|True
ParameterString|values|Comma separated value list (for float rasters). Example: 1.4,3.8,13|None|False|True
ParameterString|separator|Field separator (Special characters: pipe, comma, space, tab, newline)|tab|False|True
OutputFile|output|Category
QgsProcessingParameterRasterLayer|map|Name of raster map|None|False
QgsProcessingParameterString|cats|Category values (for Integer rasters). Example: 1,3,7-9,13|None|False|True
QgsProcessingParameterString|values|Comma separated value list (for float rasters). Example: 1.4,3.8,13|None|False|True
QgsProcessingParameterString|separator|Field separator (Special characters: pipe, comma, space, tab, newline)|tab|False|True
QgsProcessingParameterFileDestination|output|Category|Txt files (*.txt)|None|False

View File

@ -1,11 +1,11 @@
r.category
Manages category values and labels associated with user-specified raster map layers.
Raster (r.*)
ParameterRaster|map|Name of raster map|False
ParameterString|separator|Field separator (Special characters: pipe, comma, space, tab, newline)|tab|False|True
ParameterFile|rules|File containing category label rules|False|True
ParameterString|txtrules|Inline category label rules|None|True|True
ParameterRaster|raster|Raster map from which to copy category table|True
*ParameterString|format|Default label or format string for dynamic labeling. Used when no explicit label exists for the category|None|False|True
*ParameterString|coefficients|Dynamic label coefficients. Two pairs of category multiplier and offsets, for $1 and $2|None|False|True
OutputRaster|output|Category
QgsProcessingParameterRasterLayer|map|Name of raster map|None|False
QgsProcessingParameterString|separator|Field separator (Special characters: pipe, comma, space, tab, newline)|tab|False|True
QgsProcessingParameterFile|rules|File containing category label rules|0|txt|None|True
QgsProcessingParameterString|txtrules|Inline category label rules|None|True|True
QgsProcessingParameterRasterLayer|raster|Raster map from which to copy category table|None|True
*QgsProcessingParameterString|format|Default label or format string for dynamic labeling. Used when no explicit label exists for the category|None|False|True
*QgsProcessingParameterString|coefficients|Dynamic label coefficients. Two pairs of category multiplier and offsets, for $1 and $2|None|False|True
QgsProcessingParameterRasterDestination|output|Category

View File

@ -1,9 +1,9 @@
r.circle
Creates a raster map containing concentric rings around a given point.
Raster (r.*)
ParameterPoint|coordinates|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|multiplier|Data value multiplier|1
ParameterBoolean|-b|Generate binary raster map|False
OutputRaster|output|Circles
QgsProcessingParameterPoint|coordinates|The coordinate of the center (east,north)|0,0
QgsProcessingParameterNumber|min|Minimum radius for ring/circle map (in meters)|QgsProcessingParameterNumber.Double|10|False|None|None
QgsProcessingParameterNumber|max|Maximum radius for ring/circle map (in meters)|QgsProcessingParameterNumber.Double|20|False|None|None
QgsProcessingParameterNumber|multiplier|Data value multiplier|QgsProcessingParameterNumber.Double|1.0|False|None|None
QgsProcessingParameterBoolean|-b|Generate binary raster map|False
QgsProcessingParameterRasterDestination|output|Circles

View File

@ -1,6 +1,7 @@
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|Clumps
QgsProcessingParameterRasterLayer|input|Input layer|None|False
QgsProcessingParameterString|title|Title for output raster map|
*QgsProcessingParameterBoolean|-d|Clump also diagonal cells|False
QgsProcessingParameterRasterDestination|output|Clumps

View File

@ -1,8 +1,8 @@
r.coin
Tabulates the mutual occurrence (coincidence) of categories for two raster map layers.
Raster (r.*)
ParameterRaster|first|Name of first raster map|False
ParameterRaster|second|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|Coincidence report
QgsProcessingParameterRasterLayer|first|Name of first raster map|None|False
QgsProcessingParameterRasterLayer|second|Name of second raster map|None|False
QgsProcessingParameterEnum|units|Unit of measure|c;p;x;y;a;h;k;m
QgsProcessingParameterBoolean|-w|Wide report, 132 columns (default: 80)|False
QgsProcessingParameterFileDestination|html|Coincidence report|Html files (*.html)|report.html|False

View File

@ -1,6 +1,6 @@
r.colors.out
Exports the color table associated with a raster map.
Raster (r.*)
ParameterRaster|map|Name of raster map|False
*ParameterBoolean|-p|Output values as percentages|False|True
OutputFile|rules|Color Table
QgsProcessingParameterRasterLayer|map|Name of raster map|None|False
*QgsProcessingParameterBoolean|-p|Output values as percentages|False|True
QgsProcessingParameterFileDestination|rules|Color Table|Txt files (*.txt)|None|False

View File

@ -1,7 +1,7 @@
r.colors.stddev
Sets color rules based on stddev from a raster map's mean value.
Raster (r.*)
ParameterRaster|map|Name of raster map|False
*ParameterBoolean|-b|Color using standard deviation bands|False
*ParameterBoolean|-z|Force center at zero|False
OutputRaster|output|Stddev Colors
QgsProcessingParameterRasterLayer|map|Name of raster map|None|False
*QgsProcessingParameterBoolean|-b|Color using standard deviation bands|False
*QgsProcessingParameterBoolean|-z|Force center at zero|False
QgsProcessingParameterRasterDestination|output|Stddev Colors

View File

@ -1,16 +1,15 @@
r.colors
Creates/modifies the color table associated with a raster map.
Raster (r.*)
ParameterMultipleInput|map|Name of raster maps(s)|3|False
ParameterSelection|color|Name of color table|not selected;aspect;aspectcolr;bcyr;bgyr;blues;byg;byr;celsius;corine;curvature;differences;elevation;etopo2;evi;fahrenheit;gdd;greens;grey;grey.eq;grey.log;grey1.0;grey255;gyr;haxby;kelvin;ndvi;ndwi;oranges;population;population_dens;precipitation;precipitation_daily;precipitation_monthly;rainbow;ramp;random;reds;rstcurv;ryb;ryg;sepia;slope;srtm;srtm_plus;terrain;wave|0|False|True
ParameterString|rules_txt|Color rules|None|True|True
ParameterFile|rules|Color rules file|False|True
ParameterRaster|raster|Raster map from which to copy color table|True
ParameterBoolean|-r|Remove existing color table|False
ParameterBoolean|-w|Only write new color table if it does not already exist|False
ParameterBoolean|-n|Invert colors|False
ParameterBoolean|-g|Logarithmic scaling|False
ParameterBoolean|-a|Logarithmic-absolute scaling|False
ParameterBoolean|-e|Histogram equalization|False
OutputDirectory|output_dir|Output Directory
QgsProcessingParameterMultipleLayers|map|Name of raster maps(s)|3|None|False
QgsProcessingParameterEnum|color|Name of color table|not selected;aspect;aspectcolr;bcyr;bgyr;blues;byg;byr;celsius;corine;curvature;differences;elevation;etopo2;evi;fahrenheit;gdd;greens;grey;grey.eq;grey.log;grey1.0;grey255;gyr;haxby;kelvin;ndvi;ndwi;oranges;population;population_dens;precipitation;precipitation_daily;precipitation_monthly;rainbow;ramp;random;reds;rstcurv;ryb;ryg;sepia;slope;srtm;srtm_plus;terrain;wave|False|0|False
QgsProcessingParameterString|rules_txt|Color rules|None|True|True
QgsProcessingParameterFile|rules|Color rules file|0|txt|None|True
QgsProcessingParameterRasterLayer|raster|Raster map from which to copy color table|None|True
QgsProcessingParameterBoolean|-r|Remove existing color table|False
QgsProcessingParameterBoolean|-w|Only write new color table if it does not already exist|False
QgsProcessingParameterBoolean|-n|Invert colors|False
QgsProcessingParameterBoolean|-g|Logarithmic scaling|False
QgsProcessingParameterBoolean|-a|Logarithmic-absolute scaling|False
QgsProcessingParameterBoolean|-e|Histogram equalization|False
QgsProcessingParameterFolderDestination|output_dir|Output Directory

View File

@ -1,12 +1,12 @@
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|level_red|Number of levels to be used for <red>|1|256|32
ParameterNumber|level_green|Number of levels to be used for <green>|1|256|32
ParameterNumber|level_blue|Number of levels to be used for <blue>|1|256|32
ParameterBoolean|-d|Dither|False
ParameterBoolean|-c|Use closest color|False
OutputRaster|output|Composite
QgsProcessingParameterRasterLayer|red|Red|None|False
QgsProcessingParameterRasterLayer|green|Green|None|False
QgsProcessingParameterRasterLayer|blue|Blue|None|False
QgsProcessingParameterNumber|level_red|Number of levels to be used for <red>|QgsProcessingParameterNumber.Double|32|False|256|1
QgsProcessingParameterNumber|level_green|Number of levels to be used for <green>|QgsProcessingParameterNumber.Double|32|False|256|1
QgsProcessingParameterNumber|level_blue|Number of levels to be used for <blue>|QgsProcessingParameterNumber.Double|32|False|256|1
QgsProcessingParameterBoolean|-d|Dither|False
QgsProcessingParameterBoolean|-c|Use closest color|False
QgsProcessingParameterRasterDestination|output|Composite

View File

@ -1,7 +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
QgsProcessingParameterRasterLayer|input|Input raster|None|False
QgsProcessingParameterString|levels|List of contour levels|
QgsProcessingParameterNumber|cut|Minimum number of points for a contour line (0 -> no limit)|QgsProcessingParameterNumber.Integer|0|True|0|None
QgsProcessingParameterVectorDestination|output|Contours

View File

@ -1,9 +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
QgsProcessingParameterRasterLayer|input|Input raster|None|False
QgsProcessingParameterNumber|minlevel|Minimum contour level|QgsProcessingParameterNumber.Double|0.0|True|None|None
QgsProcessingParameterNumber|maxlevel|Maximum contour level|QgsProcessingParameterNumber.Double|0.0|True|None|None
QgsProcessingParameterNumber|step|Increment between contour levels|QgsProcessingParameterNumber.Double|0.0|True|None|None
QgsProcessingParameterNumber|cut|Minimum number of points for a contour line (0 -> no limit)|QgsProcessingParameterNumber.Integer|0|True|0|None
QgsProcessingParameterVectorDestination|output|Contours

View File

@ -1,13 +1,13 @@
r.cost
r.cost.coordinates - 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
ParameterPoint|start_coordinates|Coordinates of starting point(s) (E,N)|0,0
ParameterPoint|stop_coordinates|Coordinates of stopping point(s) (E,N)|0,0
ParameterBoolean|-k|Use the 'Knight's move'; slower, but more accurate|False
ParameterBoolean|-n|Keep null values in output raster layer|True
ParameterNumber|max_cost|Maximum cumulative cost|0|None|0
ParameterNumber|null_cost|Cost assigned to null cells. By default, null cells are excluded|None|None|0
ParameterNumber|memory|Maximum memory to be used in MB|0|None|300
OutputRaster|output|Cumulative cost
OutputRaster|nearest|Cost allocation map
QgsProcessingParameterRasterLayer|input|Unit cost layer|None|False
QgsProcessingParameterPoint|start_coordinates|Coordinates of starting point(s) (E,N)|0,0
QgsProcessingParameterPoint|stop_coordinates|Coordinates of stopping point(s) (E,N)|0,0
QgsProcessingParameterBoolean|-k|Use the 'Knight's move'; slower, but more accurate|False
QgsProcessingParameterBoolean|-n|Keep null values in output raster layer|True
QgsProcessingParameterNumber|max_cost|Maximum cumulative cost|QgsProcessingParameterNumber.Double|0.0|False|None|None
QgsProcessingParameterNumber|null_cost|Cost assigned to null cells. By default, null cells are excluded|QgsProcessingParameterNumber.Double|0.0|False|None|None
QgsProcessingParameterNumber|memory|Maximum memory to be used in MB|QgsProcessingParameterNumber.Double|300|False|None|0
QgsProcessingParameterRasterDestination|output|Cumulative cost
QgsProcessingParameterRasterDestination|nearest|Cost allocation map

View File

@ -1,10 +1,13 @@
r.cost
r.cost.points - 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|True
ParameterBoolean|-k|Use the 'Knight's move'; slower, but more accurate|False
ParameterBoolean|-n|Keep null values in output raster layer|True
OutputRaster|output|Cumulative cost
OutputRaster|nearest|Cost allocation map
QgsProcessingParameterRasterLayer|input|Unit cost layer|None|False
QgsProcessingParameterVectorLayer|start_points|Start points|0|None|False
QgsProcessingParameterVectorLayer|stop_points|Stop points|0|None|True
QgsProcessingParameterBoolean|-k|Use the 'Knight's move'; slower, but more accurate|False
QgsProcessingParameterBoolean|-n|Keep null values in output raster layer|True
QgsProcessingParameterNumber|max_cost|Maximum cumulative cost|QgsProcessingParameterNumber.Double|0.0|False|None|None
QgsProcessingParameterNumber|null_cost|Cost assigned to null cells. By default, null cells are excluded|QgsProcessingParameterNumber.Double|0.0|False|None|None
QgsProcessingParameterNumber|memory|Maximum memory to be used in MB|QgsProcessingParameterNumber.Double|300|False|None|0
QgsProcessingParameterRasterDestination|output|Cumulative cost
QgsProcessingParameterRasterDestination|nearest|Cost allocation map

View File

@ -1,12 +1,12 @@
r.cost
r.cost.raster - 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
ParameterRaster|start_raster|Name of starting raster points map|False
ParameterBoolean|-k|Use the 'Knight's move'; slower, but more accurate|False
ParameterBoolean|-n|Keep null values in output raster layer|True
ParameterNumber|max_cost|Maximum cumulative cost|0|None|0
ParameterNumber|null_cost|Cost assigned to null cells. By default, null cells are excluded|None|None|0
ParameterNumber|memory|Maximum memory to be used in MB|0|None|300
OutputRaster|output|Cumulative cost
OutputRaster|nearest|Cost allocation map
QgsProcessingParameterRasterLayer|input|Unit cost layer|None|False
QgsProcessingParameterRasterLayer|start_raster|Name of starting raster points map|None|False
QgsProcessingParameterBoolean|-k|Use the 'Knight's move'; slower, but more accurate|False
QgsProcessingParameterBoolean|-n|Keep null values in output raster layer|True
QgsProcessingParameterNumber|max_cost|Maximum cumulative cost|QgsProcessingParameterNumber.Double|0|False|None|0
QgsProcessingParameterNumber|null_cost|Cost assigned to null cells. By default, null cells are excluded|QgsProcessingParameterNumber.Double|0|False|None|None
QgsProcessingParameterNumber|memory|Maximum memory to be used in MB|QgsProcessingParameterNumber.Double|300|False|None|0
QgsProcessingParameterRasterDestination|output|Cumulative cost
QgsProcessingParameterRasterDestination|nearest|Cost allocation map

View File

@ -1,6 +1,6 @@
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
QgsProcessingParameterMultipleLayers|map|Input layers|3|None|False
QgsProcessingParameterBoolean|-r|Print correlation matrix|True
QgsProcessingParameterFileDestination|html|Covariance report|Html files (*.html)|report.html|False

View File

@ -1,6 +1,6 @@
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|Cross product
QgsProcessingParameterMultipleLayers|input|Input raster layers|3|None|False
QgsProcessingParameterBoolean|-z|Non-zero data only|False
QgsProcessingParameterRasterDestination|output|Cross product

View File

@ -1,11 +1,11 @@
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 floating-point map as integer|False
OutputHTML|html|Categories
QgsProcessingParameterRasterLayer|map|input raster layer|None|False
QgsProcessingParameterNumber|nv|No-data cell value|QgsProcessingParameterNumber.Double|0|False|None|None
QgsProcessingParameterNumber|nsteps|Number of quantization steps|QgsProcessingParameterNumber.Double|255|False|None|1.0
QgsProcessingParameterBoolean|-r|Only print the range of the data|False
QgsProcessingParameterBoolean|-n|Suppress reporting of any NULLs|False
QgsProcessingParameterBoolean|-d|Use the current region|False
QgsProcessingParameterBoolean|-i|Read floating-point map as integer|False
QgsProcessingParameterFileDestination|html|Categories|Html files (*.html)|report.html|False

View File

@ -1,10 +1,10 @@
r.distance
Locates the closest points between objects in two raster maps.
Raster (r.*)
ParameterMultipleInput|map|Name of two input raster for computing inter-class distances|3|False
ParameterString|separator|Field separator (Special characters: pipe, comma, space, tab, newline)|:|False|True
ParameterSelection|sort|Sort output by distance|asc;desc
*ParameterBoolean|-l|Include category labels in the output|False|True
*ParameterBoolean|-o|Report zero distance if rasters are overlapping|False|True
*ParameterBoolean|-n|Report null objects as *|False|True
OutputFile|output|Distance
QgsProcessingParameterMultipleLayers|map|Name of two input raster for computing inter-class distances|3|None|False
QgsProcessingParameterString|separator|Field separator (Special characters: pipe, comma, space, tab, newline)|:|False|True
QgsProcessingParameterEnum|sort|Sort output by distance|asc;desc
*QgsProcessingParameterBoolean|-l|Include category labels in the output|False|True
*QgsProcessingParameterBoolean|-o|Report zero distance if rasters are overlapping|False|True
*QgsProcessingParameterBoolean|-n|Report null objects as *|False|True
QgsProcessingParameterFileDestination|output|Distance|Txt files (*.txt)|None|False

View File

@ -1,13 +1,13 @@
r.drain
Traces a flow through an elevation model on a raster map.
Raster (r.*)
ParameterRaster|input|Elevation|False
ParameterRaster|direction|Name of input movement direction map associated with the cost surface|True
ParameterPoint|start_coordinates|Map coordinates of starting point(s) (E,N)|0.0,0.0|True
ParameterVector|start_points|Vector layer containing starting point(s)|0|True
ParameterBoolean|-c|Copy input cell values on output|False
ParameterBoolean|-a|Accumulate input values along the path|False
ParameterBoolean|-n|Count cell numbers along the path|False
ParameterBoolean|-d|The input raster map is a cost surface (direction surface must also be specified)|False
OutputRaster|output|Least cost path
OutputVector|drain|Drain
QgsProcessingParameterRasterLayer|input|Elevation|None|False
QgsProcessingParameterRasterLayer|direction|Name of input movement direction map associated with the cost surface|None|True
QgsProcessingParameterPoint|start_coordinates|Map coordinates of starting point(s) (E,N)|None|True
QgsProcessingParameterVectorLayer|start_points|Vector layer containing starting point(s)|0|None|True
QgsProcessingParameterBoolean|-c|Copy input cell values on output|False
QgsProcessingParameterBoolean|-a|Accumulate input values along the path|False
QgsProcessingParameterBoolean|-n|Count cell numbers along the path|False
QgsProcessingParameterBoolean|-d|The input raster map is a cost surface (direction surface must also be specified)|False
QgsProcessingParameterRasterDestination|output|Least cost path
QgsProcessingParameterVectorDestination|drain|Drain

View File

@ -1,8 +1,8 @@
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|format|Output aspect direction format|grass;agnps;answers
OutputRaster|output|Depressionless DEM
OutputRaster|direction|Flow direction
OutputRaster|areas|Problem areas
QgsProcessingParameterRasterLayer|input|Elevation|None|False
QgsProcessingParameterEnum|format|Output aspect direction format|grass;agnps;answers
QgsProcessingParameterRasterDestination|output|Depressionless DEM
QgsProcessingParameterRasterDestination|direction|Flow direction
QgsProcessingParameterRasterDestination|areas|Problem areas

View File

@ -1,11 +1,12 @@
r.fillnulls
Fills no-data areas in raster maps using spline interpolation.
Raster (r.*)
ParameterRaster|input|Input raster layer to fill|False
ParameterSelection|method|Interpolation method to use|bilinear;bicubic;rst|2
ParameterNumber|tension|Spline tension parameter|None|None|40.0
ParameterNumber|smooth|Spline smoothing parameter|None|None|0.1
ParameterNumber|edge|Width of hole edge used for interpolation (in cells)|2|100|3|True
ParameterNumber|npmin|Minimum number of points for approximation in a segment (>segmax)|2|10000|600|True
ParameterNumber|segmax|Maximum number of points in a segment|2|10000|300|True
OutputRaster|output|Filled
QgsProcessingParameterRasterLayer|input|Input raster layer to fill|None|False
QgsProcessingParameterEnum|method|Interpolation method to use|bilinear;bicubic;rst|False|2
QgsProcessingParameterNumber|tension|Spline tension parameter|QgsProcessingParameterNumber.Double|40.0|False|None|None
QgsProcessingParameterNumber|smooth|Spline smoothing parameter|QgsProcessingParameterNumber.Double|0.1|False|None|None
QgsProcessingParameterNumber|edge|Width of hole edge used for interpolation (in cells)|QgsProcessingParameterNumber.Integer|3|True|2|100
QgsProcessingParameterNumber|npmin|Minimum number of points for approximation in a segment (>segmax)|QgsProcessingParameterNumber.Integer|600|True|2|10000
QgsProcessingParameterNumber|segmax|Maximum number of points in a segment|QgsProcessingParameterNumber.Integer|300|True|2|10000
QgsProcessingParameterNumber|lambda|Tykhonov regularization parameter (affects smoothing)|QgsProcessingParameterNumber.Double|0.01|True|0.0|None
QgsProcessingParameterRasterDestination|output|Filled

View File

@ -1,14 +1,14 @@
r.flow
r.flow.aspect.barrier - Construction of flowlines, flowpath lengths, and flowaccumulation (contributing 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|7
ParameterNumber|bound|Maximum number of segments per flowline|None|None|1609
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
OutputVector|flowline|Flow line
OutputRaster|flowlength|Flow path length
OutputRaster|flowaccumulation|Flow accumulation
QgsProcessingParameterRasterLayer|elevation|Elevation|None|False
QgsProcessingParameterRasterLayer|aspect|Aspect|None|False
QgsProcessingParameterRasterLayer|barrier|Barriers|None|False
QgsProcessingParameterNumber|skip|Number of cells between flowlines|QgsProcessingParameterNumber.Double|7|False|None|None
QgsProcessingParameterNumber|bound|Maximum number of segments per flowline|QgsProcessingParameterNumber.Double|1609|False|None|None
QgsProcessingParameterBoolean|-u|Compute upslope flowlines instead of default downhill flowlines|False
QgsProcessingParameterBoolean|-3|3-D lengths instead of 2-D|False
*QgsProcessingParameterBoolean|-m|Use less memory, at a performance penalty|False
QgsProcessingParameterVectorDestination|flowline|Flow line|QgsProcessing.TypeVectorLine|None|True
QgsProcessingParameterRasterDestination|flowlength|Flow path length
QgsProcessingParameterRasterDestination|flowaccumulation|Flow accumulation

View File

@ -1,13 +1,13 @@
r.flow
r.flow.aspect - Construction of flowlines, flowpath lengths, and flowaccumulation (contributing areas) from a raster digital elevation model (DEM).
Raster (r.*)
ParameterRaster|elevation|Elevation|False
ParameterRaster|aspect|Aspect|False
ParameterNumber|skip|Number of cells between flowlines|None|None|7
ParameterNumber|bound|Maximum number of segments per flowline|None|None|1609
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
OutputVector|flowline|Flow line
OutputRaster|flowlength|Flow path length
OutputRaster|flowaccumulation|Flow accumulation
QgsProcessingParameterRasterLayer|elevation|Elevation|None|False
QgsProcessingParameterRasterLayer|aspect|Aspect|None|False
QgsProcessingParameterNumber|skip|Number of cells between flowlines|QgsProcessingParameterNumber.Double|7|False|None|None
QgsProcessingParameterNumber|bound|Maximum number of segments per flowline|QgsProcessingParameterNumber.Double|1609|False|None|None
QgsProcessingParameterBoolean|-u|Compute upslope flowlines instead of default downhill flowlines|False
QgsProcessingParameterBoolean|-3|3-D lengths instead of 2-D|False
*QgsProcessingParameterBoolean|-m|Use less memory, at a performance penalty|False
QgsProcessingParameterVectorDestination|flowline|Flow line|QgsProcessing.TypeVectorLine|None|True
QgsProcessingParameterRasterDestination|flowlength|Flow path length
QgsProcessingParameterRasterDestination|flowaccumulation|Flow accumulation

View File

@ -1,13 +1,13 @@
r.flow
r.flow.barrier - Construction of flowlines, flowpath lengths, and flowaccumulation (contributing areas) from a raster digital elevation model (DEM).
Raster (r.*)
ParameterRaster|elevation|Elevation|False
ParameterRaster|barrier|Barriers|False
ParameterNumber|skip|Number of cells between flowlines|None|None|7
ParameterNumber|bound|Maximum number of segments per flowline|None|None|1609
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
OutputVector|flowline|Flow line
OutputRaster|flowlength|Flow path length
OutputRaster|flowaccumulation|Flow accumulation
QgsProcessingParameterRasterLayer|elevation|Elevation|None|False
QgsProcessingParameterRasterLayer|barrier|Barriers|None|False
QgsProcessingParameterNumber|skip|Number of cells between flowlines|QgsProcessingParameterNumber.Double|7|False|None|None
QgsProcessingParameterNumber|bound|Maximum number of segments per flowline|QgsProcessingParameterNumber.Double|1609|False|None|None
QgsProcessingParameterBoolean|-u|Compute upslope flowlines instead of default downhill flowlines|False
QgsProcessingParameterBoolean|-3|3-D lengths instead of 2-D|False
*QgsProcessingParameterBoolean|-m|Use less memory, at a performance penalty|False
QgsProcessingParameterVectorDestination|flowline|Flow line|QgsProcessing.TypeVectorLine|None|True
QgsProcessingParameterRasterDestination|flowlength|Flow path length
QgsProcessingParameterRasterDestination|flowaccumulation|Flow accumulation

View File

@ -1,12 +1,12 @@
r.flow
Construction of flowlines, flowpath lengths, and flowaccumulation (contributing areas) from a raster digital elevation model (DEM).
Raster (r.*)
ParameterRaster|elevation|Elevation|False
ParameterNumber|skip|Number of cells between flowlines|None|None|7
ParameterNumber|bound|Maximum number of segments per flowline|None|None|1609
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
OutputVector|flowline|Flow line
OutputRaster|flowlength|Flow path length
OutputRaster|flowaccumulation|Flow accumulation
QgsProcessingParameterRasterLayer|elevation|Elevation|None|False
QgsProcessingParameterNumber|skip|Number of cells between flowlines|QgsProcessingParameterNumber.Double|7|False|None|None
QgsProcessingParameterNumber|bound|Maximum number of segments per flowline|QgsProcessingParameterNumber.Double|1609|False|None|None
QgsProcessingParameterBoolean|-u|Compute upslope flowlines instead of default downhill flowlines|False
QgsProcessingParameterBoolean|-3|3-D lengths instead of 2-D|False
*QgsProcessingParameterBoolean|-m|Use less memory, at a performance penalty|False
QgsProcessingParameterVectorDestination|flowline|Flow line|QgsProcessing.TypeVectorLine|None|True
QgsProcessingParameterRasterDestination|flowlength|Flow path length
QgsProcessingParameterRasterDestination|flowaccumulation|Flow accumulation

View File

@ -1,7 +1,7 @@
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
OutputRaster|value|Value of nearest cell
QgsProcessingParameterRasterLayer|input|Input input raster layer|None|False
QgsProcessingParameterEnum|metric|Metric|euclidean;squared;maximum;manhattan
QgsProcessingParameterRasterDestination|distance|Distance
QgsProcessingParameterRasterDestination|value|Value of nearest cell

View File

@ -1,9 +1,9 @@
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|Expanded
QgsProcessingParameterRasterLayer|input|input raster layer|None|False
QgsProcessingParameterNumber|radius|Radius of buffer in raster cells|QgsProcessingParameterNumber.Double|1.01|False|None|None
QgsProcessingParameterEnum|metric|Metric|euclidean;maximum;manhattan
QgsProcessingParameterNumber|old|Value to write for input cells which are non-NULL (-1 => NULL)|QgsProcessingParameterNumber.Double|0|False|None|None
QgsProcessingParameterNumber|new|Value to write for "grown" cells|QgsProcessingParameterNumber.Double|1|False|None|None
QgsProcessingParameterRasterDestination|output|Expanded

View File

@ -1,25 +1,25 @@
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|Groundwater flow
QgsProcessingParameterString|phead|The initial piezometric head in [m]|
QgsProcessingParameterString|status|Boundary condition status, 0-inactive, 1-active, 2-dirichlet|
QgsProcessingParameterString|hc_x|X-part of the hydraulic conductivity tensor in [m/s]|
QgsProcessingParameterString|hc_y|Y-part of the hydraulic conductivity tensor in [m/s]|
QgsProcessingParameterString|q|Water sources and sinks in [m^3/s]|
QgsProcessingParameterString|s|Specific yield in [1/m]|
QgsProcessingParameterString|r|Recharge map e.g: 6*10^-9 per cell in [m^3/s*m^2]|
QgsProcessingParameterString|top|Top surface of the aquifer in [m]|
QgsProcessingParameterString|bottom|Bottom surface of the aquifer in [m]|
QgsProcessingParameterEnum|type|The type of groundwater flow|confined;unconfined
QgsProcessingParameterString|river_bed|The height of the river bed in [m]|
QgsProcessingParameterString|river_head|Water level (head) of the river with leakage connection in [m]|
QgsProcessingParameterString|river_leak|The leakage coefficient of the river bed in [1/s]|
QgsProcessingParameterString|drain_bed|The height of the drainage bed in [m]|
QgsProcessingParameterString|drain_leak|The leakage coefficient of the drainage bed in [1/s]|
QgsProcessingParameterNumber|dt|The calculation time in seconds|QgsProcessingParameterNumber.Double|86400.0|False|None|None
QgsProcessingParameterNumber|maxit|Maximum number of iteration used to solver the linear equation system|QgsProcessingParameterNumber.Double|100000.0|False|None|None
QgsProcessingParameterNumber|error|Error break criteria for iterative solvers (jacobi, sor, cg or bicgstab)|QgsProcessingParameterNumber.Double|1e-10|False|None|None
QgsProcessingParameterEnum|solver|The type of solver which should solve the symmetric linear equation system|gauss;lu;cholesky;jacobi;sor;cg;bicgstab;pcg
QgsProcessingParameterString|relax|The relaxation parameter used by the jacobi and sor solver for speedup or stabilizing|1
QgsProcessingParameterBoolean|-s|Use a sparse matrix, only available with iterative solvers|False
QgsProcessingParameterRasterDestination|output|Groundwater flow

View File

@ -1,10 +1,10 @@
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|hue|Hue|False
ParameterRaster|intensity|Intensity|False
ParameterRaster|saturation|Saturation|False
ParameterBoolean|-c|Use colors from color tables for NULL values|False
OutputRaster|red|Red
OutputRaster|green|Green
OutputRaster|blue|Blue
QgsProcessingParameterRasterLayer|hue|Hue|None|False
QgsProcessingParameterRasterLayer|intensity|Intensity|None|False
QgsProcessingParameterRasterLayer|saturation|Saturation|None|False
QgsProcessingParameterBoolean|-c|Use colors from color tables for NULL values|False
QgsProcessingParameterRasterDestination|red|Red
QgsProcessingParameterRasterDestination|green|Green
QgsProcessingParameterRasterDestination|blue|Blue

View File

@ -1,13 +1,13 @@
r.horizon
r.horizon.height - Horizon angle computation from a digital elevation model.
Raster (r.*)
ParameterRaster|elevation|Name of input elevation raster map|False
ParameterPoint|coordinates|Coordinate for which you want to calculate the horizon|0,0
ParameterNumber|direction|Direction in which you want to calculate the horizon height|0|360|0.0
ParameterNumber|step|Angle step size for multidirectional horizon [degrees]|0|360|0.0
ParameterNumber|start|Start angle for multidirectional horizon [degrees]|0|360|0
ParameterNumber|end|End angle for multidirectional horizon [degrees]|0|360|360
ParameterNumber|maxdistance|The maximum distance to consider when finding the horizon height|0|None|10000
ParameterString|distance|Sampling distance step coefficient (0.5-1.5)|1.0
ParameterBoolean|-d|Write output in degrees (default is radians)|False
OutputHTML|html|Horizon
QgsProcessingParameterRasterLayer|elevation|Name of input elevation raster map|None|False
QgsProcessingParameterPoint|coordinates|Coordinate for which you want to calculate the horizon|0,0
QgsProcessingParameterNumber|direction|Direction in which you want to calculate the horizon height|QgsProcessingParameterNumber.Double|0.0|False|360|0
QgsProcessingParameterNumber|step|Angle step size for multidirectional horizon [degrees]|QgsProcessingParameterNumber.Double|0.0|False|360|0
QgsProcessingParameterNumber|start|Start angle for multidirectional horizon [degrees]|QgsProcessingParameterNumber.Double|0|False|360|0
QgsProcessingParameterNumber|end|End angle for multidirectional horizon [degrees]|QgsProcessingParameterNumber.Double|360|False|360|0
QgsProcessingParameterNumber|maxdistance|The maximum distance to consider when finding the horizon height|QgsProcessingParameterNumber.Double|10000|False|None|0
QgsProcessingParameterString|distance|Sampling distance step coefficient (0.5-1.5)|1.0
QgsProcessingParameterBoolean|-d|Write output in degrees (default is radians)|False
QgsProcessingParameterFileDestination|html|Horizon|Html files (*.html)|report.html|False

View File

@ -1,9 +1,12 @@
r.horizon
Horizon angle computation from a digital elevation model.
Raster (r.*)
ParameterRaster|elevation|Name of input elevation raster map|False
ParameterNumber|direction|Direction in which you want to know the horizon height|0|360|0.0
ParameterNumber|maxdistance|The maximum distance to consider when finding the horizon height|0|None|10000
ParameterString|distance|Sampling distance step coefficient (0.5-1.5)|1.0
ParameterBoolean|-d|Write output in degrees (default is radians)|False
OutputRaster|output|Horizon
QgsProcessingParameterRasterLayer|elevation|Name of input elevation raster map|None|False
QgsProcessingParameterNumber|direction|Direction in which you want to know the horizon height|QgsProcessingParameterNumber.Double|0.0|True|0.0|360.0
QgsProcessingParameterNumber|step|Angle step size for multidirectional horizon|QgsProcessingParameterNumber.Double|None|True|0.0|360.0
QgsProcessingParameterNumber|start|Start angle for multidirectional horizon|QgsProcessingParameterNumber.Double|0.0|True|0.0|360.0
QgsProcessingParameterNumber|end|End angle for multidirectional horizon|QgsProcessingParameterNumber.Double|360.0|True|0.0|360.0
QgsProcessingParameterNumber|maxdistance|The maximum distance to consider when finding the horizon height|QgsProcessingParameterNumber.Double|None|True|0|None
QgsProcessingParameterNumber|distance|Sampling distance step coefficient|QgsProcessingParameterNumber.Double|1.0|True|0.5|1.5
QgsProcessingParameterBoolean|-d|Write output in degrees (default is radians)|False
QgsProcessingParameterFolderDestination|output|Folder to get horizon rasters

View File

@ -1,8 +1,8 @@
r.in.lidar
r.in.lidar.info - Extract information from LAS file
Raster (r.*)
ParameterFile|input|LAS input file|False|False
QgsProcessingParameterFile|input|LAS input file|0|txt|None|False
Hardcoded|-p
Hardcoded|-g
Hardcoded|-s
OutputHTML|html|LAS information
QgsProcessingParameterFileDestination|html|LAS information|Html files (*.html)|report.html|False

View File

@ -1,18 +1,18 @@
r.in.lidar
Creates a raster map from LAS LiDAR points using univariate statistics.
Raster (r.*)
ParameterFile|input|LAS input file|False|False
ParameterSelection|method|Statistic to use for raster values|n;min;max;range;sum;mean;stddev;variance;coeff_var;median;percentile;skewness;trimmean|5
ParameterSelection|type|Storage type for resultant raster map|CELL;FCELL;DCELL|1
ParameterString|zrange|Filter range for z data (min, max)|None|False|True
ParameterNumber|zscale|Scale to apply to z data|0.0|None|1.0|True
ParameterNumber|percent|Percent of map to keep in memory|1|100|100|True
ParameterString|pth|pth percentile of the values (between 1 and 100)|None|False|True
ParameterString|trim|Discard <trim> percent of the smallest and <trim> percent of the largest observations (0-50)|None|False|True
ParameterString|resolution|Output raster resolution|None|False|True
ParameterString|return_filter|Only import points of selected return type Options: first, last, mid|None|False|True
ParameterString|class_filter|Only import points of selected class(es) (comma separated integers)|None|False|True
*ParameterBoolean|-i|Import intensity values rather than z values|False
*ParameterBoolean|-e|Extend region extents based on new dataset|True
*ParameterBoolean|-o|Override dataset projection (use location's projection)|True
OutputRaster|output|Lidar Raster
QgsProcessingParameterFile|input|LAS input file|0|las|None|False
QgsProcessingParameterEnum|method|Statistic to use for raster values|n;min;max;range;sum;mean;stddev;variance;coeff_var;median;percentile;skewness;trimmean|False|5
QgsProcessingParameterEnum|type|Storage type for resultant raster map|CELL;FCELL;DCELL|False|1
QgsProcessingParameterRange|zrange|Filter range for z data (min, max)|QgsProcessingParameterNumber.Double|None|True
QgsProcessingParameterNumber|zscale|Scale to apply to z data|QgsProcessingParameterNumber.Double|1.0|True|0.0|None
QgsProcessingParameterNumber|percent|Percent of map to keep in memory|QgsProcessingParameterNumber.Integer|100|True|1|100
QgsProcessingParameterNumber|pth|pth percentile of the values (between 1 and 100)|QgsProcessingParameterNumber.Integer|None|True|1|100
QgsProcessingParameterNumber|trim|Discard <trim> percent of the smallest and <trim> percent of the largest observations (0-50)|QgsProcessingParameterNumber.Double|None|True|0.0|50.0
QgsProcessingParameterNumber|resolution|Output raster resolution|QgsProcessingParameterNumber.Double|None|True|None|None
QgsProcessingParameterString|return_filter|Only import points of selected return type Options: first, last, mid|None|False|True
QgsProcessingParameterString|class_filter|Only import points of selected class(es) (comma separated integers)|None|False|True
*QgsProcessingParameterBoolean|-i|Import intensity values rather than z values|False
*QgsProcessingParameterBoolean|-e|Extend region extents based on new dataset|True
*QgsProcessingParameterBoolean|-o|Override dataset projection (use location's projection)|True
QgsProcessingParameterRasterDestination|output|Lidar Raster

View File

@ -1,14 +1,14 @@
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|Basic information
QgsProcessingParameterRasterLayer|map|Raster layer|None|False
QgsProcessingParameterBoolean|-r|Print range only|False
QgsProcessingParameterBoolean|-s|Print raster map resolution (NS-res, EW-res) only|False
QgsProcessingParameterBoolean|-t|Print raster map type only|False
QgsProcessingParameterBoolean|-g|Print map region only|False
QgsProcessingParameterBoolean|-h|Print raster history instead of info|False
QgsProcessingParameterBoolean|-u|Print raster map data units only|False
QgsProcessingParameterBoolean|-d|Print raster map vertical datum only|False
QgsProcessingParameterBoolean|-m|Print map title only|False
QgsProcessingParameterBoolean|-p|Print raster map timestamp (day.month.year hour:minute:seconds) only|False
QgsProcessingParameterFileDestination|html|Basic information|Html files (*.html)|report.html|False

View File

@ -1,9 +1,9 @@
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|Error matrix and kappa
QgsProcessingParameterRasterLayer|classification|Raster layer containing classification result|None|False
QgsProcessingParameterRasterLayer|reference|Raster layer containing reference classes|None|False
QgsProcessingParameterString|title|Title for error matrix and kappa|ACCURACY ASSESSMENT
QgsProcessingParameterBoolean|-h|No header in the report|False
QgsProcessingParameterBoolean|-w|Wide report (132 columns)|False
QgsProcessingParameterFileDestination|output|Error matrix and kappa|Txt files (*.txt)|None|False

View File

@ -1,8 +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
ParameterPoint|coordinates|Seed point coordinates|0,0
ParameterBoolean|-n|Use negative depth values for lake raster layer|False
OutputRaster|lake|Lake
QgsProcessingParameterRasterLayer|elevation|Elevation|None|False
QgsProcessingParameterNumber|water_level|Water level|QgsProcessingParameterNumber.Double|1000.0|False|None|None
QgsProcessingParameterPoint|coordinates|Seed point coordinates|0,0
QgsProcessingParameterBoolean|-n|Use negative depth values for lake raster layer|False
QgsProcessingParameterRasterDestination|lake|Lake

View File

@ -1,8 +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|Lake
QgsProcessingParameterRasterLayer|elevation|Elevation|None|False
QgsProcessingParameterNumber|water_level|Water level|QgsProcessingParameterNumber.Double|1000.0|False|None|None
QgsProcessingParameterRasterLayer|seed|Raster layer with starting point(s) (at least 1 cell > 0)|None|False
QgsProcessingParameterBoolean|-n|Use negative depth values for lake raster layer|False
QgsProcessingParameterRasterDestination|lake|Lake

View File

@ -1,6 +1,6 @@
r.latlong
Creates a latitude/longitude raster map.
Raster (r.*)
ParameterRaster|input|Name of input raster map|False
ParameterBoolean|-l|Outputs a Longitude map instead of a Latitude map|False|True
OutputRaster|output|LatLong
QgsProcessingParameterRasterLayer|input|Name of input raster map|None|False
QgsProcessingParameterBoolean|-l|Outputs a Longitude map instead of a Latitude map|False|True
QgsProcessingParameterRasterDestination|output|LatLong

View File

@ -1,8 +1,8 @@
r.li.cwed
r.li.cwed.ascii - Calculates contrast weighted edge density index on a raster map
Raster (r.*)
ParameterRaster|input|Name of input raster map|False
ParameterString|config_txt|Landscape structure configuration|None|True|True
ParameterFile|config|Landscape structure configuration file|False|True
ParameterFile|path|Name of file that contains the weight to calculate the index|False|False
OutputFile|output|CWED
QgsProcessingParameterRasterLayer|input|Name of input raster map|None|False
QgsProcessingParameterString|config_txt|Landscape structure configuration|None|True|True
QgsProcessingParameterFile|config|Landscape structure configuration file|0|txt|None|True
QgsProcessingParameterFile|path|Name of file that contains the weight to calculate the index|0|txt|None|False
QgsProcessingParameterFileDestination|output|CWED|Txt files (*.txt)|None|False

View File

@ -1,8 +1,8 @@
r.li.cwed
Calculates contrast weighted edge density index on a raster map
Raster (r.*)
ParameterRaster|input|Name of input raster map|False
ParameterString|config_txt|Landscape structure configuration|None|True|True
ParameterFile|config|Landscape structure configuration file|False|True
ParameterFile|path|Name of file that contains the weight to calculate the index|False|False
OutputRaster|output|CWED
QgsProcessingParameterRasterLayer|input|Name of input raster map|None|False
QgsProcessingParameterString|config_txt|Landscape structure configuration|None|True|True
QgsProcessingParameterFile|config|Landscape structure configuration file|0|txt|None|True
QgsProcessingParameterFile|path|Name of file that contains the weight to calculate the index|0|txt|None|False
QgsProcessingParameterRasterDestination|output|CWED

View File

@ -1,7 +1,7 @@
r.li.dominance
r.li.dominance.ascii - Calculates dominance's diversity index on a raster map
Raster (r.*)
ParameterRaster|input|Name of input raster map|False
ParameterString|config_txt|Landscape structure configuration|None|True|True
ParameterFile|config|Landscape structure configuration file|False|True
OutputFile|output|Dominance
QgsProcessingParameterRasterLayer|input|Name of input raster map|None|False
QgsProcessingParameterString|config_txt|Landscape structure configuration|None|True|True
QgsProcessingParameterFile|config|Landscape structure configuration file|0|txt|None|True
QgsProcessingParameterFileDestination|output|Dominance|Txt files (*.txt)|None|False

View File

@ -1,7 +1,7 @@
r.li.dominance
Calculates dominance's diversity index on a raster map
Raster (r.*)
ParameterRaster|input|Name of input raster map|False
ParameterString|config_txt|Landscape structure configuration|None|True|True
ParameterFile|config|Landscape structure configuration file|False|True
OutputRaster|output|Dominance
QgsProcessingParameterRasterLayer|input|Name of input raster map|None|False
QgsProcessingParameterString|config_txt|Landscape structure configuration|None|True|True
QgsProcessingParameterFile|config|Landscape structure configuration file|0|txt|None|True
QgsProcessingParameterRasterDestination|output|Dominance

View File

@ -1,9 +1,9 @@
r.li.edgedensity
r.li.edgedensity.ascii - Calculates edge density index on a raster map, using a 4 neighbour algorithm
Raster (r.*)
ParameterRaster|input|Name of input raster map|False
ParameterString|config_txt|Landscape structure configuration|None|True|True
ParameterFile|config|Landscape structure configuration file|False|True
ParameterString|patch_type|The value of the patch type|None|False|True
ParameterBoolean|-b|Exclude border edges|False
OutputFile|output|Edge Density
QgsProcessingParameterRasterLayer|input|Name of input raster map|None|False
QgsProcessingParameterString|config_txt|Landscape structure configuration|None|True|True
QgsProcessingParameterFile|config|Landscape structure configuration file|0|txt|None|True
QgsProcessingParameterString|patch_type|The value of the patch type|None|False|True
QgsProcessingParameterBoolean|-b|Exclude border edges|False
QgsProcessingParameterFileDestination|output|Edge Density|Txt files (*.txt)|None|False

Some files were not shown because too many files have changed in this diff Show More