[GRASS-SVN] r61430 - grass/trunk/lib/python/temporal
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jul 28 11:36:11 PDT 2014
Author: huhabla
Date: 2014-07-28 11:36:11 -0700 (Mon, 28 Jul 2014)
New Revision: 61430
Modified:
grass/trunk/lib/python/temporal/c_libraries_interface.py
Log:
temporal: Changed gras into gscript
Modified: grass/trunk/lib/python/temporal/c_libraries_interface.py
===================================================================
--- grass/trunk/lib/python/temporal/c_libraries_interface.py 2014-07-28 16:54:22 UTC (rev 61429)
+++ grass/trunk/lib/python/temporal/c_libraries_interface.py 2014-07-28 18:36:11 UTC (rev 61430)
@@ -661,24 +661,24 @@
Usage:
@code
- >>> import grass.script as grass
+ >>> import grass.script as gscript
>>> import grass.temporal as tgis
- >>> grass.use_temp_region()
- >>> grass.run_command("g.region", n=80.0, s=0.0, e=120.0, w=0.0,
+ >>> gscript.use_temp_region()
+ >>> gscript.run_command("g.region", n=80.0, s=0.0, e=120.0, w=0.0,
... t=1.0, b=0.0, res=10.0, res3=10.0)
0
>>> tgis.init()
- >>> grass.run_command("r.mapcalc", expression="test = 1", overwrite=True, quiet=True)
+ >>> gscript.run_command("r.mapcalc", expression="test = 1", overwrite=True, quiet=True)
0
- >>> grass.run_command("r3.mapcalc", expression="test = 1", overwrite=True, quiet=True)
+ >>> gscript.run_command("r3.mapcalc", expression="test = 1", overwrite=True, quiet=True)
0
- >>> grass.run_command("v.random", output="test", n=10, overwrite=True, quiet=True)
+ >>> gscript.run_command("v.random", output="test", n=10, overwrite=True, quiet=True)
0
- >>> grass.run_command("r.timestamp", map="test", date='12 Mar 1995 10:34:40', overwrite=True, quiet=True)
+ >>> gscript.run_command("r.timestamp", map="test", date='12 Mar 1995 10:34:40', overwrite=True, quiet=True)
0
- >>> grass.run_command("r3.timestamp", map="test", date='12 Mar 1995 10:34:40', overwrite=True, quiet=True)
+ >>> gscript.run_command("r3.timestamp", map="test", date='12 Mar 1995 10:34:40', overwrite=True, quiet=True)
0
- >>> grass.run_command("v.timestamp", map="test", date='12 Mar 1995 10:34:40', overwrite=True, quiet=True)
+ >>> gscript.run_command("v.timestamp", map="test", date='12 Mar 1995 10:34:40', overwrite=True, quiet=True)
0
# Check mapsets
@@ -760,7 +760,7 @@
>>> ciface.has_vector_timestamp("test", tgis.get_current_mapset())
True
- >>> grass.del_temp_region()
+ >>> gscript.del_temp_region()
@endcode
"""
More information about the grass-commit
mailing list