Improve Test generation

This commit is contained in:
Médéric RIBREUX 2016-06-12 14:23:09 +02:00
parent bf02d34f55
commit 0cd4498658
4 changed files with 139 additions and 586 deletions

View File

@ -26,6 +26,7 @@ __copyright__ = '(C) 2013, Victor Olaya'
__revision__ = '$Format:%H$'
import os
import re
import yaml
import hashlib
@ -50,7 +51,9 @@ from processing.core.parameters import (
ParameterRaster,
ParameterVector,
ParameterMultipleInput,
ParameterFile
ParameterFile,
ParameterString,
ParameterBoolean
)
@ -95,11 +98,31 @@ def extractSchemaPath(filepath):
return schema, localpath
def parseParameters(command):
"""
Parse alg string to grab parameters value.
Can handle quotes and comma.
"""
pos = 0
exp = re.compile(r"""(['"]?)(.*?)\1(,|$)""")
while True:
m = exp.search(command, pos)
result = m.group(2)
separator = m.group(3)
yield result
if not separator:
break
pos = m.end(0)
def createTest(text):
definition = {}
tokens = text[len('processing.runalg('):-1].split(',')
cmdname = (tokens[0])[1:-1]
tokens = list(parseParameters(text[len('processing.runalg('):-1]))
cmdname = tokens[0]
alg = Processing.getAlgorithm(cmdname)
definition['name'] = 'Test ({})'.format(cmdname)
@ -117,8 +140,7 @@ def createTest(text):
token = tokens[i]
if isinstance(param, ParameterVector):
filename = token[1:-1]
schema, filepath = extractSchemaPath(filename)
schema, filepath = extractSchemaPath(token)
p = {
'type': 'vector',
'name': filepath
@ -128,8 +150,7 @@ def createTest(text):
params[param.name] = p
elif isinstance(param, ParameterRaster):
filename = token[1:-1]
schema, filepath = extractSchemaPath(filename)
schema, filepath = extractSchemaPath(token)
p = {
'type': 'raster',
'name': filepath
@ -139,7 +160,7 @@ def createTest(text):
params[param.name] = p
elif isinstance(param, ParameterMultipleInput):
multiparams = token[1:-1].split(';')
multiparams = token.split(';')
newparam = []
# Handle datatype detection
@ -164,8 +185,7 @@ def createTest(text):
params[param.name] = p
elif isinstance(param, ParameterFile):
filename = token[1:-1]
schema, filepath = extractSchemaPath(filename)
schema, filepath = extractSchemaPath(token)
p = {
'type': 'file',
'name': filepath
@ -174,6 +194,10 @@ def createTest(text):
p['location'] = '[The source data is not in the testdata directory. Please use data in the processing/tests/testdata folder.]'
params[param.name] = p
elif isinstance(param, ParameterString):
params[param.name] = token
elif isinstance(param, ParameterBoolean):
params[param.name] = token == 'True'
else:
try:
params[param.name] = int(token)
@ -195,8 +219,7 @@ def createTest(text):
if isinstance(out, (OutputNumber, OutputString)):
results[out.name] = unicode(out)
elif isinstance(out, OutputRaster):
filename = token[1:-1]
dataset = gdal.Open(filename, GA_ReadOnly)
dataset = gdal.Open(token, GA_ReadOnly)
dataArray = nan_to_num(dataset.ReadAsArray(0))
strhash = hashlib.sha224(dataArray.data).hexdigest()
@ -205,8 +228,7 @@ def createTest(text):
'hash': strhash
}
elif isinstance(out, OutputVector):
filename = token[1:-1]
schema, filepath = extractSchemaPath(filename)
schema, filepath = extractSchemaPath(token)
results[out.name] = {
'type': 'vector',
'name': filepath
@ -214,8 +236,7 @@ def createTest(text):
if not schema:
results[out.name]['location'] = '[The expected result data is not in the testdata directory. Please write it to processing/tests/testdata/expected. Prefer gml files.]'
elif isinstance(out, OutputHTML):
filename = token[1:-1]
schema, filepath = extractSchemaPath(filename)
schema, filepath = extractSchemaPath(token)
results[out.name] = {
'type': 'file',
'name': filepath
@ -224,7 +245,6 @@ def createTest(text):
results[out.name]['location'] = '[The expected result file is not in the testdata directory. Please redirect the output to processing/tests/testdata/expected.]'
definition['results'] = results
dlg = ShowTestDialog(yaml.dump([definition], default_flow_style=False))
dlg.exec_()
@ -244,7 +264,8 @@ class ShowTestDialog(QDialog):
self.text = QTextEdit()
self.text.setFontFamily("monospace")
self.text.setEnabled(True)
self.text.setText(s)
# Add two spaces in front of each text for faster copy/paste
self.text.setText(' {}'.format(s.replace('\n', '\n ')))
layout.addWidget(self.text)
self.setLayout(layout)
QMetaObject.connectSlotsByName(self)

View File

@ -0,0 +1,23 @@
<PAMDataset>
<PAMRasterBand band="1">
<Histograms>
<HistItem>
<HistMin>1</HistMin>
<HistMax>1</HistMax>
<BucketCount>1</BucketCount>
<IncludeOutOfRange>0</IncludeOutOfRange>
<Approximate>0</Approximate>
<HistCounts>0</HistCounts>
</HistItem>
</Histograms>
<Metadata>
<MDI key="COLOR_TABLE_RULES_COUNT">1</MDI>
<MDI key="COLOR_TABLE_RULE_RGB_0">1.000000e+00 1.000000e+00 255 0 127 255 0 127</MDI>
<MDI key="Generated_with">GRASS GIS 7.0.4</MDI>
<MDI key="STATISTICS_MAXIMUM">1</MDI>
<MDI key="STATISTICS_MEAN">1</MDI>
<MDI key="STATISTICS_MINIMUM">1</MDI>
<MDI key="STATISTICS_STDDEV">0</MDI>
</Metadata>
</PAMRasterBand>
</PAMDataset>

View File

@ -1,620 +1,129 @@
# See ../README.md for a description of the file format
tests:
# i.* modules
- algorithm: grass7:i.emissivity
name: GRASS7 i.emissivity
# r.* modules
- algorithm: grass7:r.plane
name: GRASS7 r.plane
params:
GRASS_REGION_PARAMETER: '344500.0,358400.0,6682800.0,6693700.0'
input:
type: raster
name: custom/grass7/raster_4class.tif
GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0
azimuth: 125
dip: 45
easting: 351610
elevation: 50
northing: 6688312
type: 1
results:
output:
type: rasterhash
hash: cef69ed56f0b0f991ae2f7f2a54b8a29319eaf8b7d65653c75cbf985
- algorithm: grass7:i.biomass
name: GRASS7 i.biomass
params:
GRASS_REGION_PARAMETER: '344500.0,358400.0,6682800.0,6693700.0'
dayofyear:
name: custom/grass7/raster_4class.tif
type: raster
fpar:
name: custom/grass7/raster_4class.tif
type: raster
latitude:
name: custom/grass7/raster_4class.tif
type: raster
lightuse_efficiency:
name: custom/grass7/raster_4class.tif
type: raster
transmissivity_singleway:
name: custom/grass7/raster_4class.tif
type: raster
water_availability:
name: custom/grass7/raster_4class.tif
type: raster
results:
output:
hash: 358c7745aaa5d7fbc56b34a21821fdfdc61f68e6ca79fb996a2241d8
hash: a9326678c39b6f925e7f22f6e79a48217100071cc8af85d675f28462
type: rasterhash
- algorithm: grass7:i.eb.eta
name: GRASS7 i.eb.eta
- algorithm: grass7:r.reclass
name: GRASS7 r.reclass
params:
GRASS_REGION_PARAMETER: '344500.0,358400.0,6682800.0,6693700.0'
evaporativefraction:
name: custom/grass7/raster_4class.tif
type: raster
netradiationdiurnal:
name: custom/grass7/raster_4class.tif
type: raster
temperature:
GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0
input:
name: custom/grass7/raster_4class.tif
type: raster
txtrules: 1 = 1\n* = NULL
results:
output:
hash: 23e65e4c5384b48d7151f781bab10e5caa398b36d363ff8c1049c917
hash: c50654b0c3ea019a14e9319e5f9be673d0e7fdd40a002a753fe88a7b
type: rasterhash
- algorithm: grass7:i.eb.netrad
name: GRASS7 i.eb.netrad
- algorithm: grass7:r.buffer
name: GRASS7 r.buffer
params:
GRASS_REGION_PARAMETER: '344500.0,358400.0,6682800.0,6693700.0'
albedo:
name: custom/grass7/raster_4class.tif
type: raster
dayofyear:
name: custom/grass7/raster_4class.tif
type: raster
emissivity:
name: custom/grass7/raster_4class.tif
type: raster
localutctime:
name: custom/grass7/raster_4class.tif
type: raster
ndvi:
name: custom/grass7/raster_4class.tif
type: raster
sunzenithangle:
name: custom/grass7/raster_4class.tif
type: raster
temperature:
name: custom/grass7/raster_4class.tif
type: raster
temperaturedifference2m:
name: custom/grass7/raster_4class.tif
type: raster
transmissivity_singleway:
name: custom/grass7/raster_4class.tif
GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0
distances: 500,1500
input:
name: custom/grass7/raster_1class.tif
type: raster
units: 0
results:
output:
hash: 361d48c66d978d4844ae7c073c9e6d042fdc8c7739b889a1efce3c3f
hash: 288fa95adddf1f1d139db7a56678e1bf3726610cfacde4c95d9d0ed5
type: rasterhash
- algorithm: grass7:i.eb.soilheatflux
name: GRASS7 i.eb.soilheatflux
- algorithm: grass7:r.buffer.lowmem
name: GRASS7 r.buffer.lowmem
params:
-r: 'False'
GRASS_REGION_PARAMETER: '344500.0,358400.0,6682800.0,6693700.0'
albedo:
name: custom/grass7/raster_4class.tif
type: raster
localutctime:
name: custom/grass7/raster_4class.tif
type: raster
ndvi:
name: custom/grass7/raster_4class.tif
type: raster
netradiation:
name: custom/grass7/raster_4class.tif
type: raster
temperature:
name: custom/grass7/raster_4class.tif
-z: False
GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0
distances: 500,1500
input:
name: custom/grass7/raster_1class.tif
type: raster
units: 0
results:
output:
hash: a25c4b750dd1f2f2124a117c80ac3f0e3d9b353618a86389eca794e8
hash: 288fa95adddf1f1d139db7a56678e1bf3726610cfacde4c95d9d0ed5
type: rasterhash
- algorithm: grass7:i.evapo.mh
name: GRASS7 i.evapo.mh
- algorithm: grass7:r.blend.combine
name: GRASS7 r.blend.combine
params:
-h: 'True'
GRASS_REGION_PARAMETER: '344500.0,358400.0,6682800.0,6693700.0'
average_temperature:
name: custom/grass7/raster_4class.tif
type: raster
maximum_temperature:
name: custom/grass7/raster_4class.tif
type: raster
minimum_temperature:
name: custom/grass7/raster_4class.tif
type: raster
netradiation_diurnal:
name: custom/grass7/raster_4class.tif
type: raster
results:
output:
hash: b0211772fe8e2c3d8c713551137f014756eb63ccd12f95a322f63ce0
type: rasterhash
- algorithm: grass7:i.evapo.pm
name: GRASS7 i.evapo.pm
params:
GRASS_REGION_PARAMETER: '344500.0,358400.0,6682800.0,6693700.0'
cropheight:
name: custom/grass7/raster_4class.tif
type: raster
elevation:
name: custom/grass7/raster_4class.tif
type: raster
netradiation:
name: custom/grass7/raster_4class.tif
type: raster
relativehumidity:
name: custom/grass7/raster_4class.tif
type: raster
temperature:
name: custom/grass7/raster_4class.tif
type: raster
windspeed:
name: custom/grass7/raster_4class.tif
type: raster
results:
output:
hash: 419ae792b057d2324354ce76d971d01e36751cf1c45cf3d856634576
type: rasterhash
- algorithm: grass7:i.evapo.pt
name: GRASS7 i.evapo.pt
params:
GRASS_REGION_PARAMETER: '344500.0,358400.0,6682800.0,6693700.0'
air_temperature:
name: custom/grass7/raster_4class.tif
type: raster
atmospheric_pressure:
name: custom/grass7/raster_4class.tif
type: raster
net_radiation:
name: custom/grass7/raster_4class.tif
type: raster
priestley_taylor_coeff: 1.26
soil_heatflux:
name: custom/grass7/raster_4class.tif
type: raster
results:
output:
hash: b0211772fe8e2c3d8c713551137f014756eb63ccd12f95a322f63ce0
type: rasterhash
- algorithm: grass7:i.topo.coor.ill
name: GRASS7 i.topo.coor.ill
params:
GRASS_REGION_PARAMETER: '344500.0,358400.0,6682800.0,6693700.0'
azimuth: 50
basemap:
name: custom/grass7/raster_4class.tif
type: raster
zenith: 50
results:
output:
hash: b08dc5b47f557ecadf0c125c99f249e49111c44e43f463c2444ab474
type: rasterhash
- algorithm: grass7:i.vi
name: GRASS7 i.vi
params:
GRASS_REGION_PARAMETER: '344500.0,358400.0,6682800.0,6693700.0'
nir:
name: custom/grass7/raster_4class.tif
type: raster
red:
name: custom/grass7/raster_4class.tif
type: raster
storage_bit: 1
viname: 10
results:
output:
hash: b0211772fe8e2c3d8c713551137f014756eb63ccd12f95a322f63ce0
type: rasterhash
- algorithm: grass7:i.zc
name: GRASS7 i.zc
params:
GRASS_REGION_PARAMETER: '344500.0,358400.0,6682800.0,6693700.0'
input:
name: custom/grass7/raster_4class.tif
type: raster
orientations: 1
threshold: 10
width: 9
results:
output:
hash: 270bbef9dd111af5df23a819cb0848e104e0cf4949e794a67fa0b3f2
type: rasterhash
- algorithm: grass7:i.group
name: GRASS7 i.group
params:
GRASS_REGION_PARAMETER: '344500.0,358400.0,6682800.0,6693700.0'
input:
type: multi
params:
- name: custom/grass7/raster_6class.tif
type: raster
- name: custom/grass7/raster_5class.tif
type: raster
- name: custom/grass7/raster_4class.tif
type: raster
results:
group:
hash: e1a433546cc1fdf7061adc0d9b77676c9d66ee8e0773d471bdb39a37
type: rasterhash
- algorithm: grass7:i.cluster
name: GRASS7 i.cluster
params:
GRASS_REGION_PARAMETER: '344500.0,358400.0,6682800.0,6693700.0'
classes: 5
convergence: 98
input:
params:
- name: custom/grass7/raster_6class.tif
type: raster
- name: custom/grass7/raster_5class.tif
type: raster
- name: custom/grass7/raster_4class.tif
type: raster
type: multi
iterations: 30
min_size: 17
separation: 0
results:
signaturefile:
type: regex
name: expected/grass7/i.cluster.sig.txt
rules:
- '#Class 1'
- '1.83333 1.53759 3.31579'
- '#Class 2'
- '2.11045 4.35498 3.32266'
- '#Class 3'
- '5.32655 1.72558 3.32713'
- '#Class 4'
- '4.34567 4.36522 3.30235'
- '#Class 5'
- '6 4.55734 3.30291'
- algorithm: grass7:i.oif
name: GRASS7 i.oif
params:
GRASS_REGION_PARAMETER: '344500.0,358400.0,6682800.0,6693700.0'
input:
params:
- name: custom/grass7/float_raster.tif
type: raster
- name: custom/grass7/raster_6class.tif
type: raster
- name: custom/grass7/raster_5class.tif
type: raster
- name: custom/grass7/raster_4class.tif
type: raster
type: multi
results:
output:
type: regex
name: expected/grass7/i.oif.txt
rules:
- '118773.1947'
- '4541.9055'
- '4369.2930'
- '128.6900'
# this doesn't work in travis-ci environment (probably due to libfftw version).
# - algorithm: grass7:i.fft
# name: GRASS7 i.fft
# params:
# GRASS_REGION_PARAMETER: '344500.0,358400.0,6682800.0,6693700.0'
# input:
# name: custom/grass7/float_raster.tif
# type: raster
# results:
# imaginary:
# hash: 94249384dd8b6019f0024501bc9a093cba9dd025c183d3fb46d77027
# type: rasterhash
# real:
# hash: 09ab93c65aa2dde4da422b62a5ed3e38208e2da072cec2b0eb837a47
# type: rasterhash
- algorithm: grass7:i.segment
name: GRASS7 i.segment
params:
GRASS_REGION_PARAMETER: '344500.0,358400.0,6682800.0,6693700.0'
input:
params:
- name: custom/grass7/raster_6class.tif
type: raster
- name: custom/grass7/raster_5class.tif
type: raster
- name: custom/grass7/raster_4class.tif
type: raster
type: multi
iterations: 20
memory: 300
method: 0
minsize: 1
similarity: 0
threshold: 0.5
results:
goodness:
hash: 4d7728e28734d2b67427a514bcd155d254d30b3424bf4e0ad8f0f0c6
type: rasterhash
output:
hash: b65992a5d48b867d4a32a533f38e7a72cb1ba18f1e261c6be132baca
type: rasterhash
- algorithm: grass7:i.gensig
name: GRASS7 i.gensig
params:
GRASS_REGION_PARAMETER: '344500.0,358400.0,6682800.0,6693700.0'
input:
params:
- name: custom/grass7/float_raster.tif
type: raster
type: multi
trainingmap:
name: custom/grass7/raster_4class.tif
type: raster
results:
signaturefile:
type: file
name: expected/grass7/i.gensig.txt
- algorithm: grass7:i.gensigset
name: GRASS7 i.gensigset
params:
GRASS_REGION_PARAMETER: '344500.0,358400.0,6682800.0,6693700.0'
input:
params:
- name: custom/grass7/float_raster.tif
type: raster
type: multi
maxsig: 5
trainingmap:
name: custom/grass7/raster_4class.tif
type: raster
results:
signaturefile:
type: file
name: expected/grass7/i.gensigset.txt
- algorithm: grass7:i.rgb.his
name: GRASS7 i.rgb.his
params:
GRASS_REGION_PARAMETER: '344500.0,358400.0,6682800.0,6693700.0'
blue:
name: custom/grass7/raster_6class.tif
type: raster
green:
name: custom/grass7/raster_5class.tif
type: raster
red:
name: custom/grass7/raster_4class.tif
type: raster
results:
hue:
hash: d82c717b0aca5c7bb49d6f2b086a188a6fbdc397c533734911261f74
type: rasterhash
intensity:
hash: 6d75d7a40460611301a1f2c2b162d08ae20fb5527d80509f19748b3c
type: rasterhash
saturation:
hash: 07578ad38cf948473a519f040acb0235f60a592904ac8ef46aa607e1
type: rasterhash
- algorithm: grass7:i.pansharpen
name: GRASS7 i.pansharpen
params:
GRASS_REGION_PARAMETER: '344500.0,358400.0,6682800.0,6693700.0'
blue:
name: custom/grass7/raster_4class.tif
type: raster
green:
name: custom/grass7/raster_5class.tif
type: raster
method: 2
pan:
GRASS_REGION_CELLSIZE_PARAMETER: 0
GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0
first:
name: custom/grass7/float_raster.tif
type: raster
red:
percent: 50
second:
name: custom/grass7/raster_6class.tif
type: raster
results:
blueoutput:
hash: 906de8be89e302057ed849d00eaf49332ecca73ffaba1374994f1a17
type: rasterhash
greenoutput:
hash: 588ad1ef8360ce903fc2defb1a1728a1dc8335d737d5fa77797605ed
type: rasterhash
redoutput:
hash: ad80c0007faa1b0dc15c0b0c21ff4e0045ff5e67b454df0f65e68899
type: rasterhash
- algorithm: grass7:i.smap
name: GRASS7 i.smap
params:
GRASS_REGION_PARAMETER: '344500.0,358400.0,6682800.0,6693700.0'
blocksize: 1024
input:
params:
- name: custom/grass7/float_raster.tif
type: raster
type: multi
signaturefile:
type: file
name: expected/grass7/i.gensigset.txt
results:
goodness:
hash: 26c3f407312e8a9e03e91c32e526f71ea9cfa78037a90a5f78f0818e
type: rasterhash
output:
hash: f9e99ac3891b23c650add0478bb5225444183c61c6a4c321a7c2a16f
type: rasterhash
- algorithm: grass7:i.maxlik
name: GRASS7 i.maxlik
params:
GRASS_REGION_PARAMETER: '344500.0,358400.0,6682800.0,6693700.0'
input:
params:
- name: custom/grass7/raster_6class.tif
type: raster
- name: custom/grass7/raster_5class.tif
type: raster
- name: custom/grass7/raster_4class.tif
type: raster
type: multi
signaturefile:
type: file
name: custom/grass7/i.cluster.txt
results:
output:
hash: a7b63bdda06fdcac715b8fe22e440238594a3dd0e189ca2328a3d694
type: rasterhash
reject:
hash: 87b3d0be1315a040a61c4d4dec2bd5837881ad207a4140a89a28997a
type: rasterhash
# - algorithm: grass7:i.evapo.time
# name: GRASS7 i.evapo.time
# params:
# GRASS_REGION_PARAMETER: '344500.0,358400.0,6682800.0,6693700.0'
# eta:
# params:
# - name: custom/grass7/raster_5class.tif
# type: raster
# - name: custom/grass7/raster_4class.tif
# type: raster
# type: multi
# eta_doy:
# params:
# - name: custom/grass7/raster_6class.tif
# type: raster
# - name: custom/grass7/raster_5class.tif
# type: raster
# type: multi
# eto:
# params:
# - name: custom/grass7/float_raster.tif
# type: raster
# - name: custom/grass7/raster_6class.tif
# type: raster
# type: multi
# results:
# output:
# hash: a361b729bf0b0628fa66822297dc57e71e0b2e56331f7145c3cfdce6
# type: rasterhash
- algorithm: grass7:i.eb.hsebal01
name: GRASS7 i.eb.hsebal01
params:
GRASS_REGION_PARAMETER: '344500.0,358400.0,6682800.0,6693700.0'
aerodynresistance:
name: custom/grass7/raster_6class.tif
type: raster
frictionvelocitystar: 0.32407
netradiation:
name: custom/grass7/raster_4class.tif
type: raster
soilheatflux:
name: custom/grass7/raster_5class.tif
type: raster
temperaturemeansealevel:
name: custom/grass7/float_raster.tif
type: raster
vapourpressureactual: 1.511
results:
output:
hash: cac9e91f9b5182fbad336fd46ecebcf5185327e009ae8dc4cc0367fc
hash: a32af325d511525f74df50a3ffcf0f448e28fe9018a3e3116e34947e
type: rasterhash
- algorithm: grass7:i.modis.qc
name: GRASS7 i.modis.qc
- algorithm: grass7:r.blend.rgb
name: GRASS7 r.blend.rgb
params:
GRASS_REGION_PARAMETER: '344500.0,358400.0,6682800.0,6693700.0'
input:
GRASS_REGION_CELLSIZE_PARAMETER: 0
GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0
first:
name: custom/grass7/float_raster.tif
type: raster
productname: 8
qcname: 5
percent: 50
second:
name: custom/grass7/raster_6class.tif
type: raster
results:
output:
hash: 0439e59b8c142a7f58cdece674c058891b64aafb1273ed6ce5e3ecf9
output_blue:
hash: f8ab20fdd7aead09f6d42d7eee668168dec102df85bac3d5632ea30b
type: rasterhash
output_green:
hash: 7b7f26391fdb60f6cfff3b976720ee7464a80da62e2d4e7c0a1f639a
type: rasterhash
output_red:
hash: a1cedc7dd0b5ba977aff5e0908fb8b0f40edae82daef54295d98e6df
type: rasterhash
- algorithm: grass7:i.image.mosaic
name: GRASS7 i.image.mosaic
- algorithm: grass7:r.circle
name: GRASS7 r.circle
params:
GRASS_REGION_PARAMETER: '344500.0,358400.0,6682800.0,6693700.0'
input:
params:
- name: custom/grass7/raster_6class.tif
type: raster
- name: custom/grass7/raster_5class.tif
type: raster
- name: custom/grass7/raster_4class.tif
type: raster
type: multi
-b: false
GRASS_REGION_CELLSIZE_PARAMETER: 0
GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0
coordinates: 351610,6688312
max: 2000
min: 500
multiplier: '1'
results:
output:
hash: 651bde2da0f150c0dbe7790da98f371e56de20a3f1cbb13ef6a69657
hash: e4eab441b88a873df44afe26c7c96d40d0944a5743953ffc18696c73
type: rasterhash
- algorithm: grass7:i.eb.hsebal01.coords
name: GRASS7 i.eb.hsebal01.coords
- algorithm: grass7:r.clump
name: GRASS7 r.clump
params:
GRASS_REGION_PARAMETER: '344500.0,358400.0,6682800.0,6693700.0'
aerodynresistance:
name: custom/grass7/float_raster.tif
type: raster
column_dry_pixel: '50'
column_wet_pixel: '10'
frictionvelocitystar: 0.32407
netradiation:
name: custom/grass7/float_raster.tif
type: raster
row_dry_pixel: '50'
row_wet_pixel: '10'
soilheatflux:
name: custom/grass7/float_raster.tif
type: raster
temperaturemeansealevel:
name: custom/grass7/float_raster.tif
type: raster
vapourpressureactual: 1.511
results:
output:
hash: b0211772fe8e2c3d8c713551137f014756eb63ccd12f95a322f63ce0
type: rasterhash
- algorithm: grass7:i.atcorr
name: GRASS7 i.atcorr
params:
GRASS_REGION_PARAMETER: '344500.0,358400.0,6682800.0,6693700.0'
GRASS_REGION_CELLSIZE_PARAMETER: 0
GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0
input:
name: custom/grass7/raster_6class.tif
type: raster
visibility:
name: custom/grass7/raster_5class.tif
type: raster
parameters:
type: file
name: custom/grass7/i.atcorr.txt
title: TESTS
results:
output:
hash: e5fada2ec43658e25a34d0486e810dec1cad289b626f6d1c4bbfea18
type: rasterhash
hash: 93df1dbc135f28781730d7b20a6ee52f0505320e355132a454abb4b9
type: rasterhash