[GRASS-SVN] r69830 - in grass/branches/releasebranch_7_2/temporal: t.connect t.connect/testsuite t.create t.info t.info/testsuite t.rast.aggregate/testsuite t.rast.algebra t.rast.list t.rast.mapcalc t.rast.neighbors t.rast.univar t.rast.univar/testsuite t.rast3d.algebra t.rast3d.mapcalc t.sample t.select t.topology t.unregister/testsuite t.vect.algebra t.vect.extract/testsuite t.vect.list t.vect.univar

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Nov 15 05:09:04 PST 2016


Author: huhabla
Date: 2016-11-15 05:09:04 -0800 (Tue, 15 Nov 2016)
New Revision: 69830

Modified:
   grass/branches/releasebranch_7_2/temporal/t.connect/main.c
   grass/branches/releasebranch_7_2/temporal/t.connect/testsuite/test_distr_tgis_db_raster.py
   grass/branches/releasebranch_7_2/temporal/t.connect/testsuite/test_distr_tgis_db_raster3d.py
   grass/branches/releasebranch_7_2/temporal/t.connect/testsuite/test_distr_tgis_db_vector.py
   grass/branches/releasebranch_7_2/temporal/t.create/t.create.py
   grass/branches/releasebranch_7_2/temporal/t.info/t.info.html
   grass/branches/releasebranch_7_2/temporal/t.info/t.info.py
   grass/branches/releasebranch_7_2/temporal/t.info/testsuite/test.t.info.sh
   grass/branches/releasebranch_7_2/temporal/t.rast.aggregate/testsuite/test_aggregation_absolute.py
   grass/branches/releasebranch_7_2/temporal/t.rast.algebra/t.rast.algebra.py
   grass/branches/releasebranch_7_2/temporal/t.rast.list/t.rast.list.py
   grass/branches/releasebranch_7_2/temporal/t.rast.mapcalc/t.rast.mapcalc.py
   grass/branches/releasebranch_7_2/temporal/t.rast.neighbors/t.rast.neighbors.py
   grass/branches/releasebranch_7_2/temporal/t.rast.univar/t.rast.univar.html
   grass/branches/releasebranch_7_2/temporal/t.rast.univar/t.rast.univar.py
   grass/branches/releasebranch_7_2/temporal/t.rast.univar/testsuite/test_univar.py
   grass/branches/releasebranch_7_2/temporal/t.rast3d.algebra/t.rast3d.algebra.py
   grass/branches/releasebranch_7_2/temporal/t.rast3d.mapcalc/t.rast3d.mapcalc.py
   grass/branches/releasebranch_7_2/temporal/t.sample/t.sample.py
   grass/branches/releasebranch_7_2/temporal/t.select/t.select.py
   grass/branches/releasebranch_7_2/temporal/t.topology/t.topology.py
   grass/branches/releasebranch_7_2/temporal/t.unregister/testsuite/test_unregister.py
   grass/branches/releasebranch_7_2/temporal/t.vect.algebra/t.vect.algebra.py
   grass/branches/releasebranch_7_2/temporal/t.vect.extract/testsuite/test_vect_extract.py
   grass/branches/releasebranch_7_2/temporal/t.vect.list/t.vect.list.py
   grass/branches/releasebranch_7_2/temporal/t.vect.univar/t.vect.univar.py
Log:
temporal modules: Attempt to harmonize the flags of temporal modules (merge from trunk r69510, 
r69554, r69555, r69576, r69674)


Modified: grass/branches/releasebranch_7_2/temporal/t.connect/main.c
===================================================================
--- grass/branches/releasebranch_7_2/temporal/t.connect/main.c	2016-11-15 08:44:51 UTC (rev 69829)
+++ grass/branches/releasebranch_7_2/temporal/t.connect/main.c	2016-11-15 13:09:04 UTC (rev 69830)
@@ -31,9 +31,9 @@
 
     /* Set description */
     module = G_define_module();
-    G_add_keyword(_("database"));
-    G_add_keyword(_("attribute table"));
-    G_add_keyword(_("connection settings"));
+    G_add_keyword(_("temporal"));
+    G_add_keyword(_("settings"));
+    G_add_keyword(_("metadata"));
     module->description =
 	_("Prints/sets general temporal GIS database connection for current mapset.");
 

