[GRASS-user] Interpreting r.watershed accumulation map

Rich Shepard rshepard at appl-ecosys.com
Tue Oct 11 11:38:32 PDT 2016


On Tue, 11 Oct 2016, Laurent C. wrote:

> - Your rainfall rate is very small.

Laurent,

   Changed rain to 10 mm/h, time to 2 hrs with 5 min steps. Specified mapset
for DEM map (be_cropped) as it's not in the analyses mapset.

> - By setting bctype=4 and bcvalue=0 on all your region, you're forcing
> a water depth of zero everywhere. For a start, you can drop those
> parameters.

   Removed both bctype and bcvalue.

> About the problem you encounter. Since GRASS does not support python3
> (AFAIK), Itzï is only tested with python 2.7. It is strange that it
> installed with python3. To force the installation with python2, you
> can run the following command:
> $ pip2 install itzi --user

   Yes, now itzi is installed for both python2 and python3.

   There is an issue with the time-space databases that prevent the
simulation from running:

> itzi run itzi-param.txt 
Starting simulation of itzi-param.txt... 
WARNING: Error during execution: Traceback (most recent call last):
   File "/usr/lib/python2.7/site-packages/itzi/itzi.py", line 183, in
sim_runner_worker
     sim_runner.run()
   File "/usr/lib/python2.7/site-packages/itzi/itzi.py", line 90, in run
     sim_param=self.conf.sim_param)
   File "/usr/lib/python2.7/site-packages/itzi/simulation.py", line 77, in
__init__
     self.gis.read(self.in_map_names)
   File "/usr/lib/python2.7/site-packages/itzi/gis.py", line 187, in read
     elif self.name_is_stds(self.format_id(map_name)):
   File "/usr/lib/python2.7/site-packages/itzi/gis.py", line 138, in
name_is_stds
     if tgis.SpaceTimeRasterDataset(name).is_in_db():
   File
"/usr/local/grass-7.3.svn/etc/python/grass/temporal/abstract_dataset.py",
line 368, in is_in_db
     return self.base.is_in_db(dbif)
   File "/usr/local/grass-7.3.svn/etc/python/grass/temporal/base.py", line
315, in is_in_db
     dbif.execute(sql, mapset=self.mapset)
   File "/usr/local/grass-7.3.svn/etc/python/grass/temporal/core.py", line
981, in execute
     self._create_mapset_error_message(mapset)))
   File
"/usr/local/grass-7.3.svn/etc/python/grass/pygrass/messages/__init__.py",
line 271, in fatal
     sys.exit(1)
SystemExit: 1

Simulations complete. Elapsed times: 
itzi-param.txt: 0:00:00 
Total: 0:00:00 
Average: 0:00:00

Rich


More information about the grass-user mailing list