test_raster_algebra_fails stdout
Default TGIS driver / database set to:
driver: sqlite
database: $GISDBASE/$LOCATION_NAME/$MAPSET/tgis/sqlite.db
WARNING: Temporal database connection defined as:
/grassdata/tests-grassdata/piemonte_utm32_wgs84_grass7/__temporal_t_rast_algebra_test_raster_algebra_fails/tgis/sqlite.db
But database file does not exist.
Creating temporal database: /grassdata/tests-grassdata/piemonte_utm32_wgs84_grass7/__temporal_t_rast_algebra_test_raster_algebra_fails/tgis/sqlite.db
Traceback (most recent call last):
File "scripts/t.rast.algebra", line 132, in <module>
sys.exit(main())
File "scripts/t.rast.algebra", line 124, in main
pc = p.parse(expression, basename, grass.script.overwrite())
File "etc/python/grass/temporal/temporal_raster_algebra.py", line 112, in parse
self.parser.parse(expression)
File "/usr/lib/python2.7/dist-packages/ply/yacc.py", line 331, in parse
return self.parseopt_notrack(input, lexer, debug, tracking, tokenfunc)
File "/usr/lib/python2.7/dist-packages/ply/yacc.py", line 1181, in parseopt_notrack
tok = call_errorfunc(self.errorfunc, errtoken, self)
File "/usr/lib/python2.7/dist-packages/ply/yacc.py", line 193, in call_errorfunc
r = errorfunc(token)
File "etc/python/grass/temporal/temporal_algebra.py", line 3041, in p_error
(t.lineno, t.lexpos, t.type, t.value, self.expression))
SyntaxError: syntax error on line 1, position 2 token CEQUALS near '==' expression 'R == A {+,equal| precedes| follows,l} B'
ERROR: Wrong type of input NoSTRDS
Traceback (most recent call last):
File "scripts/t.rast.algebra", line 132, in <module>
sys.exit(main())
File "scripts/t.rast.algebra", line 124, in main
pc = p.parse(expression, basename, grass.script.overwrite())
File "etc/python/grass/temporal/temporal_raster_algebra.py", line 112, in parse
self.parser.parse(expression)
File "/usr/lib/python2.7/dist-packages/ply/yacc.py", line 331, in parse
return self.parseopt_notrack(input, lexer, debug, tracking, tokenfunc)
File "/usr/lib/python2.7/dist-packages/ply/yacc.py", line 1106, in parseopt_notrack
p.callable(pslice)
File "etc/python/grass/temporal/temporal_raster_base_algebra.py", line 1042, in p_arith2_operation
maplistA = self.check_stds(t[1])
File "etc/python/grass/temporal/temporal_algebra.py", line 1226, in check_stds
self.msgr.fatal(_("Wrong type of input " + str(input)))
File "etc/python/grass/pygrass/messages/__init__.py", line 269, in fatal
raise FatalError(message)
grass.exceptions.FatalError: Wrong type of input NoSTRDS
Apply temporal and spatial operations on space time raster datasets using temporal raster algebra.
Usage:
t.rast.algebra [-sngd] expression=string basename=string
[suffix=string] [nprocs=value] [--help] [--verbose] [--quiet] [--ui]
Flags:
-s Check the spatial topology of temporally related maps and process only spatially related maps
-n Register Null maps
-g Use granularity sampling instead of the temporal topology approach
-d Perform a dry run, compute all dependencies and module calls but don't run them
Parameters:
expression r.mapcalc expression for temporal and spatial analysis of space time raster datasets
basename Basename of the new generated output maps
suffix Suffix to add at basename: set 'gran' for granularity, 'time' for the full time format, 'num' for numerical suffix with a specific number of digits (default %05)
default: num
nprocs Number of r.mapcalc processes to run in parallel
default: 1
ERROR: Required parameter <basename> not set:
(Basename of the new generated output maps)
Traceback (most recent call last):
File "scripts/t.rast.algebra", line 132, in <module>
sys.exit(main())
File "scripts/t.rast.algebra", line 124, in main
pc = p.parse(expression, basename, grass.script.overwrite())
File "etc/python/grass/temporal/temporal_raster_algebra.py", line 99, in parse
raise SyntaxError("Syntax error near '%s'" %(tok.type))
SyntaxError: Syntax error near 'STRDS'