Modified: grass/branches/releasebranch_7_2/temporal/t.connect/testsuite/test_distr_tgis_db_raster.py
===================================================================
--- grass/branches/releasebranch_7_2/temporal/t.connect/testsuite/test_distr_tgis_db_raster.py	2016-11-15 08:44:51 UTC (rev 69829)
+++ grass/branches/releasebranch_7_2/temporal/t.connect/testsuite/test_distr_tgis_db_raster.py	2016-11-15 13:09:04 UTC (rev 69830)
@@ -32,7 +32,7 @@
             cls.runModule("g.region", s=0, n=80,
                           w=0, e=120, b=0, t=50, res=10, res3=10)
             cls.runModule("t.connect", flags="d")
-            cls.runModule("t.info", flags="s")
+            cls.runModule("t.info", flags="d")
             cls.runModule("r.mapcalc", expression="a1 = 100")
             cls.runModule("r.mapcalc", expression="a2 = 200")
             cls.runModule("r.mapcalc", expression="a3 = 300")
@@ -104,7 +104,7 @@
                                 a3|test1|2001-03-01 00:00:00|2001-04-01 00:00:00"""
 
         trast_list = SimpleModule(
-            "t.rast.list", quiet=True, flags="s", input="A at test1")
+            "t.rast.list", quiet=True, flags="u", input="A at test1")
         self.assertModule(trast_list)
 
         out = trast_list.outputs["stdout"].value
@@ -117,7 +117,7 @@
                                 a3|test2|2001-05-01 00:00:00|2001-07-01 00:00:00"""
 
         trast_list = SimpleModule(
-            "t.rast.list", quiet=True, flags="s", input="A at test2")
+            "t.rast.list", quiet=True, flags="u", input="A at test2")
         self.assertModule(trast_list)
 
         out = trast_list.outputs["stdout"].value
@@ -130,7 +130,7 @@
                                 a3|test3|2001-07-01 00:00:00|2001-10-01 00:00:00"""
 
         trast_list = SimpleModule(
-            "t.rast.list", quiet=True, flags="s", input="A at test3")
+            "t.rast.list", quiet=True, flags="u", input="A at test3")
         self.assertModule(trast_list)
 
         out = trast_list.outputs["stdout"].value
@@ -143,7 +143,7 @@
                                 a3|test4|2001-09-01 00:00:00|2002-01-01 00:00:00"""
 
         trast_list = SimpleModule(
-            "t.rast.list", quiet=True, flags="s", input="A at test4")
+            "t.rast.list", quiet=True, flags="u", input="A at test4")
         self.assertModule(trast_list)
 
         out = trast_list.outputs["stdout"].value
@@ -156,7 +156,7 @@
                                 a3|test5|2001-11-01 00:00:00|2002-04-01 00:00:00"""
 
         trast_list = SimpleModule(
-            "t.rast.list", quiet=True, flags="s", input="A at test5")
+            "t.rast.list", quiet=True, flags="u", input="A at test5")
         self.assertModule(trast_list)
 
         out = trast_list.outputs["stdout"].value
@@ -164,7 +164,7 @@
         for a, b in zip(list_string.split("\n"), out.split("\n")):
             self.assertEqual(a.strip(), b.strip())
 
-        trast_list = SimpleModule("t.rast.list", quiet=True, flags="s",
+        trast_list = SimpleModule("t.rast.list", quiet=True, flags="u",
                                   input="A at test5", output=self.outfile)
         self.assertModule(trast_list)
         self.assertFileExists(self.outfile)

Modified: grass/branches/releasebranch_7_2/temporal/t.connect/testsuite/test_distr_tgis_db_raster3d.py
===================================================================
--- grass/branches/releasebranch_7_2/temporal/t.connect/testsuite/test_distr_tgis_db_raster3d.py	2016-11-15 08:44:51 UTC (rev 69829)
+++ grass/branches/releasebranch_7_2/temporal/t.connect/testsuite/test_distr_tgis_db_raster3d.py	2016-11-15 13:09:04 UTC (rev 69830)
@@ -37,7 +37,7 @@
             cls.runModule("r3.mapcalc", expression="a3 = 300")
             # Create the temporal database
             cls.runModule("t.connect", flags="d")
-            cls.runModule("t.info", flags="s")
+            cls.runModule("t.info", flags="d")
             cls.runModule("t.create", type="str3ds", temporaltype="absolute",
                           output="A", title="A test3d", description="A test3d")
             cls.runModule(

Modified: grass/branches/releasebranch_7_2/temporal/t.connect/testsuite/test_distr_tgis_db_vector.py
===================================================================
--- grass/branches/releasebranch_7_2/temporal/t.connect/testsuite/test_distr_tgis_db_vector.py	2016-11-15 08:44:51 UTC (rev 69829)
+++ grass/branches/releasebranch_7_2/temporal/t.connect/testsuite/test_distr_tgis_db_vector.py	2016-11-15 13:09:04 UTC (rev 69830)
@@ -37,7 +37,7 @@
             cls.runModule("v.random", output="a3", npoints=20)
             # Create the temporal database
             cls.runModule("t.connect", flags="d")
-            cls.runModule("t.info", flags="s")
+            cls.runModule("t.info", flags="d")
             cls.runModule("t.create", type="stvds", temporaltype="absolute",
                           output="A", title="A testvect", description="A testvect")
             cls.runModule("t.register", flags="i", type="vector", input="A",
@@ -102,7 +102,7 @@
                                 a2|testvect1|2001-02-01 00:00:00|2001-03-01 00:00:00
                                 a3|testvect1|2001-03-01 00:00:00|2001-04-01 00:00:00"""
 
