mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-18 00:03:05 -04:00
Add r.li.* algorithms
This commit is contained in:
parent
e6e7b0c512
commit
63eab874b4
@ -0,0 +1,8 @@
|
||||
r.li.cwed
|
||||
r.li.cwed.ascii - Calculates contrast weighted edge density index on a raster map
|
||||
Raster (r.*)
|
||||
ParameterRaster|input|Name of input raster map|False
|
||||
ParameterString|config_txt|Landscape structure configuration|None|True|True
|
||||
ParameterFile|config|Landscape structure configuration file|False|True
|
||||
ParameterFile|path|Name of file that contains the weight to calculate the index|False
|
||||
OutputFile|output|CWED
|
@ -0,0 +1,8 @@
|
||||
r.li.cwed
|
||||
Calculates contrast weighted edge density index on a raster map
|
||||
Raster (r.*)
|
||||
ParameterRaster|input|Name of input raster map|False
|
||||
ParameterString|config_txt|Landscape structure configuration|None|True|True
|
||||
ParameterFile|config|Landscape structure configuration file|False|True
|
||||
ParameterFile|path|Name of file that contains the weight to calculate the index|False
|
||||
OutputRaster|output|CWED
|
@ -0,0 +1,7 @@
|
||||
r.li.dominance
|
||||
r.li.dominance.ascii - Calculates dominance's diversity index on a raster map
|
||||
Raster (r.*)
|
||||
ParameterRaster|input|Name of input raster map|False
|
||||
ParameterString|config_txt|Landscape structure configuration|None|True|True
|
||||
ParameterFile|config|Landscape structure configuration file|False|True
|
||||
OutputFile|output|Dominance
|
@ -0,0 +1,7 @@
|
||||
r.li.dominance
|
||||
Calculates dominance's diversity index on a raster map
|
||||
Raster (r.*)
|
||||
ParameterRaster|input|Name of input raster map|False
|
||||
ParameterString|config_txt|Landscape structure configuration|None|True|True
|
||||
ParameterFile|config|Landscape structure configuration file|False|True
|
||||
OutputRaster|output|Dominance
|
@ -0,0 +1,9 @@
|
||||
r.li.edgedensity
|
||||
r.li.edgedensity.ascii - Calculates edge density index on a raster map, using a 4 neighbour algorithm
|
||||
Raster (r.*)
|
||||
ParameterRaster|input|Name of input raster map|False
|
||||
ParameterString|config_txt|Landscape structure configuration|None|True|True
|
||||
ParameterFile|config|Landscape structure configuration file|False|True
|
||||
ParameterString|patch_type|The value of the patch type|None|False|True
|
||||
ParameterBoolean|-b|Exclude border edges|False
|
||||
OutputFile|output|Edge Density
|
@ -0,0 +1,9 @@
|
||||
r.li.edgedensity
|
||||
Calculates edge density index on a raster map, using a 4 neighbour algorithm
|
||||
Raster (r.*)
|
||||
ParameterRaster|input|Name of input raster map|False
|
||||
ParameterString|config_txt|Landscape structure configuration|None|True|True
|
||||
ParameterFile|config|Landscape structure configuration file|False|True
|
||||
ParameterString|patch_type|The value of the patch type|None|False|True
|
||||
ParameterBoolean|-b|Exclude border edges|False
|
||||
OutputRaster|output|Edge Density
|
@ -0,0 +1,7 @@
|
||||
r.li.mpa
|
||||
r.li.mpa.ascii - Calculates mean pixel attribute index on a raster map
|
||||
Raster (r.*)
|
||||
ParameterRaster|input|Name of input raster map|False
|
||||
ParameterString|config_txt|Landscape structure configuration|None|True|True
|
||||
ParameterFile|config|Landscape structure configuration file|False|True
|
||||
OutputFile|output|Mean Pixel Attribute
|
@ -0,0 +1,7 @@
|
||||
r.li.mpa
|
||||
Calculates mean pixel attribute index on a raster map
|
||||
Raster (r.*)
|
||||
ParameterRaster|input|Name of input raster map|False
|
||||
ParameterString|config_txt|Landscape structure configuration|None|True|True
|
||||
ParameterFile|config|Landscape structure configuration file|False|True
|
||||
OutputRaster|output|Mean Pixel Attribute
|
@ -0,0 +1,7 @@
|
||||
r.li.mps
|
||||
r.li.mps.ascii - Calculates mean patch size index on a raster map, using a 4 neighbour algorithm
|
||||
Raster (r.*)
|
||||
ParameterRaster|input|Name of input raster map|False
|
||||
ParameterString|config_txt|Landscape structure configuration|None|True|True
|
||||
ParameterFile|config|Landscape structure configuration file|False|True
|
||||
OutputFile|output|Mean Patch Size
|
@ -0,0 +1,7 @@
|
||||
r.li.mps
|
||||
Calculates mean patch size index on a raster map, using a 4 neighbour algorithm
|
||||
Raster (r.*)
|
||||
ParameterRaster|input|Name of input raster map|False
|
||||
ParameterString|config_txt|Landscape structure configuration|None|True|True
|
||||
ParameterFile|config|Landscape structure configuration file|False|True
|
||||
OutputRaster|output|Mean Patch Size
|
@ -0,0 +1,7 @@
|
||||
r.li.padcv
|
||||
r.li.padcv.ascii - Calculates coefficient of variation of patch area on a raster map
|
||||
Raster (r.*)
|
||||
ParameterRaster|input|Name of input raster map|False
|
||||
ParameterString|config_txt|Landscape structure configuration|None|True|True
|
||||
ParameterFile|config|Landscape structure configuration file|False|True
|
||||
OutputFile|output|PADCV
|
@ -0,0 +1,7 @@
|
||||
r.li.padcv
|
||||
Calculates coefficient of variation of patch area on a raster map
|
||||
Raster (r.*)
|
||||
ParameterRaster|input|Name of input raster map|False
|
||||
ParameterString|config_txt|Landscape structure configuration|None|True|True
|
||||
ParameterFile|config|Landscape structure configuration file|False|True
|
||||
OutputRaster|output|PADCV
|
@ -0,0 +1,7 @@
|
||||
r.li.padrange
|
||||
r.li.padrange.ascii - Calculates range of patch area size on a raster map
|
||||
Raster (r.*)
|
||||
ParameterRaster|input|Name of input raster map|False
|
||||
ParameterString|config_txt|Landscape structure configuration|None|True|True
|
||||
ParameterFile|config|Landscape structure configuration file|False|True
|
||||
OutputFile|output|Pad Range
|
@ -0,0 +1,7 @@
|
||||
r.li.padrange
|
||||
Calculates range of patch area size on a raster map
|
||||
Raster (r.*)
|
||||
ParameterRaster|input|Name of input raster map|False
|
||||
ParameterString|config_txt|Landscape structure configuration|None|True|True
|
||||
ParameterFile|config|Landscape structure configuration file|False|True
|
||||
OutputRaster|output|Pad Range
|
@ -0,0 +1,7 @@
|
||||
r.li.padsd
|
||||
r.li.padsd.ascii - Calculates standard deviation of patch area a raster map
|
||||
Raster (r.*)
|
||||
ParameterRaster|input|Name of input raster map|False
|
||||
ParameterString|config_txt|Landscape structure configuration|None|True|True
|
||||
ParameterFile|config|Landscape structure configuration file|False|True
|
||||
OutputFile|output|Patch Area SD
|
@ -0,0 +1,7 @@
|
||||
r.li.padsd
|
||||
Calculates standard deviation of patch area a raster map
|
||||
Raster (r.*)
|
||||
ParameterRaster|input|Name of input raster map|False
|
||||
ParameterString|config_txt|Landscape structure configuration|None|True|True
|
||||
ParameterFile|config|Landscape structure configuration file|False|True
|
||||
OutputRaster|output|Patch Area SD
|
@ -0,0 +1,7 @@
|
||||
r.li.patchdensity
|
||||
r.li.patchdensity.ascii - Calculates patch density index on a raster map, using a 4 neighbour algorithm
|
||||
Raster (r.*)
|
||||
ParameterRaster|input|Name of input raster map|False
|
||||
ParameterString|config_txt|Landscape structure configuration|None|True|True
|
||||
ParameterFile|config|Landscape structure configuration file|False|True
|
||||
OutputFile|output|Patch Density
|
@ -0,0 +1,7 @@
|
||||
r.li.patchdensity
|
||||
Calculates patch density index on a raster map, using a 4 neighbour algorithm
|
||||
Raster (r.*)
|
||||
ParameterRaster|input|Name of input raster map|False
|
||||
ParameterString|config_txt|Landscape structure configuration|None|True|True
|
||||
ParameterFile|config|Landscape structure configuration file|False|True
|
||||
OutputRaster|output|Patch Density
|
@ -0,0 +1,7 @@
|
||||
r.li.patchnum
|
||||
r.li.patchnum.ascii - Calculates patch number index on a raster map, using a 4 neighbour algorithm.
|
||||
Raster (r.*)
|
||||
ParameterRaster|input|Name of input raster map|False
|
||||
ParameterString|config_txt|Landscape structure configuration|None|True|True
|
||||
ParameterFile|config|Landscape structure configuration file|False|True
|
||||
OutputFile|output|Patch Number
|
@ -0,0 +1,7 @@
|
||||
r.li.patchnum
|
||||
Calculates patch number index on a raster map, using a 4 neighbour algorithm.
|
||||
Raster (r.*)
|
||||
ParameterRaster|input|Name of input raster map|False
|
||||
ParameterString|config_txt|Landscape structure configuration|None|True|True
|
||||
ParameterFile|config|Landscape structure configuration file|False|True
|
||||
OutputRaster|output|Patch Number
|
@ -0,0 +1,7 @@
|
||||
r.li.pielou
|
||||
r.li.pielou.ascii - Calculates Pielou's diversity index on a raster map
|
||||
Raster (r.*)
|
||||
ParameterRaster|input|Name of input raster map|False
|
||||
ParameterString|config_txt|Landscape structure configuration|None|True|True
|
||||
ParameterFile|config|Landscape structure configuration file|False|True
|
||||
OutputFile|output|Pielou
|
@ -0,0 +1,7 @@
|
||||
r.li.pielou
|
||||
Calculates Pielou's diversity index on a raster map
|
||||
Raster (r.*)
|
||||
ParameterRaster|input|Name of input raster map|False
|
||||
ParameterString|config_txt|Landscape structure configuration|None|True|True
|
||||
ParameterFile|config|Landscape structure configuration file|False|True
|
||||
OutputRaster|output|Pielou
|
@ -0,0 +1,8 @@
|
||||
r.li.renyi
|
||||
r.li.renyi.ascii - Calculates Renyi's diversity index on a raster map
|
||||
Raster (r.*)
|
||||
ParameterRaster|input|Name of input raster map|False
|
||||
ParameterString|config_txt|Landscape structure configuration|None|True|True
|
||||
ParameterFile|config|Landscape structure configuration file|False|True
|
||||
ParameterString|alpha|Alpha value is the order of the generalized entropy|None|False|True
|
||||
OutputFile|output|Renyi
|
@ -0,0 +1,8 @@
|
||||
r.li.renyi
|
||||
Calculates Renyi's diversity index on a raster map
|
||||
Raster (r.*)
|
||||
ParameterRaster|input|Name of input raster map|False
|
||||
ParameterString|config_txt|Landscape structure configuration|None|True|True
|
||||
ParameterFile|config|Landscape structure configuration file|False|True
|
||||
ParameterString|alpha|Alpha value is the order of the generalized entropy|None|False|True
|
||||
OutputRaster|output|Renyi
|
@ -0,0 +1,7 @@
|
||||
r.li.richness
|
||||
r.li.richness.ascii - Calculates richness index on a raster map
|
||||
Raster (r.*)
|
||||
ParameterRaster|input|Name of input raster map|False
|
||||
ParameterString|config_txt|Landscape structure configuration|None|True|True
|
||||
ParameterFile|config|Landscape structure configuration file|False|True
|
||||
OutputFile|output|Richness
|
@ -0,0 +1,7 @@
|
||||
r.li.richness
|
||||
Calculates richness index on a raster map
|
||||
Raster (r.*)
|
||||
ParameterRaster|input|Name of input raster map|False
|
||||
ParameterString|config_txt|Landscape structure configuration|None|True|True
|
||||
ParameterFile|config|Landscape structure configuration file|False|True
|
||||
OutputRaster|output|Richness
|
@ -0,0 +1,7 @@
|
||||
r.li.shannon
|
||||
r.li.shannon.ascii - Calculates Shannon's diversity index on a raster map
|
||||
Raster (r.*)
|
||||
ParameterRaster|input|Name of input raster map|False
|
||||
ParameterString|config_txt|Landscape structure configuration|None|True|True
|
||||
ParameterFile|config|Landscape structure configuration file|False|True
|
||||
OutputFile|output|Shannon
|
@ -0,0 +1,7 @@
|
||||
r.li.shannon
|
||||
Calculates Shannon's diversity index on a raster map
|
||||
Raster (r.*)
|
||||
ParameterRaster|input|Name of input raster map|False
|
||||
ParameterString|config_txt|Landscape structure configuration|None|True|True
|
||||
ParameterFile|config|Landscape structure configuration file|False|True
|
||||
OutputRaster|output|Shannon
|
@ -0,0 +1,7 @@
|
||||
r.li.shape
|
||||
r.li.shape.ascii - Calculates shape index on a raster map
|
||||
Raster (r.*)
|
||||
ParameterRaster|input|Name of input raster map|False
|
||||
ParameterString|config_txt|Landscape structure configuration|None|True|True
|
||||
ParameterFile|config|Landscape structure configuration file|False|True
|
||||
OutputFile|output|Shape
|
@ -0,0 +1,7 @@
|
||||
r.li.shape
|
||||
Calculates shape index on a raster map
|
||||
Raster (r.*)
|
||||
ParameterRaster|input|Name of input raster map|False
|
||||
ParameterString|config_txt|Landscape structure configuration|None|True|True
|
||||
ParameterFile|config|Landscape structure configuration file|False|True
|
||||
OutputRaster|output|Shape
|
@ -0,0 +1,7 @@
|
||||
r.li.simpson
|
||||
r.li.simpson.ascii - Calculates Simpson's diversity index on a raster map
|
||||
Raster (r.*)
|
||||
ParameterRaster|input|Name of input raster map|False
|
||||
ParameterString|config_txt|Landscape structure configuration|None|True|True
|
||||
ParameterFile|config|Landscape structure configuration file|False|True
|
||||
OutputFile|output|Simpson
|
@ -0,0 +1,7 @@
|
||||
r.li.simpson
|
||||
Calculates Simpson's diversity index on a raster map
|
||||
Raster (r.*)
|
||||
ParameterRaster|input|Name of input raster map|False
|
||||
ParameterString|config_txt|Landscape structure configuration|None|True|True
|
||||
ParameterFile|config|Landscape structure configuration file|False|True
|
||||
OutputRaster|output|Simpson
|
148
python/plugins/processing/algs/grass7/ext/r_li.py
Normal file
148
python/plugins/processing/algs/grass7/ext/r_li.py
Normal file
@ -0,0 +1,148 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
"""
|
||||
***************************************************************************
|
||||
r_li.py
|
||||
-------
|
||||
Date : February 2016
|
||||
Copyright : (C) 2016 by Médéric Ribreux
|
||||
Email : medspx at medspx dot fr
|
||||
***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************
|
||||
"""
|
||||
|
||||
__author__ = 'Médéric Ribreux'
|
||||
__date__ = 'February 2016'
|
||||
__copyright__ = '(C) 2016, Médéric Ribreux'
|
||||
|
||||
# This will get replaced with a git SHA1 when you do a git archive
|
||||
|
||||
__revision__ = '$Format:%H$'
|
||||
|
||||
import shutil
|
||||
from processing.tools.system import isWindows, isMac, userFolder, mkdir
|
||||
from processing.core.parameters import getParameterFromString
|
||||
from os import path
|
||||
|
||||
|
||||
def rliPath():
|
||||
"""Return r.li GRASS7 user dir"""
|
||||
if isWindows():
|
||||
return path.join(path.expanduser("~").decode('mcbs'), 'GRASS7', 'r.li')
|
||||
else:
|
||||
return path.join(path.expanduser("~"), '.grass7', 'r.li')
|
||||
|
||||
|
||||
def removeConfigFile(alg):
|
||||
""" Remove the r.li user dir config file """
|
||||
configPath = alg.getParameterValue('config')
|
||||
if isWindows():
|
||||
command = "DEL {}".format(path.join(rliPath(), configPath))
|
||||
else:
|
||||
command = "rm {}".format(path.join(rliPath(), configPath))
|
||||
alg.commands.append(command)
|
||||
|
||||
|
||||
def checkMovingWindow(alg, outputTxt=False):
|
||||
""" Verify if we have the right parameters """
|
||||
configTxt = alg.getParameterValue('config_txt')
|
||||
config = alg.getParameterValue('config')
|
||||
if configTxt and config:
|
||||
return alg.tr("You need to set either inline configuration or a configuration file !")
|
||||
|
||||
# Verify that configuration is in moving window
|
||||
movingWindow = False
|
||||
if configTxt:
|
||||
if 'MOVINGWINDOW' in configTxt:
|
||||
movingWindow = True
|
||||
|
||||
# Read config file:
|
||||
if config:
|
||||
with open(config) as f:
|
||||
for line in f:
|
||||
if 'MOVINGWINDOW' in line:
|
||||
movingWindow = True
|
||||
|
||||
if not movingWindow and not outputTxt:
|
||||
return alg.tr('Your configuration needs to be a "moving window" configuration !')
|
||||
|
||||
if movingWindow and outputTxt:
|
||||
return alg.tr('Your configuration needs to be a non "moving window" configuration !')
|
||||
|
||||
return None
|
||||
|
||||
|
||||
def configFile(alg, outputTxt=False):
|
||||
""" Handle inline configuration """
|
||||
# Where is the GRASS7 user directory ?
|
||||
userGrass7Path = rliPath()
|
||||
if not path.isdir(userGrass7Path):
|
||||
mkdir(userGrass7Path)
|
||||
if not path.isdir(path.join(userGrass7Path, 'output')):
|
||||
mkdir(path.join(userGrass7Path, 'output'))
|
||||
origConfigFile = alg.getParameterValue('config')
|
||||
|
||||
# Handle inline configuration
|
||||
configTxt = alg.getParameterFromName('config_txt')
|
||||
if configTxt.value:
|
||||
# Creates a temporary txt file in user r.li directory
|
||||
tempConfig = alg.getTempFilename()
|
||||
configFilePath = path.join(userGrass7Path, tempConfig)
|
||||
# Inject rules into temporary txt file
|
||||
with open(configFilePath, "w") as f:
|
||||
f.write(configTxt.value)
|
||||
|
||||
# Use temporary file as rules file
|
||||
alg.setParameterValue('config', path.basename(configFilePath))
|
||||
alg.parameters.remove(configTxt)
|
||||
|
||||
# If we have a configuration file, we need to copy it into user dir
|
||||
if origConfigFile:
|
||||
configFilePath = path.join(userGrass7Path, path.basename(origConfigFile))
|
||||
# Copy the file
|
||||
shutil.copy(origConfigFile, configFilePath)
|
||||
|
||||
# Change the parameter value
|
||||
alg.setParameterValue('config', path.basename(configFilePath))
|
||||
|
||||
origOutput = alg.getOutputFromName('output')
|
||||
if outputTxt:
|
||||
param = getParameterFromString("ParameterString|output|txt output|None|False|True")
|
||||
param.value = path.basename(origOutput.value)
|
||||
alg.addParameter(param)
|
||||
alg.removeOutputFromName('output')
|
||||
|
||||
alg.processCommand()
|
||||
|
||||
# Remove Config file:
|
||||
removeConfigFile(alg)
|
||||
|
||||
# re-add configTxt
|
||||
alg.addParameter(configTxt)
|
||||
alg.setParameterValue('config', origConfigFile)
|
||||
if outputTxt:
|
||||
for param in [f for f in alg.parameters if f.name == 'output']:
|
||||
alg.parameters.remove(param)
|
||||
alg.addOutput(origOutput)
|
||||
|
||||
|
||||
def moveOutputTxtFile(alg):
|
||||
# Find output file name:
|
||||
origOutput = alg.getOutputValue('output')
|
||||
userGrass7Path = rliPath()
|
||||
|
||||
outputDir = path.join(userGrass7Path, 'output')
|
||||
output = path.join(outputDir, path.basename(origOutput))
|
||||
|
||||
# move the file
|
||||
if isWindows():
|
||||
command = "cp {} {}".format(output, origOutput)
|
||||
else:
|
||||
command = "mv {} {}".format(output, origOutput)
|
||||
alg.commands.append(command)
|
36
python/plugins/processing/algs/grass7/ext/r_li_cwed.py
Normal file
36
python/plugins/processing/algs/grass7/ext/r_li_cwed.py
Normal file
@ -0,0 +1,36 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
"""
|
||||
***************************************************************************
|
||||
r_li_cwed.py
|
||||
------------
|
||||
Date : February 2016
|
||||
Copyright : (C) 2016 by Médéric Ribreux
|
||||
Email : medspx at medspx dot fr
|
||||
***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************
|
||||
"""
|
||||
|
||||
__author__ = 'Médéric Ribreux'
|
||||
__date__ = 'February 2016'
|
||||
__copyright__ = '(C) 2016, Médéric Ribreux'
|
||||
|
||||
# This will get replaced with a git SHA1 when you do a git archive
|
||||
|
||||
__revision__ = '$Format:%H$'
|
||||
|
||||
from r_li import checkMovingWindow, configFile
|
||||
|
||||
|
||||
def checkParameterValuesBeforeExecuting(alg):
|
||||
checkMovingWindow(alg)
|
||||
|
||||
|
||||
def processCommand(alg):
|
||||
configFile(alg)
|
40
python/plugins/processing/algs/grass7/ext/r_li_cwed_ascii.py
Normal file
40
python/plugins/processing/algs/grass7/ext/r_li_cwed_ascii.py
Normal file
@ -0,0 +1,40 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
"""
|
||||
***************************************************************************
|
||||
r_li_cwed_ascii.py
|
||||
------------------
|
||||
Date : February 2016
|
||||
Copyright : (C) 2016 by Médéric Ribreux
|
||||
Email : medspx at medspx dot fr
|
||||
***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************
|
||||
"""
|
||||
|
||||
__author__ = 'Médéric Ribreux'
|
||||
__date__ = 'February 2016'
|
||||
__copyright__ = '(C) 2016, Médéric Ribreux'
|
||||
|
||||
# This will get replaced with a git SHA1 when you do a git archive
|
||||
|
||||
__revision__ = '$Format:%H$'
|
||||
|
||||
from r_li import checkMovingWindow, configFile, moveOutputTxtFile
|
||||
|
||||
|
||||
def checkParameterValuesBeforeExecuting(alg):
|
||||
return checkMovingWindow(alg, True)
|
||||
|
||||
|
||||
def processCommand(alg):
|
||||
configFile(alg, True)
|
||||
|
||||
|
||||
def processOutputs(alg):
|
||||
moveOutputTxtFile(alg)
|
36
python/plugins/processing/algs/grass7/ext/r_li_dominance.py
Normal file
36
python/plugins/processing/algs/grass7/ext/r_li_dominance.py
Normal file
@ -0,0 +1,36 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
"""
|
||||
***************************************************************************
|
||||
r_li_dominance.py
|
||||
-----------------
|
||||
Date : February 2016
|
||||
Copyright : (C) 2016 by Médéric Ribreux
|
||||
Email : medspx at medspx dot fr
|
||||
***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************
|
||||
"""
|
||||
|
||||
__author__ = 'Médéric Ribreux'
|
||||
__date__ = 'February 2016'
|
||||
__copyright__ = '(C) 2016, Médéric Ribreux'
|
||||
|
||||
# This will get replaced with a git SHA1 when you do a git archive
|
||||
|
||||
__revision__ = '$Format:%H$'
|
||||
|
||||
from r_li import checkMovingWindow, configFile
|
||||
|
||||
|
||||
def checkParameterValuesBeforeExecuting(alg):
|
||||
return checkMovingWindow(alg)
|
||||
|
||||
|
||||
def processCommand(alg):
|
||||
configFile(alg)
|
@ -0,0 +1,40 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
"""
|
||||
***************************************************************************
|
||||
r_li_dominance_ascii.py
|
||||
-----------------------
|
||||
Date : February 2016
|
||||
Copyright : (C) 2016 by Médéric Ribreux
|
||||
Email : medspx at medspx dot fr
|
||||
***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************
|
||||
"""
|
||||
|
||||
__author__ = 'Médéric Ribreux'
|
||||
__date__ = 'February 2016'
|
||||
__copyright__ = '(C) 2016, Médéric Ribreux'
|
||||
|
||||
# This will get replaced with a git SHA1 when you do a git archive
|
||||
|
||||
__revision__ = '$Format:%H$'
|
||||
|
||||
from r_li import checkMovingWindow, configFile, moveOutputTxtFile
|
||||
|
||||
|
||||
def checkParameterValuesBeforeExecuting(alg):
|
||||
return checkMovingWindow(alg, True)
|
||||
|
||||
|
||||
def processCommand(alg):
|
||||
configFile(alg, True)
|
||||
|
||||
|
||||
def processOutputs(alg):
|
||||
moveOutputTxtFile(alg)
|
@ -0,0 +1,36 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
"""
|
||||
***************************************************************************
|
||||
r_li_edgedensity.py
|
||||
-------------------
|
||||
Date : February 2016
|
||||
Copyright : (C) 2016 by Médéric Ribreux
|
||||
Email : medspx at medspx dot fr
|
||||
***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************
|
||||
"""
|
||||
|
||||
__author__ = 'Médéric Ribreux'
|
||||
__date__ = 'February 2016'
|
||||
__copyright__ = '(C) 2016, Médéric Ribreux'
|
||||
|
||||
# This will get replaced with a git SHA1 when you do a git archive
|
||||
|
||||
__revision__ = '$Format:%H$'
|
||||
|
||||
from r_li import checkMovingWindow, configFile
|
||||
|
||||
|
||||
def checkParameterValuesBeforeExecuting(alg):
|
||||
checkMovingWindow(alg)
|
||||
|
||||
|
||||
def processCommand(alg):
|
||||
configFile(alg)
|
@ -0,0 +1,40 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
"""
|
||||
***************************************************************************
|
||||
r_li_edgedensity_ascii.py
|
||||
-------------------------
|
||||
Date : February 2016
|
||||
Copyright : (C) 2016 by Médéric Ribreux
|
||||
Email : medspx at medspx dot fr
|
||||
***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************
|
||||
"""
|
||||
|
||||
__author__ = 'Médéric Ribreux'
|
||||
__date__ = 'February 2016'
|
||||
__copyright__ = '(C) 2016, Médéric Ribreux'
|
||||
|
||||
# This will get replaced with a git SHA1 when you do a git archive
|
||||
|
||||
__revision__ = '$Format:%H$'
|
||||
|
||||
from r_li import checkMovingWindow, configFile, moveOutputTxtFile
|
||||
|
||||
|
||||
def checkParameterValuesBeforeExecuting(alg):
|
||||
return checkMovingWindow(alg, True)
|
||||
|
||||
|
||||
def processCommand(alg):
|
||||
configFile(alg, True)
|
||||
|
||||
|
||||
def processOutputs(alg):
|
||||
moveOutputTxtFile(alg)
|
36
python/plugins/processing/algs/grass7/ext/r_li_mpa.py
Normal file
36
python/plugins/processing/algs/grass7/ext/r_li_mpa.py
Normal file
@ -0,0 +1,36 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
"""
|
||||
***************************************************************************
|
||||
r_li_mpa.py
|
||||
-----------
|
||||
Date : February 2016
|
||||
Copyright : (C) 2016 by Médéric Ribreux
|
||||
Email : medspx at medspx dot fr
|
||||
***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************
|
||||
"""
|
||||
|
||||
__author__ = 'Médéric Ribreux'
|
||||
__date__ = 'February 2016'
|
||||
__copyright__ = '(C) 2016, Médéric Ribreux'
|
||||
|
||||
# This will get replaced with a git SHA1 when you do a git archive
|
||||
|
||||
__revision__ = '$Format:%H$'
|
||||
|
||||
from r_li import checkMovingWindow, configFile
|
||||
|
||||
|
||||
def checkParameterValuesBeforeExecuting(alg):
|
||||
checkMovingWindow(alg)
|
||||
|
||||
|
||||
def processCommand(alg):
|
||||
configFile(alg)
|
40
python/plugins/processing/algs/grass7/ext/r_li_mpa_ascii.py
Normal file
40
python/plugins/processing/algs/grass7/ext/r_li_mpa_ascii.py
Normal file
@ -0,0 +1,40 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
"""
|
||||
***************************************************************************
|
||||
r_li_mpa_ascii.py
|
||||
-----------------
|
||||
Date : February 2016
|
||||
Copyright : (C) 2016 by Médéric Ribreux
|
||||
Email : medspx at medspx dot fr
|
||||
***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************
|
||||
"""
|
||||
|
||||
__author__ = 'Médéric Ribreux'
|
||||
__date__ = 'February 2016'
|
||||
__copyright__ = '(C) 2016, Médéric Ribreux'
|
||||
|
||||
# This will get replaced with a git SHA1 when you do a git archive
|
||||
|
||||
__revision__ = '$Format:%H$'
|
||||
|
||||
from r_li import checkMovingWindow, configFile, moveOutputTxtFile
|
||||
|
||||
|
||||
def checkParameterValuesBeforeExecuting(alg):
|
||||
return checkMovingWindow(alg, True)
|
||||
|
||||
|
||||
def processCommand(alg):
|
||||
configFile(alg, True)
|
||||
|
||||
|
||||
def processOutputs(alg):
|
||||
moveOutputTxtFile(alg)
|
36
python/plugins/processing/algs/grass7/ext/r_li_mps.py
Normal file
36
python/plugins/processing/algs/grass7/ext/r_li_mps.py
Normal file
@ -0,0 +1,36 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
"""
|
||||
***************************************************************************
|
||||
r_li_mps.py
|
||||
-----------
|
||||
Date : February 2016
|
||||
Copyright : (C) 2016 by Médéric Ribreux
|
||||
Email : medspx at medspx dot fr
|
||||
***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************
|
||||
"""
|
||||
|
||||
__author__ = 'Médéric Ribreux'
|
||||
__date__ = 'February 2016'
|
||||
__copyright__ = '(C) 2016, Médéric Ribreux'
|
||||
|
||||
# This will get replaced with a git SHA1 when you do a git archive
|
||||
|
||||
__revision__ = '$Format:%H$'
|
||||
|
||||
from r_li import checkMovingWindow, configFile
|
||||
|
||||
|
||||
def checkParameterValuesBeforeExecuting(alg):
|
||||
checkMovingWindow(alg)
|
||||
|
||||
|
||||
def processCommand(alg):
|
||||
configFile(alg)
|
40
python/plugins/processing/algs/grass7/ext/r_li_mps_ascii.py
Normal file
40
python/plugins/processing/algs/grass7/ext/r_li_mps_ascii.py
Normal file
@ -0,0 +1,40 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
"""
|
||||
***************************************************************************
|
||||
r_li_mps_ascii.py
|
||||
-----------------
|
||||
Date : February 2016
|
||||
Copyright : (C) 2016 by Médéric Ribreux
|
||||
Email : medspx at medspx dot fr
|
||||
***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************
|
||||
"""
|
||||
|
||||
__author__ = 'Médéric Ribreux'
|
||||
__date__ = 'February 2016'
|
||||
__copyright__ = '(C) 2016, Médéric Ribreux'
|
||||
|
||||
# This will get replaced with a git SHA1 when you do a git archive
|
||||
|
||||
__revision__ = '$Format:%H$'
|
||||
|
||||
from r_li import checkMovingWindow, configFile, moveOutputTxtFile
|
||||
|
||||
|
||||
def checkParameterValuesBeforeExecuting(alg):
|
||||
return checkMovingWindow(alg, True)
|
||||
|
||||
|
||||
def processCommand(alg):
|
||||
configFile(alg, True)
|
||||
|
||||
|
||||
def processOutputs(alg):
|
||||
moveOutputTxtFile(alg)
|
133
python/plugins/processing/algs/grass7/ext/r_li_orig.py
Normal file
133
python/plugins/processing/algs/grass7/ext/r_li_orig.py
Normal file
@ -0,0 +1,133 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
"""
|
||||
***************************************************************************
|
||||
r_li.py
|
||||
-------
|
||||
Date : February 2016
|
||||
Copyright : (C) 2016 by Médéric Ribreux
|
||||
Email : medspx at medspx dot fr
|
||||
***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************
|
||||
"""
|
||||
|
||||
__author__ = 'Médéric Ribreux'
|
||||
__date__ = 'February 2016'
|
||||
__copyright__ = '(C) 2016, Médéric Ribreux'
|
||||
|
||||
# This will get replaced with a git SHA1 when you do a git archive
|
||||
|
||||
__revision__ = '$Format:%H$'
|
||||
|
||||
import shutil
|
||||
from processing.tools.system import isWindows, isMac, userFolder, mkdir
|
||||
from os import path
|
||||
|
||||
|
||||
def rliPath():
|
||||
"""Return r.li GRASS7 user dir"""
|
||||
if isWindows():
|
||||
return path.join(userFolder(), 'GRASS7', 'r.li')
|
||||
else:
|
||||
return path.join(userFolder(), '.grass7', 'r.li')
|
||||
|
||||
|
||||
def removeConfigFile(alg):
|
||||
""" Remove the r.li user dir config file """
|
||||
configPath = alg.getParameterValue('config')
|
||||
if isWindow():
|
||||
command = "DEL {}".format(configPath)
|
||||
else:
|
||||
command = "rm {}".format(configPath)
|
||||
alg.commands.append(command)
|
||||
|
||||
|
||||
def checkMovingWindow(alg):
|
||||
""" Verify if we have the right parameters """
|
||||
configTxt = alg.getParameterValue('config_txt')
|
||||
config = alg.getParameterValue('config')
|
||||
if configTxt and config:
|
||||
return alg.tr("You need to set either inline configuration or a configuration file !")
|
||||
|
||||
# Verify that configuration is in moving window
|
||||
movingWindow = False
|
||||
if configTxt and 'MOVINGWINDOW' in configTxt:
|
||||
movingWindow = True
|
||||
|
||||
# Read config file:
|
||||
if config:
|
||||
with open(config) as f:
|
||||
for line in f:
|
||||
if 'MOVINGWINDOW' in line:
|
||||
movingWindow = True
|
||||
|
||||
if not movingWindow:
|
||||
return alg.tr('Your configuration needs to be a "moving window" configuration !')
|
||||
|
||||
return None
|
||||
|
||||
|
||||
def configFile(alg, outputTxt=False):
|
||||
""" Handle inline configuration """
|
||||
# Where is the GRASS7 user directory ?
|
||||
userGrass7Path = rliPath()
|
||||
mkdir(userGrass7Path)
|
||||
origConfigFile = alg.getParameterValue('config')
|
||||
|
||||
# Handle inline configuration
|
||||
configTxt = alg.getParameterFromName('config_txt')
|
||||
if configTxt.value:
|
||||
# Creates a temporary txt file in user r.li directory
|
||||
tempConfig = alg.getTempFilename()
|
||||
configFilePath = path.join(userGrass7, tempConfig)
|
||||
# Inject rules into temporary txt file
|
||||
with open(configFilePath, "w") as f:
|
||||
f.write(configTxt.value)
|
||||
|
||||
# Use temporary file as rules file
|
||||
alg.setParameterValue('config', configFilePath)
|
||||
alg.parameters.remove(configTxt)
|
||||
|
||||
# If we have a configuration file, we need to copy it into user dir
|
||||
if origConfigFile:
|
||||
configFilePath = path.join(userGrass7Path, path.basename(origConfigFile))
|
||||
# Copy the file
|
||||
shutil.copy(origConfigFile, configFilePath)
|
||||
|
||||
# Change the parameter value
|
||||
alg.setParameterValue('config', configFilePath)
|
||||
|
||||
if outputTxt:
|
||||
origOutput = alg.getOutputValue('output')
|
||||
alg.setOutputValue('output', path.basename(origOutput))
|
||||
|
||||
alg.processCommand()
|
||||
|
||||
# Remove Config file:
|
||||
removeConfigFile(alg)
|
||||
|
||||
# re-add configTxt
|
||||
alg.addParameter(configTxt)
|
||||
alg.setParameterValue('config', origConfigFile)
|
||||
|
||||
|
||||
def moveOutputTxtFile(alg):
|
||||
# Find output file name:
|
||||
origOutput = alg.getOutputValue('output')
|
||||
userGrass7Path = rliPath()
|
||||
|
||||
outputDir = path.join(userGrass7Path, 'OUTPUT')
|
||||
output = path.join(outputDir, path.basename(origOutput))
|
||||
|
||||
# move the file
|
||||
if isWindows():
|
||||
command = "cp {} {}".format(output, origOutput)
|
||||
else:
|
||||
command = "mv {} {}".format(output, origOutput)
|
||||
alg.commands.append(command)
|
36
python/plugins/processing/algs/grass7/ext/r_li_padcv.py
Normal file
36
python/plugins/processing/algs/grass7/ext/r_li_padcv.py
Normal file
@ -0,0 +1,36 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
"""
|
||||
***************************************************************************
|
||||
r_li_padcv.py
|
||||
-------------
|
||||
Date : February 2016
|
||||
Copyright : (C) 2016 by Médéric Ribreux
|
||||
Email : medspx at medspx dot fr
|
||||
***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************
|
||||
"""
|
||||
|
||||
__author__ = 'Médéric Ribreux'
|
||||
__date__ = 'February 2016'
|
||||
__copyright__ = '(C) 2016, Médéric Ribreux'
|
||||
|
||||
# This will get replaced with a git SHA1 when you do a git archive
|
||||
|
||||
__revision__ = '$Format:%H$'
|
||||
|
||||
from r_li import checkMovingWindow, configFile
|
||||
|
||||
|
||||
def checkParameterValuesBeforeExecuting(alg):
|
||||
checkMovingWindow(alg)
|
||||
|
||||
|
||||
def processCommand(alg):
|
||||
configFile(alg)
|
@ -0,0 +1,40 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
"""
|
||||
***************************************************************************
|
||||
r_li_padcv_ascii.py
|
||||
-------------------
|
||||
Date : February 2016
|
||||
Copyright : (C) 2016 by Médéric Ribreux
|
||||
Email : medspx at medspx dot fr
|
||||
***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************
|
||||
"""
|
||||
|
||||
__author__ = 'Médéric Ribreux'
|
||||
__date__ = 'February 2016'
|
||||
__copyright__ = '(C) 2016, Médéric Ribreux'
|
||||
|
||||
# This will get replaced with a git SHA1 when you do a git archive
|
||||
|
||||
__revision__ = '$Format:%H$'
|
||||
|
||||
from r_li import checkMovingWindow, configFile, moveOutputTxtFile
|
||||
|
||||
|
||||
def checkParameterValuesBeforeExecuting(alg):
|
||||
return checkMovingWindow(alg, True)
|
||||
|
||||
|
||||
def processCommand(alg):
|
||||
configFile(alg, True)
|
||||
|
||||
|
||||
def processOutputs(alg):
|
||||
moveOutputTxtFile(alg)
|
36
python/plugins/processing/algs/grass7/ext/r_li_padrange.py
Normal file
36
python/plugins/processing/algs/grass7/ext/r_li_padrange.py
Normal file
@ -0,0 +1,36 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
"""
|
||||
***************************************************************************
|
||||
r_li_padrange.py
|
||||
----------------
|
||||
Date : February 2016
|
||||
Copyright : (C) 2016 by Médéric Ribreux
|
||||
Email : medspx at medspx dot fr
|
||||
***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************
|
||||
"""
|
||||
|
||||
__author__ = 'Médéric Ribreux'
|
||||
__date__ = 'February 2016'
|
||||
__copyright__ = '(C) 2016, Médéric Ribreux'
|
||||
|
||||
# This will get replaced with a git SHA1 when you do a git archive
|
||||
|
||||
__revision__ = '$Format:%H$'
|
||||
|
||||
from r_li import checkMovingWindow, configFile
|
||||
|
||||
|
||||
def checkParameterValuesBeforeExecuting(alg):
|
||||
checkMovingWindow(alg)
|
||||
|
||||
|
||||
def processCommand(alg):
|
||||
configFile(alg)
|
@ -0,0 +1,40 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
"""
|
||||
***************************************************************************
|
||||
r_li_padrange_ascii.py
|
||||
----------------------
|
||||
Date : February 2016
|
||||
Copyright : (C) 2016 by Médéric Ribreux
|
||||
Email : medspx at medspx dot fr
|
||||
***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************
|
||||
"""
|
||||
|
||||
__author__ = 'Médéric Ribreux'
|
||||
__date__ = 'February 2016'
|
||||
__copyright__ = '(C) 2016, Médéric Ribreux'
|
||||
|
||||
# This will get replaced with a git SHA1 when you do a git archive
|
||||
|
||||
__revision__ = '$Format:%H$'
|
||||
|
||||
from r_li import checkMovingWindow, configFile, moveOutputTxtFile
|
||||
|
||||
|
||||
def checkParameterValuesBeforeExecuting(alg):
|
||||
return checkMovingWindow(alg, True)
|
||||
|
||||
|
||||
def processCommand(alg):
|
||||
configFile(alg, True)
|
||||
|
||||
|
||||
def processOutputs(alg):
|
||||
moveOutputTxtFile(alg)
|
36
python/plugins/processing/algs/grass7/ext/r_li_padsd.py
Normal file
36
python/plugins/processing/algs/grass7/ext/r_li_padsd.py
Normal file
@ -0,0 +1,36 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
"""
|
||||
***************************************************************************
|
||||
r_li_padsd.py
|
||||
-------------
|
||||
Date : February 2016
|
||||
Copyright : (C) 2016 by Médéric Ribreux
|
||||
Email : medspx at medspx dot fr
|
||||
***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************
|
||||
"""
|
||||
|
||||
__author__ = 'Médéric Ribreux'
|
||||
__date__ = 'February 2016'
|
||||
__copyright__ = '(C) 2016, Médéric Ribreux'
|
||||
|
||||
# This will get replaced with a git SHA1 when you do a git archive
|
||||
|
||||
__revision__ = '$Format:%H$'
|
||||
|
||||
from r_li import checkMovingWindow, configFile
|
||||
|
||||
|
||||
def checkParameterValuesBeforeExecuting(alg):
|
||||
checkMovingWindow(alg)
|
||||
|
||||
|
||||
def processCommand(alg):
|
||||
configFile(alg)
|
@ -0,0 +1,40 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
"""
|
||||
***************************************************************************
|
||||
r_li_padsd_ascii.py
|
||||
-------------------
|
||||
Date : February 2016
|
||||
Copyright : (C) 2016 by Médéric Ribreux
|
||||
Email : medspx at medspx dot fr
|
||||
***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************
|
||||
"""
|
||||
|
||||
__author__ = 'Médéric Ribreux'
|
||||
__date__ = 'February 2016'
|
||||
__copyright__ = '(C) 2016, Médéric Ribreux'
|
||||
|
||||
# This will get replaced with a git SHA1 when you do a git archive
|
||||
|
||||
__revision__ = '$Format:%H$'
|
||||
|
||||
from r_li import checkMovingWindow, configFile, moveOutputTxtFile
|
||||
|
||||
|
||||
def checkParameterValuesBeforeExecuting(alg):
|
||||
return checkMovingWindow(alg, True)
|
||||
|
||||
|
||||
def processCommand(alg):
|
||||
configFile(alg, True)
|
||||
|
||||
|
||||
def processOutputs(alg):
|
||||
moveOutputTxtFile(alg)
|
@ -0,0 +1,36 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
"""
|
||||
***************************************************************************
|
||||
r_li_patchdensity.py
|
||||
--------------------
|
||||
Date : February 2016
|
||||
Copyright : (C) 2016 by Médéric Ribreux
|
||||
Email : medspx at medspx dot fr
|
||||
***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************
|
||||
"""
|
||||
|
||||
__author__ = 'Médéric Ribreux'
|
||||
__date__ = 'February 2016'
|
||||
__copyright__ = '(C) 2016, Médéric Ribreux'
|
||||
|
||||
# This will get replaced with a git SHA1 when you do a git archive
|
||||
|
||||
__revision__ = '$Format:%H$'
|
||||
|
||||
from r_li import checkMovingWindow, configFile
|
||||
|
||||
|
||||
def checkParameterValuesBeforeExecuting(alg):
|
||||
checkMovingWindow(alg)
|
||||
|
||||
|
||||
def processCommand(alg):
|
||||
configFile(alg)
|
@ -0,0 +1,40 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
"""
|
||||
***************************************************************************
|
||||
r_li_patchdensity_ascii.py
|
||||
--------------------------
|
||||
Date : February 2016
|
||||
Copyright : (C) 2016 by Médéric Ribreux
|
||||
Email : medspx at medspx dot fr
|
||||
***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************
|
||||
"""
|
||||
|
||||
__author__ = 'Médéric Ribreux'
|
||||
__date__ = 'February 2016'
|
||||
__copyright__ = '(C) 2016, Médéric Ribreux'
|
||||
|
||||
# This will get replaced with a git SHA1 when you do a git archive
|
||||
|
||||
__revision__ = '$Format:%H$'
|
||||
|
||||
from r_li import checkMovingWindow, configFile, moveOutputTxtFile
|
||||
|
||||
|
||||
def checkParameterValuesBeforeExecuting(alg):
|
||||
return checkMovingWindow(alg, True)
|
||||
|
||||
|
||||
def processCommand(alg):
|
||||
configFile(alg, True)
|
||||
|
||||
|
||||
def processOutputs(alg):
|
||||
moveOutputTxtFile(alg)
|
36
python/plugins/processing/algs/grass7/ext/r_li_patchnum.py
Normal file
36
python/plugins/processing/algs/grass7/ext/r_li_patchnum.py
Normal file
@ -0,0 +1,36 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
"""
|
||||
***************************************************************************
|
||||
r_li_patchnum.py
|
||||
----------------
|
||||
Date : February 2016
|
||||
Copyright : (C) 2016 by Médéric Ribreux
|
||||
Email : medspx at medspx dot fr
|
||||
***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************
|
||||
"""
|
||||
|
||||
__author__ = 'Médéric Ribreux'
|
||||
__date__ = 'February 2016'
|
||||
__copyright__ = '(C) 2016, Médéric Ribreux'
|
||||
|
||||
# This will get replaced with a git SHA1 when you do a git archive
|
||||
|
||||
__revision__ = '$Format:%H$'
|
||||
|
||||
from r_li import checkMovingWindow, configFile
|
||||
|
||||
|
||||
def checkParameterValuesBeforeExecuting(alg):
|
||||
checkMovingWindow(alg)
|
||||
|
||||
|
||||
def processCommand(alg):
|
||||
configFile(alg)
|
@ -0,0 +1,40 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
"""
|
||||
***************************************************************************
|
||||
r_li_patchnum_ascii.py
|
||||
----------------------
|
||||
Date : February 2016
|
||||
Copyright : (C) 2016 by Médéric Ribreux
|
||||
Email : medspx at medspx dot fr
|
||||
***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************
|
||||
"""
|
||||
|
||||
__author__ = 'Médéric Ribreux'
|
||||
__date__ = 'February 2016'
|
||||
__copyright__ = '(C) 2016, Médéric Ribreux'
|
||||
|
||||
# This will get replaced with a git SHA1 when you do a git archive
|
||||
|
||||
__revision__ = '$Format:%H$'
|
||||
|
||||
from r_li import checkMovingWindow, configFile, moveOutputTxtFile
|
||||
|
||||
|
||||
def checkParameterValuesBeforeExecuting(alg):
|
||||
return checkMovingWindow(alg, True)
|
||||
|
||||
|
||||
def processCommand(alg):
|
||||
configFile(alg, True)
|
||||
|
||||
|
||||
def processOutputs(alg):
|
||||
moveOutputTxtFile(alg)
|
36
python/plugins/processing/algs/grass7/ext/r_li_pielou.py
Normal file
36
python/plugins/processing/algs/grass7/ext/r_li_pielou.py
Normal file
@ -0,0 +1,36 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
"""
|
||||
***************************************************************************
|
||||
r_li_pielou.py
|
||||
--------------
|
||||
Date : February 2016
|
||||
Copyright : (C) 2016 by Médéric Ribreux
|
||||
Email : medspx at medspx dot fr
|
||||
***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************
|
||||
"""
|
||||
|
||||
__author__ = 'Médéric Ribreux'
|
||||
__date__ = 'February 2016'
|
||||
__copyright__ = '(C) 2016, Médéric Ribreux'
|
||||
|
||||
# This will get replaced with a git SHA1 when you do a git archive
|
||||
|
||||
__revision__ = '$Format:%H$'
|
||||
|
||||
from r_li import checkMovingWindow, configFile
|
||||
|
||||
|
||||
def checkParameterValuesBeforeExecuting(alg):
|
||||
checkMovingWindow(alg)
|
||||
|
||||
|
||||
def processCommand(alg):
|
||||
configFile(alg)
|
@ -0,0 +1,40 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
"""
|
||||
***************************************************************************
|
||||
r_li_pielou_ascii.py
|
||||
--------------------
|
||||
Date : February 2016
|
||||
Copyright : (C) 2016 by Médéric Ribreux
|
||||
Email : medspx at medspx dot fr
|
||||
***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************
|
||||
"""
|
||||
|
||||
__author__ = 'Médéric Ribreux'
|
||||
__date__ = 'February 2016'
|
||||
__copyright__ = '(C) 2016, Médéric Ribreux'
|
||||
|
||||
# This will get replaced with a git SHA1 when you do a git archive
|
||||
|
||||
__revision__ = '$Format:%H$'
|
||||
|
||||
from r_li import checkMovingWindow, configFile, moveOutputTxtFile
|
||||
|
||||
|
||||
def checkParameterValuesBeforeExecuting(alg):
|
||||
return checkMovingWindow(alg, True)
|
||||
|
||||
|
||||
def processCommand(alg):
|
||||
configFile(alg, True)
|
||||
|
||||
|
||||
def processOutputs(alg):
|
||||
moveOutputTxtFile(alg)
|
36
python/plugins/processing/algs/grass7/ext/r_li_renyi.py
Normal file
36
python/plugins/processing/algs/grass7/ext/r_li_renyi.py
Normal file
@ -0,0 +1,36 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
"""
|
||||
***************************************************************************
|
||||
r_li_renyi.py
|
||||
--------------
|
||||
Date : February 2016
|
||||
Copyright : (C) 2016 by Médéric Ribreux
|
||||
Email : medspx at medspx dot fr
|
||||
***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************
|
||||
"""
|
||||
|
||||
__author__ = 'Médéric Ribreux'
|
||||
__date__ = 'February 2016'
|
||||
__copyright__ = '(C) 2016, Médéric Ribreux'
|
||||
|
||||
# This will get replaced with a git SHA1 when you do a git archive
|
||||
|
||||
__revision__ = '$Format:%H$'
|
||||
|
||||
from r_li import checkMovingWindow, configFile
|
||||
|
||||
|
||||
def checkParameterValuesBeforeExecuting(alg):
|
||||
checkMovingWindow(alg)
|
||||
|
||||
|
||||
def processCommand(alg):
|
||||
configFile(alg)
|
@ -0,0 +1,40 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
"""
|
||||
***************************************************************************
|
||||
r_li_renyi_ascii.py
|
||||
-------------------
|
||||
Date : February 2016
|
||||
Copyright : (C) 2016 by Médéric Ribreux
|
||||
Email : medspx at medspx dot fr
|
||||
***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************
|
||||
"""
|
||||
|
||||
__author__ = 'Médéric Ribreux'
|
||||
__date__ = 'February 2016'
|
||||
__copyright__ = '(C) 2016, Médéric Ribreux'
|
||||
|
||||
# This will get replaced with a git SHA1 when you do a git archive
|
||||
|
||||
__revision__ = '$Format:%H$'
|
||||
|
||||
from r_li import checkMovingWindow, configFile, moveOutputTxtFile
|
||||
|
||||
|
||||
def checkParameterValuesBeforeExecuting(alg):
|
||||
return checkMovingWindow(alg, True)
|
||||
|
||||
|
||||
def processCommand(alg):
|
||||
configFile(alg, True)
|
||||
|
||||
|
||||
def processOutputs(alg):
|
||||
moveOutputTxtFile(alg)
|
36
python/plugins/processing/algs/grass7/ext/r_li_richness.py
Normal file
36
python/plugins/processing/algs/grass7/ext/r_li_richness.py
Normal file
@ -0,0 +1,36 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
"""
|
||||
***************************************************************************
|
||||
r_li_richness.py
|
||||
----------------
|
||||
Date : February 2016
|
||||
Copyright : (C) 2016 by Médéric Ribreux
|
||||
Email : medspx at medspx dot fr
|
||||
***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************
|
||||
"""
|
||||
|
||||
__author__ = 'Médéric Ribreux'
|
||||
__date__ = 'February 2016'
|
||||
__copyright__ = '(C) 2016, Médéric Ribreux'
|
||||
|
||||
# This will get replaced with a git SHA1 when you do a git archive
|
||||
|
||||
__revision__ = '$Format:%H$'
|
||||
|
||||
from r_li import checkMovingWindow, configFile
|
||||
|
||||
|
||||
def checkParameterValuesBeforeExecuting(alg):
|
||||
checkMovingWindow(alg)
|
||||
|
||||
|
||||
def processCommand(alg):
|
||||
configFile(alg)
|
@ -0,0 +1,40 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
"""
|
||||
***************************************************************************
|
||||
r_li_richness_ascii.py
|
||||
----------------------
|
||||
Date : February 2016
|
||||
Copyright : (C) 2016 by Médéric Ribreux
|
||||
Email : medspx at medspx dot fr
|
||||
***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************
|
||||
"""
|
||||
|
||||
__author__ = 'Médéric Ribreux'
|
||||
__date__ = 'February 2016'
|
||||
__copyright__ = '(C) 2016, Médéric Ribreux'
|
||||
|
||||
# This will get replaced with a git SHA1 when you do a git archive
|
||||
|
||||
__revision__ = '$Format:%H$'
|
||||
|
||||
from r_li import checkMovingWindow, configFile, moveOutputTxtFile
|
||||
|
||||
|
||||
def checkParameterValuesBeforeExecuting(alg):
|
||||
return checkMovingWindow(alg, True)
|
||||
|
||||
|
||||
def processCommand(alg):
|
||||
configFile(alg, True)
|
||||
|
||||
|
||||
def processOutputs(alg):
|
||||
moveOutputTxtFile(alg)
|
36
python/plugins/processing/algs/grass7/ext/r_li_shannon.py
Normal file
36
python/plugins/processing/algs/grass7/ext/r_li_shannon.py
Normal file
@ -0,0 +1,36 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
"""
|
||||
***************************************************************************
|
||||
r_li_shannon.py
|
||||
----------------
|
||||
Date : February 2016
|
||||
Copyright : (C) 2016 by Médéric Ribreux
|
||||
Email : medspx at medspx dot fr
|
||||
***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************
|
||||
"""
|
||||
|
||||
__author__ = 'Médéric Ribreux'
|
||||
__date__ = 'February 2016'
|
||||
__copyright__ = '(C) 2016, Médéric Ribreux'
|
||||
|
||||
# This will get replaced with a git SHA1 when you do a git archive
|
||||
|
||||
__revision__ = '$Format:%H$'
|
||||
|
||||
from r_li import checkMovingWindow, configFile
|
||||
|
||||
|
||||
def checkParameterValuesBeforeExecuting(alg):
|
||||
checkMovingWindow(alg)
|
||||
|
||||
|
||||
def processCommand(alg):
|
||||
configFile(alg)
|
@ -0,0 +1,40 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
"""
|
||||
***************************************************************************
|
||||
r_li_shannon_ascii.py
|
||||
---------------------
|
||||
Date : February 2016
|
||||
Copyright : (C) 2016 by Médéric Ribreux
|
||||
Email : medspx at medspx dot fr
|
||||
***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************
|
||||
"""
|
||||
|
||||
__author__ = 'Médéric Ribreux'
|
||||
__date__ = 'February 2016'
|
||||
__copyright__ = '(C) 2016, Médéric Ribreux'
|
||||
|
||||
# This will get replaced with a git SHA1 when you do a git archive
|
||||
|
||||
__revision__ = '$Format:%H$'
|
||||
|
||||
from r_li import checkMovingWindow, configFile, moveOutputTxtFile
|
||||
|
||||
|
||||
def checkParameterValuesBeforeExecuting(alg):
|
||||
return checkMovingWindow(alg, True)
|
||||
|
||||
|
||||
def processCommand(alg):
|
||||
configFile(alg, True)
|
||||
|
||||
|
||||
def processOutputs(alg):
|
||||
moveOutputTxtFile(alg)
|
36
python/plugins/processing/algs/grass7/ext/r_li_shape.py
Normal file
36
python/plugins/processing/algs/grass7/ext/r_li_shape.py
Normal file
@ -0,0 +1,36 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
"""
|
||||
***************************************************************************
|
||||
r_li_shape.py
|
||||
-------------
|
||||
Date : February 2016
|
||||
Copyright : (C) 2016 by Médéric Ribreux
|
||||
Email : medspx at medspx dot fr
|
||||
***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************
|
||||
"""
|
||||
|
||||
__author__ = 'Médéric Ribreux'
|
||||
__date__ = 'February 2016'
|
||||
__copyright__ = '(C) 2016, Médéric Ribreux'
|
||||
|
||||
# This will get replaced with a git SHA1 when you do a git archive
|
||||
|
||||
__revision__ = '$Format:%H$'
|
||||
|
||||
from r_li import checkMovingWindow, configFile
|
||||
|
||||
|
||||
def checkParameterValuesBeforeExecuting(alg):
|
||||
checkMovingWindow(alg)
|
||||
|
||||
|
||||
def processCommand(alg):
|
||||
configFile(alg)
|
@ -0,0 +1,40 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
"""
|
||||
***************************************************************************
|
||||
r_li_shape_ascii.py
|
||||
-------------------
|
||||
Date : February 2016
|
||||
Copyright : (C) 2016 by Médéric Ribreux
|
||||
Email : medspx at medspx dot fr
|
||||
***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************
|
||||
"""
|
||||
|
||||
__author__ = 'Médéric Ribreux'
|
||||
__date__ = 'February 2016'
|
||||
__copyright__ = '(C) 2016, Médéric Ribreux'
|
||||
|
||||
# This will get replaced with a git SHA1 when you do a git archive
|
||||
|
||||
__revision__ = '$Format:%H$'
|
||||
|
||||
from r_li import checkMovingWindow, configFile, moveOutputTxtFile
|
||||
|
||||
|
||||
def checkParameterValuesBeforeExecuting(alg):
|
||||
return checkMovingWindow(alg, True)
|
||||
|
||||
|
||||
def processCommand(alg):
|
||||
configFile(alg, True)
|
||||
|
||||
|
||||
def processOutputs(alg):
|
||||
moveOutputTxtFile(alg)
|
36
python/plugins/processing/algs/grass7/ext/r_li_simpson.py
Normal file
36
python/plugins/processing/algs/grass7/ext/r_li_simpson.py
Normal file
@ -0,0 +1,36 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
"""
|
||||
***************************************************************************
|
||||
r_li_simpson.py
|
||||
---------------
|
||||
Date : February 2016
|
||||
Copyright : (C) 2016 by Médéric Ribreux
|
||||
Email : medspx at medspx dot fr
|
||||
***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************
|
||||
"""
|
||||
|
||||
__author__ = 'Médéric Ribreux'
|
||||
__date__ = 'February 2016'
|
||||
__copyright__ = '(C) 2016, Médéric Ribreux'
|
||||
|
||||
# This will get replaced with a git SHA1 when you do a git archive
|
||||
|
||||
__revision__ = '$Format:%H$'
|
||||
|
||||
from r_li import checkMovingWindow, configFile
|
||||
|
||||
|
||||
def checkParameterValuesBeforeExecuting(alg):
|
||||
checkMovingWindow(alg)
|
||||
|
||||
|
||||
def processCommand(alg):
|
||||
configFile(alg)
|
@ -0,0 +1,40 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
"""
|
||||
***************************************************************************
|
||||
r_li_simpson_ascii.py
|
||||
---------------------
|
||||
Date : February 2016
|
||||
Copyright : (C) 2016 by Médéric Ribreux
|
||||
Email : medspx at medspx dot fr
|
||||
***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************
|
||||
"""
|
||||
|
||||
__author__ = 'Médéric Ribreux'
|
||||
__date__ = 'February 2016'
|
||||
__copyright__ = '(C) 2016, Médéric Ribreux'
|
||||
|
||||
# This will get replaced with a git SHA1 when you do a git archive
|
||||
|
||||
__revision__ = '$Format:%H$'
|
||||
|
||||
from r_li import checkMovingWindow, configFile, moveOutputTxtFile
|
||||
|
||||
|
||||
def checkParameterValuesBeforeExecuting(alg):
|
||||
return checkMovingWindow(alg, True)
|
||||
|
||||
|
||||
def processCommand(alg):
|
||||
configFile(alg, True)
|
||||
|
||||
|
||||
def processOutputs(alg):
|
||||
moveOutputTxtFile(alg)
|
Loading…
x
Reference in New Issue
Block a user