Skip to content
Permalink
Browse files

changed saga descriptions to new format (still need to be checked and…

… improved)

git-svn-id: http://sextante.googlecode.com/svn/trunk/soft/bindings/qgis-plugin@33 881b9c09-3ef8-f3c2-ec3d-21d735c97f4d
  • Loading branch information
volayaf@gmail.com
volayaf@gmail.com committed Mar 10, 2012
1 parent 93aacbc commit ba478239408ca416e7f400b16cb6a90dad5a298f
Showing 750 changed files with 3,080 additions and 18,523 deletions.
@@ -94,9 +94,12 @@ def processParameterLine(self,line):
elif tokens[1].lower().strip() == "boolean":
default = tokens[1].strip()[len("boolean")+1:]
param = ParameterBoolean(tokens[0], desc, default)
elif tokens[ 1].lower().strip().startswith("number"):
default = tokens[1].strip()[len("number")+1:]
param = ParameterNumber(tokens[0], desc, default=default)
elif tokens[1].lower().strip().startswith("number"):
try:
default = float(tokens[1].strip()[len("number")+1:])
param = ParameterNumber(tokens[0], desc, default=default)
except:
raise WrongScriptException("Could not load R script:" + self.descriptionFile + ".\n Problem with line \"" + line + "\"")
elif tokens[1].lower().strip().startswith("field"):
field = tokens[1].strip()[len("field")+1:]
found = False
@@ -136,7 +139,7 @@ def processAlgorithm(self, progress):
if self.showPlots:
htmlfilename = self.getOutputValue(RAlgorithm.RPLOTS)
f = open(htmlfilename, "w")
f.write("<img src=\"" + self.plotsFilename + "/>")
f.write("<img src=\"" + self.plotsFilename + "\"/>")
f.close()
if self.showConsoleOutput:
htmlfilename = self.getOutputValue(RAlgorithm.R_CONSOLE_OUTPUT)
@@ -202,7 +205,7 @@ def getImportCommands(self):
if isinstance(param, (ParameterTableField, ParameterString)):
commands.append(param.name + "=\"" + param.value + "\"")
if isinstance(param, ParameterNumber):
commands.append(param.name + "=" + param.value)
commands.append(param.name + "=" + str(param.value))
if isinstance(param, ParameterBoolean):
b = (param.value == str(True))
if b:
@@ -54,7 +54,7 @@ def executeRAlgorithm(alg):
pass

proc = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stdin=subprocess.PIPE,stderr=subprocess.STDOUT, universal_newlines=True)

proc.wait()
RUtils.createConsoleOutput()


