On 25 November 2014 at 16:36, Erick Opiyo <[email protected]> wrote: > I have replaced g.mlist with g.list. > > And now I have two versions of grass 7.0-r62941 and 7.1-r62932 > > But, now I get another wired error, shown below: For both 7.0 and 7.1 > > 7.0 > > ERROR: output map <MOD13Q1.h16v05.2000081.EVI.Filtered.tiff> exists > Traceback (most recent call last): > File "phenology/cloud_filter/grass_modis_filter_MODIS.py", line 72, in > <module> > R3,R2,R4,R1,R5,E3), overwrite=False) > File "/usr/local/grass-7.0.0svn/etc/python/grass/script/core.py", line > 465, in parse_command > res = read_command(*args, **kwargs) > File "/usr/local/grass-7.0.0svn/etc/python/grass/script/core.py", line > 425, in read_command > return handle_errors(returncode, stdout, args, kwargs) > File "/usr/local/grass-7.0.0svn/etc/python/grass/script/core.py", line > 308, in handle_errors > returncode=returncode) > grass.exceptions.CalledModuleError: Module run None ['r.mapcalc', > 'expression=.......some long expression.....)'] ended with error > Process ended with non-zero return code 1. See errors in the (error) output. > > Note: The line 72 in the file grass_modis_filter_MODIS.py starts with > g.parse_command("r.mapcalc", expression=..... > > 7.1 > > ERROR: output map <MOD13Q1.h16v05.2000081.EVI.Filtered.tiff> exists > Traceback (most recent call last): > File "phenology/cloud_filter/grass_modis_filter_MODIS.py", line 72, in > <module> > R3,R2,R4,R1,R5,E3), overwrite=False) > File "/usr/local/grass-7.1.svn/etc/python/grass/script/core.py", line 465, > in parse_command > res = read_command(*args, **kwargs) > File "/usr/local/grass-7.1.svn/etc/python/grass/script/core.py", line 425, > in read_command > return handle_errors(returncode, stdout, args, kwargs) > File "/usr/local/grass-7.1.svn/etc/python/grass/script/core.py", line 308, > in handle_errors > returncode=returncode) > grass.exceptions.CalledModuleError: Module run None ['r.mapcalc', > 'expression=.......some long expression.....)'] ended with error > Process ended with non-zero return code 1. See errors in the (error) output. >
can I suggest you to use the python interface to r.mapcalc [0] http://grass.osgeo.org/grass71/manuals/libpython/script.html#script.raster.mapcalc parse_command it should be used only to read the output of module using the '-g' flag for shell style output, not to run modules that are doing analysis > > Thanks > Erick > -- ciao Luca http://gis.cri.fmach.it/delucchi/ www.lucadelu.org _______________________________________________ grass-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-dev