-        trast_list = SimpleModule("t.vect.list", quiet=True, flags="s",
+        trast_list = SimpleModule("t.vect.list", quiet=True, flags="u",
                                   columns=[
                                       "name", "mapset", "start_time", "end_time"],
                                   input="A at testvect1")
@@ -118,7 +118,7 @@
                                 a3|testvect2|2001-05-01 00:00:00|2001-07-01 00:00:00"""
 
         trast_list = SimpleModule(
-            "t.vect.list", quiet=True, flags="s",
+            "t.vect.list", quiet=True, flags="u",
             columns=["name", "mapset", "start_time", "end_time"],
             input="A at testvect2")
         self.assertModule(trast_list)
@@ -132,7 +132,7 @@
                                 a2|testvect3|2001-04-01 00:00:00|2001-07-01 00:00:00
                                 a3|testvect3|2001-07-01 00:00:00|2001-10-01 00:00:00"""
 
-        trast_list = SimpleModule("t.vect.list", quiet=True, flags="s",
+        trast_list = SimpleModule("t.vect.list", quiet=True, flags="u",
                                   columns=[
                                       "name", "mapset", "start_time", "end_time"],
                                   input="A at testvect3")
@@ -148,7 +148,7 @@
                                 a3|testvect4|2001-09-01 00:00:00|2002-01-01 00:00:00"""
 
         trast_list = SimpleModule(
-            "t.vect.list", quiet=True, flags="s",
+            "t.vect.list", quiet=True, flags="u",
             columns=["name", "mapset", "start_time", "end_time"],
             input="A at testvect4")
         self.assertModule(trast_list)
@@ -158,7 +158,7 @@
         for a, b in zip(list_string.split("\n"), out.split("\n")):
             self.assertEqual(a.strip(), b.strip())
 
-        trast_list = SimpleModule("t.vect.list", quiet=True, flags="s",
+        trast_list = SimpleModule("t.vect.list", quiet=True, flags="u",
                                   columns=["name", "mapset", "start_time", "end_time"],
                                   input="A at testvect4", output=self.outfile)
         self.assertModule(trast_list)

Modified: grass/branches/releasebranch_7_2/temporal/t.create/t.create.py
===================================================================
--- grass/branches/releasebranch_7_2/temporal/t.create/t.create.py	2016-11-15 08:44:51 UTC (rev 69829)
+++ grass/branches/releasebranch_7_2/temporal/t.create/t.create.py	2016-11-15 13:09:04 UTC (rev 69830)
@@ -78,7 +78,7 @@
     tgis.init()
     
     tgis.open_new_stds(name, type, temporaltype, title, descr, 
-                                     semantic, None, grass.overwrite())
+                       semantic, None, grass.overwrite())
 
 if __name__ == "__main__":
     options, flags = grass.parser()

Modified: grass/branches/releasebranch_7_2/temporal/t.info/t.info.html
===================================================================
--- grass/branches/releasebranch_7_2/temporal/t.info/t.info.html	2016-11-15 08:44:51 UTC (rev 69829)
+++ grass/branches/releasebranch_7_2/temporal/t.info/t.info.html	2016-11-15 13:09:04 UTC (rev 69830)
@@ -28,7 +28,7 @@
 In order to obtain information about temporal DBMI backend, run:
 
 <div class="code"><pre>
-t.info -s
+t.info -d
  +------------------- Temporal DBMI backend information ----------------------+
  | DBMI Python interface:...... sqlite3
  | Temporal database string:... /grassdata/nc_spm_temporal_workshop/climate_2000_2012/tgis/sqlite.db

Modified: grass/branches/releasebranch_7_2/temporal/t.info/t.info.py
===================================================================
--- grass/branches/releasebranch_7_2/temporal/t.info/t.info.py	2016-11-15 08:44:51 UTC (rev 69829)
+++ grass/branches/releasebranch_7_2/temporal/t.info/t.info.py	2016-11-15 13:09:04 UTC (rev 69830)
@@ -43,7 +43,7 @@
 #%end
 
 #%flag
-#% key: s
+#% key: d
 #% description: Print information about the temporal DBMI interface and exit
 #% suppress_required: yes
 #%end
@@ -60,7 +60,7 @@
     name = options["input"]
     type_ = options["type"]
     shellstyle = flags['g']
-    system = flags['s']
+    system = flags['d']
     history = flags['h']
 
     # Make sure the temporal database exists
@@ -68,7 +68,6 @@
 
     dbif, connected = tgis.init_dbif(None)
 
-
     rows = tgis.get_tgis_metadata(dbif)
 
     if system and not shellstyle:

Modified: grass/branches/releasebranch_7_2/temporal/t.info/testsuite/test.t.info.sh
===================================================================
--- grass/branches/releasebranch_7_2/temporal/t.info/testsuite/test.t.info.sh	2016-11-15 08:44:51 UTC (rev 69829)
+++ grass/branches/releasebranch_7_2/temporal/t.info/testsuite/test.t.info.sh	2016-11-15 13:09:04 UTC (rev 69830)
@@ -2,7 +2,7 @@
 # Test the info output
 
 # We need to set a specific region in the
-# @preprocess step of this test. 
+# @preprocess step of this test.
 g.region s=0 n=80 w=0 e=120 b=0 t=50 res=10 res3=10 -p3
 
 export GRASS_OVERWRITE=1
@@ -17,8 +17,8 @@
 v.random -z output=lidar_abs_2 n=20 zmin=0 zmax=100 column=height
 
 # The first @test
-t.info -s
-t.info -sg
+t.info -d
+t.info -dg
 
 t.create type=strds temporaltype=absolute output=precip_abs1 title="A test" descr="A test"
 t.create type=strds temporaltype=absolute output=precip_abs2 title="A test" descr="A test"

Modified: grass/branches/releasebranch_7_2/temporal/t.rast.aggregate/testsuite/test_aggregation_absolute.py
===================================================================
--- grass/branches/releasebranch_7_2/temporal/t.rast.aggregate/testsuite/test_aggregation_absolute.py	2016-11-15 08:44:51 UTC (rev 69829)
+++ grass/branches/releasebranch_7_2/temporal/t.rast.aggregate/testsuite/test_aggregation_absolute.py	2016-11-15 13:09:04 UTC (rev 69830)
@@ -103,7 +103,7 @@
 
         # Check the map names are correct
         lister = SimpleModule("t.rast.list", input="B", columns="name",
-                              flags="s")
+                              flags="u")
         self.runModule(lister)
         #print lister.outputs.stdout
         maps="b_2001_01" + os.linesep + "b_2001_02" + os.linesep + \
@@ -144,7 +144,7 @@
 
         # Check the map names are correct
         lister = SimpleModule("t.rast.list", input="B", columns="name",
-                              flags="s")
+                              flags="u")
         self.runModule(lister)
         #print lister.outputs.stdout
         maps="b_11" + os.linesep + "b_12" + os.linesep
@@ -177,7 +177,7 @@
 
         # Check the map names are correct
         lister = SimpleModule("t.rast.list", input="B", columns="name",
-                              flags="s")
+                              flags="u")
         self.runModule(lister)
         #print lister.outputs.stdout
         maps="b_101" + os.linesep

Modified: grass/branches/releasebranch_7_2/temporal/t.rast.algebra/t.rast.algebra.py
===================================================================
--- grass/branches/releasebranch_7_2/temporal/t.rast.algebra/t.rast.algebra.py	2016-11-15 08:44:51 UTC (rev 69829)
+++ grass/branches/releasebranch_7_2/temporal/t.rast.algebra/t.rast.algebra.py	2016-11-15 13:09:04 UTC (rev 69830)
@@ -50,7 +50,7 @@
 
 #%flag
 #% key: s
-#% description: Activate spatial topology
+#% description: Check the spatial topology of temporally related maps and process only spatially related maps
 #%end
 
 #%flag
@@ -97,11 +97,11 @@
                                          nprocs=nprocs,
                                          register_null=register_null,
                                          dry_run=dry_run)
-    
+
     if granularity:
         if not p.setup_common_granularity(expression=expression,  lexer = tgis.TemporalRasterAlgebraLexer()):
             grass.script.fatal(_("Unable to process the expression in granularity algebra mode"))
-    
+
     pc = p.parse(expression, basename, grass.script.overwrite())
 
     if dry_run is True:

Modified: grass/branches/releasebranch_7_2/temporal/t.rast.list/t.rast.list.py
===================================================================
--- grass/branches/releasebranch_7_2/temporal/t.rast.list/t.rast.list.py	2016-11-15 08:44:51 UTC (rev 69829)
+++ grass/branches/releasebranch_7_2/temporal/t.rast.list/t.rast.list.py	2016-11-15 13:09:04 UTC (rev 69830)
@@ -80,7 +80,7 @@
 #%end
 
 #%flag
-#% key: s
+#% key: u
 #% description: Suppress printing of column names
 #% guisection: Formatting
 #%end
@@ -101,7 +101,7 @@
     separator = grass.separator(options["separator"])
     method = options["method"]
     granule = options["granule"]
-    header = flags["s"]
+    header = flags["u"]
     output = options["output"]
 
     # Make sure the temporal database exists

Modified: grass/branches/releasebranch_7_2/temporal/t.rast.mapcalc/t.rast.mapcalc.py
===================================================================
--- grass/branches/releasebranch_7_2/temporal/t.rast.mapcalc/t.rast.mapcalc.py	2016-11-15 08:44:51 UTC (rev 69829)
+++ grass/branches/releasebranch_7_2/temporal/t.rast.mapcalc/t.rast.mapcalc.py	2016-11-15 13:09:04 UTC (rev 69830)
@@ -64,11 +64,9 @@
 
 #%flag
 #% key: s
-#% description: Check spatial overlap
+#% description: Check the spatial topology of temporally related maps and process only spatially related maps
 #%end
 
-from multiprocessing import Process
-import copy
 import grass.script as grass
 import grass.temporal as tgis
 

Modified: grass/branches/releasebranch_7_2/temporal/t.rast.neighbors/t.rast.neighbors.py
===================================================================
--- grass/branches/releasebranch_7_2/temporal/t.rast.neighbors/t.rast.neighbors.py	2016-11-15 08:44:51 UTC (rev 69829)
+++ grass/branches/releasebranch_7_2/temporal/t.rast.neighbors/t.rast.neighbors.py	2016-11-15 13:09:04 UTC (rev 69830)
@@ -83,6 +83,12 @@
 #% key: n
 #% description: Register Null maps
 #%end
+
+#%flag
+#% key: r
+#% description: Ignore the current region settings and use the raster map regions
+#%end
+
 from __future__ import print_function
 
 import copy
@@ -167,7 +173,7 @@
     # Open the new space time raster dataset
     ttype, stype, title, descr = sp.get_initial_values()
     new_sp = tgis.open_new_stds(output, "strds", ttype, title,
-                                              descr, stype, dbif, overwrite)
+                                descr, stype, dbif, overwrite)
     num_maps = len(new_maps)
     # collect empty maps to remove them
     empty_maps = []

Modified: grass/branches/releasebranch_7_2/temporal/t.rast.univar/t.rast.univar.html
===================================================================
--- grass/branches/releasebranch_7_2/temporal/t.rast.univar/t.rast.univar.html	2016-11-15 08:44:51 UTC (rev 69829)
+++ grass/branches/releasebranch_7_2/temporal/t.rast.univar/t.rast.univar.html	2016-11-15 13:09:04 UTC (rev 69830)
@@ -6,7 +6,7 @@
 <p>
 By default it returns the name of the map, the start and end date of
 dataset and the following values: mean, minimum and maximum vale,
-mean_of_abs, standard deviation, variance,coeff_var, number of null
+mean_of_abs, standard deviation, variance, coeff_var, number of null
 cells, total number of cell.
 <p>
 Using the <em>e</em> flag it can calculate also extended statistics:

Modified: grass/branches/releasebranch_7_2/temporal/t.rast.univar/t.rast.univar.py
===================================================================
--- grass/branches/releasebranch_7_2/temporal/t.rast.univar/t.rast.univar.py	2016-11-15 08:44:51 UTC (rev 69829)
+++ grass/branches/releasebranch_7_2/temporal/t.rast.univar/t.rast.univar.py	2016-11-15 13:09:04 UTC (rev 69830)
@@ -49,7 +49,7 @@
 #%end
 
 #%flag
-#% key: s
+#% key: u
 #% description: Suppress printing of column names
 #% guisection: Formatting
 #%end
@@ -67,7 +67,7 @@
     output = options["output"]
     where = options["where"]
     extended = flags["e"]
-    no_header = flags["s"]
+    no_header = flags["u"]
     rast_region = bool(flags["r"])
     separator = grass.separator(options["separator"])
 

Modified: grass/branches/releasebranch_7_2/temporal/t.rast.univar/testsuite/test_univar.py
===================================================================
--- grass/branches/releasebranch_7_2/temporal/t.rast.univar/testsuite/test_univar.py	2016-11-15 08:44:51 UTC (rev 69829)
+++ grass/branches/releasebranch_7_2/temporal/t.rast.univar/testsuite/test_univar.py	2016-11-15 13:09:04 UTC (rev 69830)
@@ -25,23 +25,23 @@
         cls.runModule("r.mapcalc", expression="a_3 = 300",  overwrite=True)
         cls.runModule("r.mapcalc", expression="a_4 = 400",  overwrite=True)
 
-        cls.runModule("t.create",  type="strds",  temporaltype="absolute",  
-                                 output="A",  title="A test",  description="A test",  
+        cls.runModule("t.create",  type="strds",  temporaltype="absolute",
+                                 output="A",  title="A test",  description="A test",
                                  overwrite=True)
-        cls.runModule("t.register",  flags="i",  type="raster",  input="A",  
-                                     maps="a_1,a_2,a_3,a_4",  start="2001-01-01", 
+        cls.runModule("t.register",  flags="i",  type="raster",  input="A",
+                                     maps="a_1,a_2,a_3,a_4",  start="2001-01-01",
                                      increment="3 months",  overwrite=True)
 
     @classmethod
     def tearDownClass(cls):
         """Remove the temporary region
         """
-        cls.runModule("t.remove",  flags="rf",  type="strds",  
+        cls.runModule("t.remove",  flags="rf",  type="strds",
                                    inputs="A")
         cls.del_temp_region()
 
     def test_1(self):
-        
+
         t_rast_univar = SimpleModule("t.rast.univar", input="A",
                                                       where="start_time >= '2001-01-01'",
                                                       overwrite=True, verbose=True)
@@ -122,7 +122,7 @@
     def test_5(self):
 
         self.runModule("g.region", res=10)
-        self.assertModule("t.rast.univar", input="A", flags="rs",
+        self.assertModule("t.rast.univar", input="A", flags="ru",
                                            output="univar_output.txt",
                                            where="start_time >= '2001-03-01'",
                                            overwrite=True, verbose=True)

Modified: grass/branches/releasebranch_7_2/temporal/t.rast3d.algebra/t.rast3d.algebra.py
===================================================================
--- grass/branches/releasebranch_7_2/temporal/t.rast3d.algebra/t.rast3d.algebra.py	2016-11-15 08:44:51 UTC (rev 69829)
+++ grass/branches/releasebranch_7_2/temporal/t.rast3d.algebra/t.rast3d.algebra.py	2016-11-15 13:09:04 UTC (rev 69830)
@@ -51,7 +51,7 @@
 
 #%flag
 #% key: s
-#% description: Activate spatial topology
+#% description: Check the spatial topology of temporally related maps and process only spatially related maps
 #%end
 
 #%flag
@@ -88,11 +88,11 @@
 
     tgis.init(True)
     p = tgis.TemporalRaster3DAlgebraParser(run = True, debug=False, spatial = spatial, nprocs = nprocs, register_null = register_null)
-    
+
     if granularity:
         if not p.setup_common_granularity(expression=expression,  stdstype = 'str3ds',  lexer = tgis.TemporalRasterAlgebraLexer()):
             grass.script.fatal(_("Unable to process the expression in granularity algebra mode"))
-            
+
     p.parse(expression, basename, grass.script.overwrite())
 
 if __name__ == "__main__":

Modified: grass/branches/releasebranch_7_2/temporal/t.rast3d.mapcalc/t.rast3d.mapcalc.py
===================================================================
--- grass/branches/releasebranch_7_2/temporal/t.rast3d.mapcalc/t.rast3d.mapcalc.py	2016-11-15 08:44:51 UTC (rev 69829)
+++ grass/branches/releasebranch_7_2/temporal/t.rast3d.mapcalc/t.rast3d.mapcalc.py	2016-11-15 13:09:04 UTC (rev 69830)
@@ -68,7 +68,7 @@
 
 #%flag
 #% key: s
-#% description: Check spatial overlap
+#% description: Check the spatial topology of temporally related maps and process only spatially related maps
 #%end
 
 from multiprocessing import Process

Modified: grass/branches/releasebranch_7_2/temporal/t.sample/t.sample.py
===================================================================
--- grass/branches/releasebranch_7_2/temporal/t.sample/t.sample.py	2016-11-15 08:44:51 UTC (rev 69829)
+++ grass/branches/releasebranch_7_2/temporal/t.sample/t.sample.py	2016-11-15 13:09:04 UTC (rev 69830)
@@ -57,7 +57,7 @@
 
 #%flag
 #% key: s
-#% description: Check spatial overlap
+#% description: Check for spatial topological overlap
 #%end
 
 import grass.script as grass

Modified: grass/branches/releasebranch_7_2/temporal/t.select/t.select.py
===================================================================
--- grass/branches/releasebranch_7_2/temporal/t.select/t.select.py	2016-11-15 08:44:51 UTC (rev 69829)
+++ grass/branches/releasebranch_7_2/temporal/t.select/t.select.py	2016-11-15 13:09:04 UTC (rev 69830)
@@ -37,7 +37,7 @@
 
 #%flag
 #% key: s
-#% description: Activate spatial topology
+#% description: Check the spatial topology of temporally related maps and select only spatially related maps
 #%end
 
 #%flag

Modified: grass/branches/releasebranch_7_2/temporal/t.topology/t.topology.py
===================================================================
--- grass/branches/releasebranch_7_2/temporal/t.topology/t.topology.py	2016-11-15 08:44:51 UTC (rev 69829)
+++ grass/branches/releasebranch_7_2/temporal/t.topology/t.topology.py	2016-11-15 13:09:04 UTC (rev 69830)
@@ -34,12 +34,12 @@
 
 #%flag
 #% key: m
-#% description: Print temporal relationships and exit
+#% description: Print temporal topological relationships and exit
 #%end
 
 #%flag
 #% key: s
-#% description: Print spatio-temporal relationships and exit
+#% description: Print spatio-temporal topological relationships and exit
 #%end
 from __future__ import print_function
 

Modified: grass/branches/releasebranch_7_2/temporal/t.unregister/testsuite/test_unregister.py
===================================================================
--- grass/branches/releasebranch_7_2/temporal/t.unregister/testsuite/test_unregister.py	2016-11-15 08:44:51 UTC (rev 69829)
+++ grass/branches/releasebranch_7_2/temporal/t.unregister/testsuite/test_unregister.py	2016-11-15 13:09:04 UTC (rev 69830)
@@ -82,14 +82,14 @@
         self.assertModule("t.unregister",  input="A",  maps="a1,a2,a3")
 
         lister = SimpleModule("t.rast.list", input="A", columns="name", 
-                              flags="s")
+                              flags="u")
         self.runModule(lister)
         self.assertEqual(a456, lister.outputs.stdout)
 
 
         # Check if all maps are present in STRDS B
         lister = SimpleModule("t.rast.list", input="B", columns="name", 
-                              flags="s")
+                              flags="u")
         self.runModule(lister)
         self.assertEqual(al, lister.outputs.stdout)
 
@@ -112,7 +112,7 @@
 
         # Check that masp a1, a2 and a3 are not present in STRDS B
         lister = SimpleModule("t.rast.list", input="B", columns="name", 
-                              flags="s")
+                              flags="u")
         self.runModule(lister)
         self.assertEqual(a456, lister.outputs.stdout)
 

Modified: grass/branches/releasebranch_7_2/temporal/t.vect.algebra/t.vect.algebra.py
===================================================================
--- grass/branches/releasebranch_7_2/temporal/t.vect.algebra/t.vect.algebra.py	2016-11-15 08:44:51 UTC (rev 69829)
+++ grass/branches/releasebranch_7_2/temporal/t.vect.algebra/t.vect.algebra.py	2016-11-15 13:09:04 UTC (rev 69830)
@@ -43,7 +43,7 @@
 
 #%flag
 #% key: s
-#% description: Activate spatial topology
+#% description: Check the spatial topology of temporally related maps and process only spatially related maps
 #%end
 
 import grass.script

Modified: grass/branches/releasebranch_7_2/temporal/t.vect.extract/testsuite/test_vect_extract.py
===================================================================
--- grass/branches/releasebranch_7_2/temporal/t.vect.extract/testsuite/test_vect_extract.py	2016-11-15 08:44:51 UTC (rev 69829)
+++ grass/branches/releasebranch_7_2/temporal/t.vect.extract/testsuite/test_vect_extract.py	2016-11-15 13:09:04 UTC (rev 69830)
@@ -30,7 +30,7 @@
                           column="value", value="'random()'")
         # Create the temporal database
         cls.runModule("t.connect", flags="d")
-        cls.runModule("t.info", flags="s")
+        cls.runModule("t.info", flags="d")
         cls.runModule("t.create", type="stvds", temporaltype="absolute",
                       output="A", title="A testvect", description="A testvect",
                       overwrite=True)

Modified: grass/branches/releasebranch_7_2/temporal/t.vect.list/t.vect.list.py
===================================================================
--- grass/branches/releasebranch_7_2/temporal/t.vect.list/t.vect.list.py	2016-11-15 08:44:51 UTC (rev 69829)
+++ grass/branches/releasebranch_7_2/temporal/t.vect.list/t.vect.list.py	2016-11-15 13:09:04 UTC (rev 69830)
@@ -72,7 +72,7 @@
 #%end
 
 #%flag
-#% key: s
+#% key: u
 #% description: Suppress printing of column names
 #% guisection: Formatting
 #%end
@@ -92,7 +92,7 @@
     where = options["where"]
     separator = grass.separator(options["separator"])
     method = options["method"]
-    header = flags["s"]
+    header = flags["u"]
     output = options["output"]
 
     # Make sure the temporal database exists

Modified: grass/branches/releasebranch_7_2/temporal/t.vect.univar/t.vect.univar.py
===================================================================
--- grass/branches/releasebranch_7_2/temporal/t.vect.univar/t.vect.univar.py	2016-11-15 08:44:51 UTC (rev 69829)
+++ grass/branches/releasebranch_7_2/temporal/t.vect.univar/t.vect.univar.py	2016-11-15 13:09:04 UTC (rev 69830)
@@ -62,7 +62,7 @@
 #%end
 
 #%flag
-#% key: s
+#% key: u
 #% description: Suppress printing of column names
 #% guisection: Formatting
 #%end
@@ -83,7 +83,7 @@
     column = options["column"]
     where = options["where"]
     extended = flags["e"]
-    header = flags["s"]
+    header = flags["u"]
     separator = grass.separator(options["separator"])
 
     # Make sure the temporal database exists



More information about the grass-commit mailing list