1
|
Processing algorithm 1/2…
|
2
|
Algorithm r.mapcalc.simple starting…
|
3
|
Input parameters:
|
4
|
{'GRASS_RASTER_FORMAT_META': '',
|
5
|
'GRASS_RASTER_FORMAT_OPT': '',
|
6
|
'GRASS_REGION_CELLSIZE_PARAMETER': 0.0,
|
7
|
'GRASS_REGION_PARAMETER': None,
|
8
|
'a': 'qa_raster_01',
|
9
|
'b': 'ndvi_raster_01',
|
10
|
'c': None,
|
11
|
'd': None,
|
12
|
'e': None,
|
13
|
'expression': 'if((A == 322 || A == 386 || A == 834 || A == 898 || A == 1346) '
|
14
|
'&& (B <= 10000 && B >= -10000), (B * 0.0001), null())',
|
15
|
'f': None,
|
16
|
'output': <QgsProcessingOutputLayerDefinition {'sink':D:/qgis_conditional_mapcalc/masked_ndvi_raster_01.tif, 'createOptions': {}}>}
|
17
|
|
18
|
g.proj -c proj4="+proj=utm +zone=36 +datum=WGS84 +units=m +no_defs"
|
19
|
r.external input="D:\qgis_conditional_mapcalc\qa_raster_01.tif" band=1 output="rast_5cd1253a6e0412" --overwrite -o
|
20
|
r.external input="D:\qgis_conditional_mapcalc\ndvi_raster_01.tif" band=1 output="rast_5cd1253a6e42a3" --overwrite -o
|
21
|
g.region n=5540825.2698 s=5496005.2698 e=410581.0546 w=376441.0546 res=30.0
|
22
|
r.mapcalc.simple a=rast_5cd1253a6e0412 b=rast_5cd1253a6e42a3 expression="if((A == 322 || A == 386 || A == 834 || A == 898 || A == 1346) && (B <= 10000 && B >= -10000), (B * 0.0001), null())" output=output480cabbeb4b94d589af4cb44a3b72c20 --overwrite
|
23
|
g.region raster=output480cabbeb4b94d589af4cb44a3b72c20
|
24
|
r.out.gdal -t -m input="output480cabbeb4b94d589af4cb44a3b72c20" output="D:\qgis_conditional_mapcalc\masked_ndvi_raster_01.tif" format="GTiff" createopt="TFW=YES,COMPRESS=LZW" --overwrite
|
25
|
Cleaning up temporary files...
|
26
|
Starting GRASS GIS...
|
27
|
Traceback (most recent call last):
|
28
|
File "C:/OSGEO4~1/apps/qgis/./python/plugins\processing\algs\grass7\Grass7Algorithm.py", line 427, in processAlgorithm
|
29
|
Grass7Utils.executeGrass(self.commands, feedback, self.outputCommands)
|
30
|
File "C:/OSGEO4~1/apps/qgis/./python/plugins\processing\algs\grass7\Grass7Utils.py", line 404, in executeGrass
|
31
|
feedback.reportError(line.strip())
|
32
|
TypeError: reportError(self, error: str, fatalError: bool): not enough arguments
|
33
|
|
34
|
Batch execution completed in 12.49 seconds
|