@@ -1,6 +1,6 @@
//polyg=vector
//numpoints=number
//output=output vector
//[Example scripts]=group
##polyg=vector
##numpoints=number 10
##output=output vector
##[Example scripts]=group
pts=spsample(polyg,numpoints,type="regular")
output=SpatialPointsDataFrame(pts, as.data.frame(pts))
@@ -1,6 +1,6 @@
//[Example scripts]=group
//points=vector
//showplots
##[Example scripts]=group
##points=vector
##showplots
library("maptools")
library("spatstat")
ppp=as(as(points, "SpatialPoints"),"ppp")
@@ -0,0 +1,7 @@
Average With Thereshold 1
contrib_a_perego
ParameterRaster|INPUT|Input|False
ParameterNumber|RX|Radius X|0|None|1
ParameterNumber|RY|Radius Y|0|None|1
ParameterNumber|THRESH|Threshold|None|None|10
OutputRaster|RESULT|AWT Grid
@@ -0,0 +1,7 @@
Average With Thereshold 2
contrib_a_perego
ParameterRaster|INPUT|Input|False
ParameterNumber|RX|Radius X|1|None|3
ParameterNumber|RY|Radius Y|1|None|3
ParameterNumber|THRESH|Threshold|None|None|0
OutputRaster|RESULT|AWT Grid
@@ -0,0 +1,16 @@
Residual Analysis (Grid)
geostatistics_grid
ParameterRaster|GRID|Grid|False
ParameterNumber|RADIUS|Radius (Cells)|1|None|7
ParameterSelection|DISTANCE_WEIGHTING_WEIGHTING|Distance Weighting|[0] no distance weighting;[1] inverse distance to a power;[2] exponential;[3] gaussian weighting
ParameterNumber|DISTANCE_WEIGHTING_IDW_POWER|Inverse Distance Weighting Power|None|None|1
ParameterBoolean|DISTANCE_WEIGHTING_IDW_OFFSET|Inverse Distance Offset|True
ParameterNumber|DISTANCE_WEIGHTING_BANDWIDTH|Gaussian and Exponential Weighting Bandwidth|None|None|1
OutputRaster|MEAN|Mean Value
OutputRaster|DIFF|Difference from Mean Value
OutputRaster|STDDEV|Standard Deviation
OutputRaster|RANGE|Value Range
OutputRaster|MIN|Minimum Value
OutputRaster|MAX|Maximum Value
OutputRaster|DEVMEAN|Deviation from Mean Value
OutputRaster|PERCENT|Percentile
@@ -0,0 +1,16 @@
Multilevel B-Spline Interpolation (from Grid)
grid_spline
ParameterRaster|GRIDPOINTS|Grid|False
ParameterSelection|TARGET|Target Grid|[0] user defined;[1] grid
ParameterSelection|METHOD|Method|[0] without B-spline refinement;[1] with B-spline refinement
ParameterNumber|EPSILON|Threshold Error|None|None|0
ParameterNumber|LEVEL_MAX|Maximum Level|None|None|0
ParameterBoolean|UPDATE |Update View|True
ParameterSelection|DATATYPE|Data Type|[0] same as input grid;[1] floating point
ParameterNumber|USER_XMIN|Left|None|None|0
ParameterNumber|USER_XMAX|Right|None|None|0
ParameterNumber|USER_YMIN|Bottom|None|None|0
ParameterNumber|USER_YMAX|Top|None|None|0
ParameterNumber|USER_SIZE|Cellsize|None|None|0
OutputRaster|USER_GRID|Grid
OutputRaster|GRID_GRID|Grid
@@ -0,0 +1,16 @@
Cubic Spline Approximation
grid_spline
ParameterVector|SHAPES|Points|-1|False
ParameterTableField|FIELD|Attribute|SHAPES
ParameterSelection|TARGET|Target Grid|[0] user defined;[1] grid
ParameterNumber|NPMIN|Minimal Number of Points|None|None|0
ParameterNumber|NPMAX|Maximal Number of Points|None|None|0
ParameterNumber|NPPC|Points per Square|None|None|0
ParameterNumber|K|Tolerance|None|None|0
ParameterNumber|USER_XMIN|Left|None|None|0
ParameterNumber|USER_XMAX|Right|None|None|0
ParameterNumber|USER_YMIN|Bottom|None|None|0
ParameterNumber|USER_YMAX|Top|None|None|0
ParameterNumber|USER_SIZE|Cellsize|None|None|0
OutputRaster|USER_GRID|Grid
OutputRaster|GRID_GRID|Grid
@@ -0,0 +1,16 @@
Resampling
grid_tools
ParameterRaster|INPUT|Grid|False
ParameterMultipleInput|INPUT_ADD|Additional Grids|3|True
ParameterBoolean|KEEP_TYPE |Preserve Data Type|True
ParameterSelection|TARGET|Target Grid|[0] user defined;[1] grid
ParameterSelection|SCALE_UP_METHOD|Interpolation Method|[0] Nearest Neighbor;[1] Bilinear Interpolation;[2] Inverse Distance Interpolation;[3] Bicubic Spline Interpolation;[4] B-Spline Interpolation;[5] Mean Value;[6] Mean Value (cell area weighted);[7] Minimum Value;[8] Maximum Value;[9] Majority
ParameterSelection|SCALE_DOWN_METHOD|Interpolation Method|[0] Nearest Neighbor;[1] Bilinear Interpolation;[2] Inverse Distance Interpolation;[3] Bicubic Spline Interpolation;[4] B-Spline Interpolation
ParameterNumber|USER_XMIN|Left|None|None|0
ParameterNumber|USER_XMAX|Right|None|None|0
ParameterNumber|USER_YMIN|Bottom|None|None|0
ParameterNumber|USER_YMAX|Top|None|None|0
ParameterNumber|USER_SIZE|Cellsize|None|None|0
OutputRaster|OUTPUT_ADD|Additional Grids
OutputRaster|USER_GRID|Grid
OutputRaster|GRID_GRID|Grid
@@ -0,0 +1,5 @@
Aggregate
grid_tools
ParameterRaster|INPUT|Grid|False
ParameterNumber|SIZE|Aggregation Size|None|None|0
ParameterSelection|METHOD|Method|[0] Sum;[1] Min;[2] Max
@@ -0,0 +1,8 @@
Grid Proximity Buffer
grid_tools
ParameterRaster|SOURCE|Source Grid|False
ParameterNumber|DIST|Buffer distance|None|None|0
ParameterNumber|IVAL|Equidistance|None|None|0
OutputRaster|DISTANCE|Distance Grid
OutputRaster|ALLOC|Allocation Grid
OutputRaster|BUFFER|Buffer Grid
@@ -0,0 +1,5 @@
Convert Data Storage Type
grid_tools
ParameterRaster|INPUT|Grid|False
ParameterSelection|TYPE|Data storage type|[0] bit;[1] unsigned 1 byte integer;[2] signed 1 byte integer;[3] unsigned 2 byte integer;[4] signed 2 byte integer;[5] unsigned 4 byte integer;[6] signed 4 byte integer;[7] 4 byte floating point number;[8] 8 byte floating point number
OutputRaster|OUTPUT|Converted Grid
@@ -0,0 +1,6 @@
Change Grid Values
grid_tools
ParameterRaster|GRID_IN|Grid|False
ParameterSelection|METHOD|Replace Condition|[0] Grid value equals low value;[1] Low value < grid value < high value;[2] Low value <= grid value < high value
ParameterFixedTable|LOOKUP|Lookup Table|3| Low Value; High Value; Replace with|False
OutputRaster|GRID_OUT|Changed Grid
@@ -0,0 +1,19 @@
Reclassify Grid Values
grid_tools
ParameterRaster|INPUT|Grid|False
ParameterSelection|METHOD|Method|[0] single;[1] range;[2] simple table;[3] user supplied table
ParameterNumber|OLD|old value|None|None|0
ParameterNumber|NEW|new value|None|None|0
ParameterSelection|SOPERATOR|operator|[0] =;[1] <;[2] <=;[3] >=;[4] >
ParameterNumber|MIN|minimum value|None|None|0
ParameterNumber|MAX|maximum value|None|None|0
ParameterNumber|RNEW|new value|None|None|0
ParameterSelection|ROPERATOR|operator|[0] <=;[1] <
ParameterFixedTable|RETAB|Lookup Table|3| minimum; maximum; new|False
ParameterSelection|TOPERATOR|operator|[0] min <= value < max;[1] min <= value <= max;[2] min < value <= max;[3] min < value < max
ParameterTable|RETAB_2|Lookup Table|True
ParameterBoolean|NODATAOPT |no data values|True
ParameterNumber|NODATA|new value|None|None|0
ParameterBoolean|OTHEROPT |other values|True
ParameterNumber|OTHERS|new value|None|None|0
OutputRaster|RESULT|Reclassified Grid
@@ -0,0 +1,4 @@
Crop to Data
grid_tools
ParameterMultipleInput|INPUT|Grids|3|False
OutputRaster|OUTPUT|Cropped Grids
@@ -0,0 +1,4 @@
Invert Data/No-Data
grid_tools
ParameterRaster|INPUT|Grid|False
OutputRaster|OUTPUT|Result
@@ -0,0 +1,6 @@
Representativeness (Grid)
geostatistics_grid
ParameterRaster|INPUT|Grid|False
ParameterNumber|RADIUS|Radius (Cells)|1|None|10
ParameterNumber|EXPONENT|Exponent|None|None|1
OutputRaster|RESULT|Representativeness
@@ -0,0 +1,5 @@
Grid Orientation
grid_tools
ParameterRaster|INPUT|Grid|False
ParameterSelection|METHOD|Method|[0] Copy;[1] Flip;[2] Mirror;[3] Invert
OutputRaster|RESULT|Changed Grid
@@ -0,0 +1,6 @@
Combine Grids
grid_tools
ParameterRaster|GRID1|Grid 1|False
ParameterRaster|GRID2|Grid 2|False
ParameterFixedTable|LOOKUP|LookUp Table|3| Value in Grid 1; Value in Grid 2; Resulting Value|False
OutputRaster|RESULT|Result
@@ -0,0 +1,5 @@
Sort Grid
grid_tools
ParameterRaster|GRID|Input Grid|False
ParameterBoolean|DOWN |Down sort|True
OutputRaster|OUTPUT|Sorted Grid
@@ -0,0 +1,6 @@
Grids from classified grid and table
grid_tools
ParameterTable|TABLE|Table|False
ParameterTableField|ID_FIELD|Attribute|TABLE
ParameterRaster|CLASSES|Classes|False
OutputRaster|GRIDS|Grids
@@ -0,0 +1,18 @@
Create Grid System
grid_tools
ParameterSelection|M_EXTENT|Set extent by|[0] xMin, yMin, NX, NY;[1] xMin, yMin, xMax, yMax;[2] Shape(s);[3] Grid(s)
ParameterNumber|XMIN|xMin|None|None|0
ParameterNumber|YMIN|yMin|None|None|0
ParameterNumber|XMAX|xMax|None|None|0
ParameterNumber|YMAX|yMax|None|None|0
ParameterNumber|NX|NX|None|None|0
ParameterNumber|NY|NY|None|None|0
ParameterNumber|CELLSIZE|Cellsize|None|None|0
ParameterSelection|ADJUST|Adjust|[0] Extent to CellSize;[1] CellSize to W-E Extent;[2] CellSize to S-N Extent
ParameterBoolean|USEOFF |Use Offset|True
ParameterNumber|XOFFSET|X offset|None|None|0
ParameterNumber|YOFFSET|Y offset|None|None|0
ParameterNumber|INIT|Initialization Value|None|None|0
ParameterMultipleInput|SHAPESLIST|Shape(s)|-1|True
ParameterMultipleInput|GRIDLIST|Grid(s)|3|True
OutputRaster|GRID|Dummy Grid
@@ -0,0 +1,5 @@
Grid Masking
grid_tools
ParameterRaster|GRID|Grid|False
ParameterRaster|MASK|Mask|False
OutputRaster|MASKED|Masked Grid
@@ -0,0 +1,12 @@
Close Gaps with Spline
grid_tools
ParameterRaster|GRID|Grid|False
ParameterRaster|MASK|Mask|True
ParameterNumber|MAXGAPCELLS|Only Process Gaps with Less Cells|None|None|0
ParameterNumber|MAXPOINTS|Maximum Points|None|None|0
ParameterNumber|LOCALPOINTS|Number of Points for Local Interpolation|None|None|0
ParameterBoolean|EXTENDED |Extended Neighourhood|True
ParameterSelection|NEIGHBOURS|Neighbourhood|[0] Neumann;[1] Moore
ParameterNumber|RADIUS|Radius (Cells)|None|None|0
ParameterNumber|RELAXATION|Relaxation|None|None|0
OutputRaster|CLOSED|Closed Gaps Grid
@@ -0,0 +1,6 @@
Proximity Grid
grid_tools
ParameterRaster|FEATURES|Features|False
OutputRaster|DISTANCE|Distance
OutputRaster|DIRECTION|Direction
OutputRaster|ALLOCATION|Allocation
@@ -0,0 +1,16 @@
Tiling
grid_tools
ParameterRaster|GRID|Grid|False
ParameterNumber|OVERLAP|Overlapping Cells|None|None|0
ParameterSelection|OVERLAP_SYM|Add Cells|[0] symmetric;[1] bottom / left;[2] top / right
ParameterSelection|METHOD|Tile Size Definition|[0] number of grid cells per tile;[1] coordinates (offset, range, cell size, tile size)
ParameterNumber|NX|Number of Column Cells|None|None|0
ParameterNumber|NY|Number of Row Cells|None|None|0
ParameterRange|XRANGE_MIN|Offset and Range (X)
ParameterRange|XRANGE_MAX|Offset and Range (X)
ParameterRange|YRANGE_MIN|Offset and Range (Y)
ParameterRange|YRANGE_MAX|Offset and Range (Y)
ParameterNumber|DCELL|Cell Size|None|None|0
ParameterNumber|DX|Tile Size (X)|None|None|0
ParameterNumber|DY|Tile Size (Y)|None|None|0
OutputRaster|TILES|Tiles
@@ -0,0 +1,8 @@
Grid Shrink/Expand
grid_tools
ParameterRaster|INPUT|Grid|False
ParameterSelection|OPERATION|Operation|[0] Shrink;[1] Expand
ParameterSelection|MODE|Search Mode|[0] Square;[1] Circle
ParameterNumber|RADIUS|Radius|None|None|0
ParameterSelection|METHOD_EXPAND|Method|[0] min;[1] max;[2] mean;[3] majority
OutputRaster|RESULT|Result Grid
@@ -0,0 +1,7 @@
Radius of Variance (Grid)
geostatistics_grid
ParameterRaster|INPUT|Grid|False
ParameterNumber|VARIANCE|Standard Deviation|0|None|1
ParameterNumber|RADIUS|Maximum Search Radius (cells)|0|None|20
ParameterSelection|OUTPUT|Type of Output|[0] Cells;[1] Map Units
OutputRaster|RESULT|Variance Radius
@@ -0,0 +1,9 @@
Merging
grid_tools
ParameterMultipleInput|GRIDS|Grids to Merge|3|False
ParameterSelection|TYPE|Preferred data storage type|[0] 1 bit;[1] 1 byte unsigned integer;[2] 1 byte signed integer;[3] 2 byte unsigned integer;[4] 2 byte signed integer;[5] 4 byte unsigned integer;[6] 4 byte signed integer;[7] 4 byte floating point;[8] 8 byte floating point
ParameterSelection|INTERPOL|Interpolation|[0] Nearest Neighbor;[1] Bilinear Interpolation;[2] Inverse Distance Interpolation;[3] Bicubic Spline Interpolation;[4] B-Spline Interpolation
ParameterSelection|OVERLAP|Overlapping Cells|[0] mean value;[1] first value in order of grid list
ParameterNumber|MERGE_INFO_MESH_SIZE|Cell Size|None|None|0
OutputRaster|GRID_TARGET|Target Grid
OutputRaster|MERGED|Merged Grid
@@ -0,0 +1,4 @@
Create Constant Grid
grid_tools
ParameterRaster|GRID|Base Grid|False
ParameterNumber|VALUE|Value|None|None|0
@@ -0,0 +1,6 @@
Patching
grid_tools
ParameterRaster|ORIGINAL|Grid|False
ParameterRaster|ADDITIONAL|Patch Grid|False
ParameterSelection|INTERPOLATION|Interpolation Method|[0] Nearest Neighbor;[1] Bilinear Interpolation;[2] Inverse Distance Interpolation;[3] Bicubic Spline Interpolation;[4] B-Spline Interpolation
OutputRaster|COMPLETED|Completed Grid
@@ -0,0 +1,4 @@
Close One Cell Gaps
grid_tools
ParameterRaster|INPUT|Grid|False
OutputRaster|RESULT|Changed Grid
@@ -0,0 +1,6 @@
Close Gaps
grid_tools
ParameterRaster|INPUT|Grid|False
ParameterRaster|MASK|Mask|True
ParameterNumber|THRESHOLD|Tension Threshold|None|None|0
OutputRaster|RESULT|Changed Grid
@@ -0,0 +1,6 @@
Grid Buffer
grid_tools
ParameterRaster|FEATURES|Features Grid|False
ParameterNumber|DIST|Distance|None|None|0
ParameterSelection|BUFFERTYPE|Buffer Distance|[0] Fixed;[1] Cell value
OutputRaster|BUFFER|Buffer Grid
@@ -0,0 +1,8 @@
Threshold Buffer
grid_tools
ParameterRaster|FEATURES|Features Grid|False
ParameterRaster|VALUE|Value Grid|False
ParameterRaster|THRESHOLDGRID|Threshold Grid|True
ParameterNumber|THRESHOLD|Threshold|None|None|0
ParameterSelection|THRESHOLDTYPE|Threshold Type|[0] Absolute;[1] Relative from cell value
OutputRaster|BUFFER|Buffer Grid
@@ -0,0 +1,4 @@
Color Palette Rotation
grid_visualisation
ParameterRaster|GRID|Grid|False
ParameterBoolean|DIR |Down|True
@@ -0,0 +1,6 @@
Color Blending
grid_visualisation
ParameterMultipleInput|GRIDS|Grids|3|False
ParameterNumber|NSTEPS|Interpolation Steps|None|None|0
ParameterSelection|RANGE|Color Stretch|[0] fit to each grid;[1] fit to overall range;[2] fit to overall 1.5 standard deviation;[3] fit to overall 2.0 standard deviation
OutputRaster|GRID|Grid
@@ -0,0 +1,7 @@
Fit Color Palette to Grid Values
grid_visualisation
ParameterRaster|GRID|Grid|False
ParameterNumber|COUNT|Number of Colors|None|None|0
ParameterSelection|SCALE|Scale|[0] Grid range;[1] User defined range
ParameterRange|RANGE_MIN|User defined range
ParameterRange|RANGE_MAX|User defined range
@@ -0,0 +1,10 @@
Statistics for Grids
geostatistics_grid
ParameterMultipleInput|GRIDS|Grids|3|False
OutputRaster|MEAN|Arithmetic Mean
OutputRaster|MIN|Minimum
OutputRaster|MAX|Maximum
OutputRaster|VAR|Variance
OutputRaster|STDDEV|Standard Deviation
OutputRaster|STDDEVLO|Mean less Standard Deviation
OutputRaster|STDDEVHI|Mean plus Standard Deviation

0 comments on commit ba47823

Please sign in to comment.
You can’t perform that action at this time.