Преглед изворни кода

t.*: consistency changes for parameters and flags

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@60608 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler пре 11 година
родитељ
комит
5c2ccef418
32 измењених фајлова са 136 додато и 122 уклоњено
  1. 2 0
      temporal/run_all_tests.sh
  2. 8 13
      temporal/t.list/t.list.py
  3. 1 1
      temporal/t.rast.accdetect/t.rast.accdetect.py
  4. 1 1
      temporal/t.rast.accumulate/t.rast.accumulate.py
  5. 1 1
      temporal/t.rast.aggregate.ds/t.rast.aggregate.ds.py
  6. 1 1
      temporal/t.rast.aggregate/t.rast.aggregate.py
  7. 1 1
      temporal/t.rast.colors/t.rast.colors.py
  8. 2 1
      temporal/t.rast.export/t.rast.export.py
  9. 1 1
      temporal/t.rast.extract/t.rast.extract.py
  10. 1 1
      temporal/t.rast.gapfill/t.rast.gapfill.py
  11. 1 1
      temporal/t.rast.import/t.rast.import.py
  12. 11 9
      temporal/t.rast.list/t.rast.list.py
  13. 1 1
      temporal/t.rast.mapcalc/t.rast.mapcalc.py
  14. 11 12
      temporal/t.rast.mapcalc2/t.rast.mapcalc2.py
  15. 1 1
      temporal/t.rast.neighbors/t.rast.neighbors.py
  16. 8 5
      temporal/t.rast.univar/t.rast.univar.py
  17. 8 7
      temporal/t.rast3d.list/t.rast3d.list.py
  18. 1 1
      temporal/t.rast3d.mapcalc/t.rast3d.mapcalc.py
  19. 10 11
      temporal/t.rast3d.mapcalc2/t.rast3d.mapcalc2.py
  20. 7 4
      temporal/t.rast3d.univar/t.rast3d.univar.py
  21. 11 6
      temporal/t.register/t.register.py
  22. 7 10
      temporal/t.sample/t.sample.py
  23. 1 1
      temporal/t.select/t.select.py
  24. 2 1
      temporal/t.shift/t.shift.py
  25. 2 1
      temporal/t.support/t.support.py
  26. 8 8
      temporal/t.vect.db.select/t.vect.db.select.py
  27. 2 1
      temporal/t.vect.export/t.vect.export.py
  28. 1 1
      temporal/t.vect.extract/t.vect.extract.py
  29. 1 1
      temporal/t.vect.import/t.vect.import.py
  30. 12 9
      temporal/t.vect.list/t.vect.list.py
  31. 4 3
      temporal/t.vect.mapcalc/t.vect.mapcalc.py
  32. 7 7
      temporal/t.vect.univar/t.vect.univar.py

+ 2 - 0
temporal/run_all_tests.sh

@@ -10,6 +10,8 @@ fi
 LOG_FILE="/tmp/run.log"
 LOG_FILE="/tmp/run.log"
 echo "Logfile\n\n" > $LOG_FILE
 echo "Logfile\n\n" > $LOG_FILE
 
 
+export GRASS_MESSAGE_FORMAT=plain
+
 # For each directory
 # For each directory
 for mydir in `ls -d t*` ; do
 for mydir in `ls -d t*` ; do
     if [ -d "${mydir}" ] ; then
     if [ -d "${mydir}" ] ; then

+ 8 - 13
temporal/t.list/t.list.py

@@ -6,7 +6,7 @@
 # AUTHOR(S):	Soeren Gebbert
 # AUTHOR(S):	Soeren Gebbert
 #
 #
 # PURPOSE:	List space time datasets and maps registered in the temporal database
 # PURPOSE:	List space time datasets and maps registered in the temporal database
-# COPYRIGHT:	(C) 2011 by the GRASS Development Team
+# COPYRIGHT:	(C) 2011-2014, Soeren Gebbert and the GRASS Development Team
 #
 #
 #		This program is free software under the GNU General Public
 #		This program is free software under the GNU General Public
 #		License (version 2). Read the file COPYING that comes with GRASS
 #		License (version 2). Read the file COPYING that comes with GRASS
@@ -45,7 +45,7 @@
 #% guisection: Formatting
 #% guisection: Formatting
 #% required: no
 #% required: no
 #% multiple: yes
 #% multiple: yes
-#% options: id, name, creator, mapset, number_of_maps, creation_time, start_time, end_time, interval, north, south, west, east, granularity
+#% options: id,name,creator,mapset,number_of_maps,creation_time,start_time,end_time,interval,north,south,west,east,granularity
 #% answer: id
 #% answer: id
 #%end
 #%end
 
 
@@ -57,7 +57,7 @@
 #% guisection: Selection
 #% guisection: Selection
 #% required: no
 #% required: no
 #% multiple: yes
 #% multiple: yes
-#% options: id, name, creator, mapset, number_of_maps, creation_time, start_time, end_time, north, south, west, east, granularity, all
+#% options: id,name,creator,mapset,number_of_maps,creation_time,start_time,end_time,north,south,west,east,granularity,all
 #% answer: id
 #% answer: id
 #%end
 #%end
 
 
@@ -65,16 +65,13 @@
 #% guisection: Selection
 #% guisection: Selection
 #%end
 #%end
 
 
-#%option
-#% key: separator
-#% type: string
-#% description: Separator character between the columns, default is tabular "\t"
+#%option G_OPT_F_SEP
+#% description: Field separator character between the output columns
 #% guisection: Formatting
 #% guisection: Formatting
-#% required: no
 #%end
 #%end
 
 
 #%flag
 #%flag
-#% key: c
+#% key: h
 #% description: Print the column names as first row
 #% description: Print the column names as first row
 #% guisection: Formatting
 #% guisection: Formatting
 #%end
 #%end
@@ -85,6 +82,7 @@ import sys
 
 
 ############################################################################
 ############################################################################
 
 
+
 def main():
 def main():
 
 
     # Get the options
     # Get the options
@@ -94,7 +92,7 @@ def main():
     order = options["order"]
     order = options["order"]
     where = options["where"]
     where = options["where"]
     separator = options["separator"]
     separator = options["separator"]
-    colhead = flags['c']
+    colhead = flags['h']
 
 
     # Make sure the temporal database exists
     # Make sure the temporal database exists
     tgis.init()
     tgis.init()
@@ -129,9 +127,6 @@ def main():
                         sys.stderr.write(_("Space time %s datasets with %s available in mapset <%s>:\n")%\
                         sys.stderr.write(_("Space time %s datasets with %s available in mapset <%s>:\n")%\
                                                  (sp.get_new_map_instance(None).get_type(),  time,  key))
                                                  (sp.get_new_map_instance(None).get_type(),  time,  key))
 
 
-                    if separator is None or separator == "":
-                        separator = "\t"
-            
                     # Print the column names if requested
                     # Print the column names if requested
                     if colhead == True and first == True:
                     if colhead == True and first == True:
                         output = ""
                         output = ""

+ 1 - 1
temporal/t.rast.accdetect/t.rast.accdetect.py

@@ -82,7 +82,7 @@
 #%option
 #%option
 #% key: basename
 #% key: basename
 #% type: string
 #% type: string
-#% label: Base name of the new generated output maps"
+#% label: Basename of the new generated output maps
 #% description: A numerical suffix separated by an underscore will be attached to create a unique identifier
 #% description: A numerical suffix separated by an underscore will be attached to create a unique identifier
 #% required: yes
 #% required: yes
 #% multiple: no
 #% multiple: no

+ 1 - 1
temporal/t.rast.accumulate/t.rast.accumulate.py

@@ -83,7 +83,7 @@
 #%option
 #%option
 #% key: basename
 #% key: basename
 #% type: string
 #% type: string
-#% label: Base name of the new generated output maps"
+#% label: Basename of the new generated output maps
 #% description: A numerical suffix separated by an underscore will be attached to create a unique identifier
 #% description: A numerical suffix separated by an underscore will be attached to create a unique identifier
 #% required: yes
 #% required: yes
 #% multiple: no
 #% multiple: no

+ 1 - 1
temporal/t.rast.aggregate.ds/t.rast.aggregate.ds.py

@@ -38,7 +38,7 @@
 #%option
 #%option
 #% key: basename
 #% key: basename
 #% type: string
 #% type: string
-#% label: Base name of the new generated output maps"
+#% label: Basename of the new generated output maps
 #% description: A numerical suffix separated by an underscore will be attached to create a unique identifier
 #% description: A numerical suffix separated by an underscore will be attached to create a unique identifier
 #% required: yes
 #% required: yes
 #% multiple: no
 #% multiple: no

+ 1 - 1
temporal/t.rast.aggregate/t.rast.aggregate.py

@@ -29,7 +29,7 @@
 #%option
 #%option
 #% key: basename
 #% key: basename
 #% type: string
 #% type: string
-#% label: Base name of the new generated output maps"
+#% label: Basename of the new generated output maps
 #% description: A numerical suffix separated by an underscore will be attached to create a unique identifier
 #% description: A numerical suffix separated by an underscore will be attached to create a unique identifier
 #% required: yes
 #% required: yes
 #% multiple: no
 #% multiple: no

+ 1 - 1
temporal/t.rast.colors/t.rast.colors.py

@@ -61,7 +61,7 @@
 
 
 #%flag
 #%flag
 #% key: w
 #% key: w
-#% description: Only write new color table if one doesn't already exist
+#% description: Only write new color table if it does not already exist
 #%end
 #%end
 
 
 #%flag
 #%flag

+ 2 - 1
temporal/t.rast.export/t.rast.export.py

@@ -47,7 +47,8 @@
 #%option
 #%option
 #% key: format
 #% key: format
 #% type: string
 #% type: string
-#% description: The export format of a single raster map. Supported are GTiff, AAIGrid via r.out.gdal and the GRASS package format of r.pack.
+#% label: The export format of a single raster map
+#% description: Supported are GTiff, AAIGrid via r.out.gdal and the GRASS package format of r.pack
 #% required: no
 #% required: no
 #% multiple: no
 #% multiple: no
 #% options: GTiff,AAIGrid,pack
 #% options: GTiff,AAIGrid,pack

+ 1 - 1
temporal/t.rast.extract/t.rast.extract.py

@@ -40,7 +40,7 @@
 #%option
 #%option
 #% key: basename
 #% key: basename
 #% type: string
 #% type: string
-#% label: Base name of the new generated output maps"
+#% label: Basename of the new generated output maps
 #% description: A numerical suffix separated by an underscore will be attached to create a unique identifier
 #% description: A numerical suffix separated by an underscore will be attached to create a unique identifier
 #% required: no
 #% required: no
 #% multiple: no
 #% multiple: no

+ 1 - 1
temporal/t.rast.gapfill/t.rast.gapfill.py

@@ -29,7 +29,7 @@
 #%option
 #%option
 #% key: basename
 #% key: basename
 #% type: string
 #% type: string
-#% label: Base name of the new generated output maps"
+#% label: Basename of the new generated output maps
 #% description: A numerical suffix separated by an underscore will be attached to create a unique identifier
 #% description: A numerical suffix separated by an underscore will be attached to create a unique identifier
 #% required: yes
 #% required: yes
 #% multiple: no
 #% multiple: no

+ 1 - 1
temporal/t.rast.import/t.rast.import.py

@@ -29,7 +29,7 @@
 #%option
 #%option
 #% key: basename
 #% key: basename
 #% type: string
 #% type: string
-#% label: Base name of the new generated output maps"
+#% label: Basename of the new generated output maps
 #% description: A numerical suffix separated by an underscore will be attached to create a unique identifier
 #% description: A numerical suffix separated by an underscore will be attached to create a unique identifier
 #% required: no
 #% required: no
 #% multiple: no
 #% multiple: no

+ 11 - 9
temporal/t.rast.list/t.rast.list.py

@@ -6,7 +6,7 @@
 # AUTHOR(S):	Soeren Gebbert
 # AUTHOR(S):	Soeren Gebbert
 #
 #
 # PURPOSE:	List registered maps of a space time raster dataset
 # PURPOSE:	List registered maps of a space time raster dataset
-# COPYRIGHT:	(C) 2011 by the GRASS Development Team
+# COPYRIGHT:	(C) 2011-2014, Soeren Gebbert and the GRASS Development Team
 #
 #
 #		This program is free software under the GNU General Public
 #		This program is free software under the GNU General Public
 #		License (version 2). Read the file COPYING that comes with GRASS
 #		License (version 2). Read the file COPYING that comes with GRASS
@@ -28,7 +28,8 @@
 #%option
 #%option
 #% key: order
 #% key: order
 #% type: string
 #% type: string
-#% description: Order the space time dataset by category
+#% description: Sort the space time dataset by category
+#% guisection: Formatting
 #% required: no
 #% required: no
 #% multiple: yes
 #% multiple: yes
 #% options: id,name,creator,mapset,temporal_type,creation_time,start_time,end_time,north,south,west,east,nsres,ewres,cols,rows,number_of_cells,min,max
 #% options: id,name,creator,mapset,temporal_type,creation_time,start_time,end_time,north,south,west,east,nsres,ewres,cols,rows,number_of_cells,min,max
@@ -38,7 +39,8 @@
 #%option
 #%option
 #% key: columns
 #% key: columns
 #% type: string
 #% type: string
-#% description: Select columns to be printed to stdout
+#% description: Columns to be printed to stdout
+#% guisection: Selection
 #% required: no
 #% required: no
 #% multiple: yes
 #% multiple: yes
 #% options: id,name,creator,mapset,temporal_type,creation_time,start_time,end_time,north,south,west,east,nsres,ewres,cols,rows,number_of_cells,min,max
 #% options: id,name,creator,mapset,temporal_type,creation_time,start_time,end_time,north,south,west,east,nsres,ewres,cols,rows,number_of_cells,min,max
@@ -46,6 +48,7 @@
 #%end
 #%end
 
 
 #%option G_OPT_T_WHERE
 #%option G_OPT_T_WHERE
+#% guisection: Selection
 #%end
 #%end
 
 
 #%option
 #%option
@@ -66,16 +69,15 @@
 #% multiple: no
 #% multiple: no
 #%end
 #%end
 
 
-#%option
-#% key: separator
-#% type: string
-#% description: Separator character between the columns, default is tabular "\t"
-#% required: no
+#%option G_OPT_F_SEP
+#% description: Field separator character between the output columns
+#% guisection: Formatting
 #%end
 #%end
 
 
 #%flag
 #%flag
 #% key: h
 #% key: h
-#% description: Print column names
+#% description: Print the column names as first row
+#% guisection: Formatting
 #%end
 #%end
 
 
 import grass.script as grass
 import grass.script as grass

+ 1 - 1
temporal/t.rast.mapcalc/t.rast.mapcalc.py

@@ -42,7 +42,7 @@
 #%option
 #%option
 #% key: basename
 #% key: basename
 #% type: string
 #% type: string
-#% label: Base name of the new generated output maps"
+#% label: Basename of the new generated output maps
 #% description: A numerical suffix separated by an underscore will be attached to create a unique identifier
 #% description: A numerical suffix separated by an underscore will be attached to create a unique identifier
 #% required: yes
 #% required: yes
 #% multiple: no
 #% multiple: no

+ 11 - 12
temporal/t.rast.mapcalc2/t.rast.mapcalc2.py

@@ -2,7 +2,7 @@
 # -*- coding: utf-8 -*-
 # -*- coding: utf-8 -*-
 ############################################################################
 ############################################################################
 #
 #
-# MODULE:       t.rast.mapcal2c
+# MODULE:       t.rast.mapcalc2
 # AUTHOR(S):    Thomas Leppelt, Soeren Gebbert
 # AUTHOR(S):    Thomas Leppelt, Soeren Gebbert
 #
 #
 # PURPOSE:      Provide temporal raster algebra to perform spatial an temporal operations
 # PURPOSE:      Provide temporal raster algebra to perform spatial an temporal operations
@@ -10,32 +10,31 @@
 #               datasets.
 #               datasets.
 # COPYRIGHT:    (C) 2014 by the GRASS Development Team
 # COPYRIGHT:    (C) 2014 by the GRASS Development Team
 #
 #
-#               This program is free software under the GNU General Public
-#               License (version 2). Read the file COPYING that comes with GRASS
-#               for details.
+#		This program is free software under the GNU General Public
+#		License (version 2). Read the file COPYING that comes with GRASS
+#		for details.
 #
 #
 #############################################################################
 #############################################################################
 
 
 #%module
 #%module
-#% description: Apply temporal and spatial oeprations on space time raster datasets using temporal raster algebra.
+#% description: Apply temporal and spatial operations on space time raster datasets using temporal raster algebra.
 #% keywords: temporal
 #% keywords: temporal
-#% keywords: mapalgebra
+#% keywords: algebra
 #%end
 #%end
 
 
 #%option
 #%option
 #% key: expression
 #% key: expression
 #% type: string
 #% type: string
-#% description: The mapcalc expression for temporal and spatial analysis of space time raster datasets.
-#% key_desc: expression
+#% description: r.mapcalc expression for temporal and spatial analysis of space time raster datasets
 #% required : yes
 #% required : yes
 #%end
 #%end
 
 
 #%option
 #%option
 #% key: basename
 #% key: basename
 #% type: string
 #% type: string
-#% description: The basename of raster maps that are stored within the result space time raster dataset.
-#% key_desc: basename
-#% required : yes
+#% label: Basename of the new generated output maps
+#% description: A numerical suffix separated by an underscore will be attached to create a unique identifier
+#% required: yes
 #%end
 #%end
 
 
 #%option
 #%option
@@ -49,7 +48,7 @@
 
 
 #%flag
 #%flag
 #% key: s
 #% key: s
-#% description: Activate spatial topology.
+#% description: Activate spatial topology
 #%end
 #%end
 
 
 #%flag
 #%flag

+ 1 - 1
temporal/t.rast.neighbors/t.rast.neighbors.py

@@ -52,7 +52,7 @@
 #%option
 #%option
 #% key: basename
 #% key: basename
 #% type: string
 #% type: string
-#% label: Base name of the new generated output maps"
+#% label: Basename of the new generated output maps
 #% description: A numerical suffix separated by an underscore will be attached to create a unique identifier
 #% description: A numerical suffix separated by an underscore will be attached to create a unique identifier
 #% required: yes
 #% required: yes
 #% multiple: no
 #% multiple: no

+ 8 - 5
temporal/t.rast.univar/t.rast.univar.py

@@ -6,7 +6,7 @@
 # AUTHOR(S):	Soeren Gebbert
 # AUTHOR(S):	Soeren Gebbert
 #
 #
 # PURPOSE:	Calculates univariate statistics from the non-null cells for each registered raster map of a space time raster dataset
 # PURPOSE:	Calculates univariate statistics from the non-null cells for each registered raster map of a space time raster dataset
-# COPYRIGHT:	(C) 2011 by the GRASS Development Team
+# COPYRIGHT:	(C) 2011-2014, Soeren Gebbert and the GRASS Development Team
 #
 #
 #		This program is free software under the GNU General Public
 #		This program is free software under the GNU General Public
 #		License (version 2). Read the file COPYING that comes with GRASS
 #		License (version 2). Read the file COPYING that comes with GRASS
@@ -25,10 +25,12 @@
 #%end
 #%end
 
 
 #%option G_OPT_T_WHERE
 #%option G_OPT_T_WHERE
+#% guisection: Selection
 #%end
 #%end
 
 
 #%option G_OPT_F_SEP
 #%option G_OPT_F_SEP
 #% description: Field separator character between the output columns
 #% description: Field separator character between the output columns
+#% guisection: Formatting
 #%end
 #%end
 
 
 #%flag
 #%flag
@@ -38,7 +40,8 @@
 
 
 #%flag
 #%flag
 #% key: h
 #% key: h
-#% description: Print column names
+#% description: Print the column names as first row
+#% guisection: Formatting
 #%end
 #%end
 
 
 import grass.script as grass
 import grass.script as grass
@@ -53,14 +56,14 @@ def main():
     input = options["input"]
     input = options["input"]
     where = options["where"]
     where = options["where"]
     extended = flags["e"]
     extended = flags["e"]
-    header = flags["h"]
-    fs = options["separator"]
+    colhead = flags["h"]
+    separator = options["separator"]
 
 
     # Make sure the temporal database exists
     # Make sure the temporal database exists
     tgis.init()
     tgis.init()
 
 
     tgis.print_gridded_dataset_univar_statistics(
     tgis.print_gridded_dataset_univar_statistics(
-        "strds", input, where, extended, header, fs)
+        "strds", input, where, extended, colhead, separator)
 
 
 if __name__ == "__main__":
 if __name__ == "__main__":
     options, flags = grass.parser()
     options, flags = grass.parser()

+ 8 - 7
temporal/t.rast3d.list/t.rast3d.list.py

@@ -6,7 +6,7 @@
 # AUTHOR(S):	Soeren Gebbert
 # AUTHOR(S):	Soeren Gebbert
 #
 #
 # PURPOSE:	List registered maps of a space time raster3d dataset
 # PURPOSE:	List registered maps of a space time raster3d dataset
-# COPYRIGHT:	(C) 2011 by the GRASS Development Team
+# COPYRIGHT:	(C) 2011-2014, Soeren Gebbert and the GRASS Development Team
 #
 #
 #		This program is free software under the GNU General Public
 #		This program is free software under the GNU General Public
 #		License (version 2). Read the file COPYING that comes with GRASS
 #		License (version 2). Read the file COPYING that comes with GRASS
@@ -39,6 +39,7 @@
 #% key: columns
 #% key: columns
 #% type: string
 #% type: string
 #% description: Columns to be printed to stdout
 #% description: Columns to be printed to stdout
+#% guisection: Selection
 #% required: no
 #% required: no
 #% multiple: yes
 #% multiple: yes
 #% options: id,name,creator,mapset,temporal_type,creation_time,start_time,end_time,north,south,west,east,nsres,tbres,ewres,cols,rows,depths,number_of_cells,min,max
 #% options: id,name,creator,mapset,temporal_type,creation_time,start_time,end_time,north,south,west,east,nsres,tbres,ewres,cols,rows,depths,number_of_cells,min,max
@@ -46,6 +47,7 @@
 #%end
 #%end
 
 
 #%option G_OPT_T_WHERE
 #%option G_OPT_T_WHERE
+#% guisection: Selection
 #%end
 #%end
 
 
 #%option
 #%option
@@ -58,16 +60,15 @@
 #% answer: cols
 #% answer: cols
 #%end
 #%end
 
 
-#%option
-#% key: separator
-#% type: string
-#% description: Separator character between the output columns, default is tabular "\t"
-#% required: no
+#%option G_OPT_F_SEP
+#% description: Field separator character between the output columns
+#% guisection: Formatting
 #%end
 #%end
 
 
 #%flag
 #%flag
 #% key: h
 #% key: h
-#% description: Print column names
+#% description: Print the column names as first row
+#% guisection: Formatting
 #%end
 #%end
 
 
 import grass.script as grass
 import grass.script as grass

+ 1 - 1
temporal/t.rast3d.mapcalc/t.rast3d.mapcalc.py

@@ -42,7 +42,7 @@
 #%option
 #%option
 #% key: basename
 #% key: basename
 #% type: string
 #% type: string
-#% label: Base name of the new generated output maps"
+#% label: Basename of the new generated output maps
 #% description: A numerical suffix separated by an underscore will be attached to create a unique identifier
 #% description: A numerical suffix separated by an underscore will be attached to create a unique identifier
 #% required: yes
 #% required: yes
 #% multiple: no
 #% multiple: no

+ 10 - 11
temporal/t.rast3d.mapcalc2/t.rast3d.mapcalc2.py

@@ -10,32 +10,31 @@
 #               datasets.
 #               datasets.
 # COPYRIGHT:    (C) 2014 by the GRASS Development Team
 # COPYRIGHT:    (C) 2014 by the GRASS Development Team
 #
 #
-#               This program is free software under the GNU General Public
-#               License (version 2). Read the file COPYING that comes with GRASS
-#               for details.
+#		This program is free software under the GNU General Public
+#		License (version 2). Read the file COPYING that comes with GRASS
+#		for details.
 #
 #
 #############################################################################
 #############################################################################
 
 
 #%module
 #%module
-#% description: Apply temporal and spatial oeprations on space time 3D raster datasets using temporal raster algebra.
+#% description: Apply temporal and spatial operations on space time 3D raster datasets using temporal raster algebra.
 #% keywords: temporal
 #% keywords: temporal
-#% keywords: mapalgebra
+#% keywords: algebra
 #%end
 #%end
 
 
 #%option
 #%option
 #% key: expression
 #% key: expression
 #% type: string
 #% type: string
-#% description: The mapcalc expression for temporal and spatial analysis of space time 3D raster datasets.
-#% key_desc: expression
+#% description: r3.mapcalc expression for temporal and spatial analysis of space time 3D raster datasets
 #% required : yes
 #% required : yes
 #%end
 #%end
 
 
 #%option
 #%option
 #% key: basename
 #% key: basename
 #% type: string
 #% type: string
-#% description: The basename of raster maps that are stored within the result space time 3D raster dataset.
-#% key_desc: basename
-#% required : yes
+#% label: Basename of the new generated output maps
+#% description: A numerical suffix separated by an underscore will be attached to create a unique identifier
+#% required: yes
 #%end
 #%end
 
 
 #%option
 #%option
@@ -49,7 +48,7 @@
 
 
 #%flag
 #%flag
 #% key: s
 #% key: s
-#% description: Activate spatial topology.
+#% description: Activate spatial topology
 #%end
 #%end
 
 
 #%flag
 #%flag

+ 7 - 4
temporal/t.rast3d.univar/t.rast3d.univar.py

@@ -6,7 +6,7 @@
 # AUTHOR(S):	Soeren Gebbert
 # AUTHOR(S):	Soeren Gebbert
 #
 #
 # PURPOSE:	Calculates univariate statistics from the non-null cells for each registered raster3d map of a space time raster3d dataset
 # PURPOSE:	Calculates univariate statistics from the non-null cells for each registered raster3d map of a space time raster3d dataset
-# COPYRIGHT:	(C) 2011 by the GRASS Development Team
+# COPYRIGHT:	(C) 2011-2014, Soeren Gebbert and the GRASS Development Team
 #
 #
 #		This program is free software under the GNU General Public
 #		This program is free software under the GNU General Public
 #		License (version 2). Read the file COPYING that comes with GRASS
 #		License (version 2). Read the file COPYING that comes with GRASS
@@ -25,10 +25,12 @@
 #%end
 #%end
 
 
 #%option G_OPT_T_WHERE
 #%option G_OPT_T_WHERE
+#% guisection: Selection
 #%end
 #%end
 
 
 #%option G_OPT_F_SEP
 #%option G_OPT_F_SEP
 #% description: Field separator character between the output columns
 #% description: Field separator character between the output columns
+#% guisection: Formatting
 #%end
 #%end
 
 
 #%flag
 #%flag
@@ -38,7 +40,8 @@
 
 
 #%flag
 #%flag
 #% key: h
 #% key: h
-#% description: Print column names
+#% description: Print the column names as first row
+#% guisection: Formatting
 #%end
 #%end
 
 
 import grass.script as grass
 import grass.script as grass
@@ -54,13 +57,13 @@ def main():
     where = options["where"]
     where = options["where"]
     extended = flags["e"]
     extended = flags["e"]
     header = flags["h"]
     header = flags["h"]
-    fs = options["separator"]
+    separator = options["separator"]
 
 
     # Make sure the temporal database exists
     # Make sure the temporal database exists
     tgis.init()
     tgis.init()
 
 
     tgis.print_gridded_dataset_univar_statistics(
     tgis.print_gridded_dataset_univar_statistics(
-        "str3ds", input, where, extended, header, fs)
+        "str3ds", input, where, extended, header, separator)
 
 
 if __name__ == "__main__":
 if __name__ == "__main__":
     options, flags = grass.parser()
     options, flags = grass.parser()

+ 11 - 6
temporal/t.register/t.register.py

@@ -6,7 +6,7 @@
 # AUTHOR(S):	Soeren Gebbert
 # AUTHOR(S):	Soeren Gebbert
 #
 #
 # PURPOSE:	Register raster, vector and raster3d maps in a space time datasets
 # PURPOSE:	Register raster, vector and raster3d maps in a space time datasets
-# COPYRIGHT:	(C) 2011 by the GRASS Development Team
+# COPYRIGHT:	(C) 2011-2014, Soeren Gebbert and the GRASS Development Team
 #
 #
 #		This program is free software under the GNU General Public
 #		This program is free software under the GNU General Public
 #		License (version 2). Read the file COPYING that comes with GRASS
 #		License (version 2). Read the file COPYING that comes with GRASS
@@ -40,14 +40,16 @@
 #%option G_OPT_F_INPUT
 #%option G_OPT_F_INPUT
 #% key: file
 #% key: file
 #% required: no
 #% required: no
-#% description: Input file with map names, one per line. Additionally the start time and the end time can be specified per line
+#% label: Input file with map names, one per line
+#% description: Additionally the start time and the end time can be specified per line
 #% guisection: Input
 #% guisection: Input
 #%end
 #%end
 
 
 #%option
 #%option
 #% key: start
 #% key: start
 #% type: string
 #% type: string
-#% description: Valid start date and time of the first map. Format absolute time: "yyyy-mm-dd HH:MM:SS +HHMM", relative time is of type integer).
+#% label: Valid start date and time of the first map
+#% description: Format absolute time: "yyyy-mm-dd HH:MM:SS +HHMM", relative time is of type integer).
 #% required: no
 #% required: no
 #% multiple: no
 #% multiple: no
 #% guisection: Time & Date
 #% guisection: Time & Date
@@ -56,7 +58,8 @@
 #%option
 #%option
 #% key: end
 #% key: end
 #% type: string
 #% type: string
-#% description: Valid end date and time of all map. Format absolute time: "yyyy-mm-dd HH:MM:SS +HHMM", relative time is of type integer).
+#% label: Valid end date and time of all map
+#% description: Format absolute time: "yyyy-mm-dd HH:MM:SS +HHMM", relative time is of type integer).
 #% required: no
 #% required: no
 #% multiple: no
 #% multiple: no
 #% guisection: Time & Date
 #% guisection: Time & Date
@@ -65,6 +68,7 @@
 #%option
 #%option
 #% key: unit
 #% key: unit
 #% type: string
 #% type: string
+#% label: Time stamp unit
 #% description: Unit must be set in case of relative time stamps
 #% description: Unit must be set in case of relative time stamps
 #% required: no
 #% required: no
 #% multiple: no
 #% multiple: no
@@ -75,6 +79,7 @@
 #%option
 #%option
 #% key: increment
 #% key: increment
 #% type: string
 #% type: string
+#% label: Time increment
 #% description: Time increment between maps for valid time interval creation (format absolute: NNN seconds, minutes, hours, days, weeks, months, years; format relative is integer: 5)
 #% description: Time increment between maps for valid time interval creation (format absolute: NNN seconds, minutes, hours, days, weeks, months, years; format relative is integer: 5)
 #% required: no
 #% required: no
 #% multiple: no
 #% multiple: no
@@ -105,7 +110,7 @@ def main():
     maps = options["maps"]
     maps = options["maps"]
     type = options["type"]
     type = options["type"]
     file = options["file"]
     file = options["file"]
-    fs = options["separator"]
+    separator = options["separator"]
     start = options["start"]
     start = options["start"]
     end = options["end"]
     end = options["end"]
     unit = options["unit"]
     unit = options["unit"]
@@ -117,7 +122,7 @@ def main():
     # Register maps
     # Register maps
     tgis.register_maps_in_space_time_dataset(
     tgis.register_maps_in_space_time_dataset(
         type=type, name=name, maps=maps, file=file, start=start, end=end,
         type=type, name=name, maps=maps, file=file, start=start, end=end,
-        unit=unit, increment=increment, dbif=None, interval=interval, fs=fs)
+        unit=unit, increment=increment, dbif=None, interval=interval, fs=separator)
 
 
 
 
 ###############################################################################
 ###############################################################################

+ 7 - 10
temporal/t.sample/t.sample.py

@@ -6,7 +6,7 @@
 # AUTHOR(S):	Soeren Gebbert
 # AUTHOR(S):	Soeren Gebbert
 #
 #
 # PURPOSE:	Sample the input space time dataset(s) with a sample space time dataset and print the result to stdout
 # PURPOSE:	Sample the input space time dataset(s) with a sample space time dataset and print the result to stdout
-# COPYRIGHT:	(C) 2011 by the GRASS Development Team
+# COPYRIGHT:	(C) 2011-2014, Soeren Gebbert and the GRASS Development Team
 #
 #
 #		This program is free software under the GNU General Public
 #		This program is free software under the GNU General Public
 #		License (version 2). Read the file COPYING that comes with GRASS
 #		License (version 2). Read the file COPYING that comes with GRASS
@@ -44,16 +44,14 @@
 #% answer: during,overlap,contain,equal
 #% answer: during,overlap,contain,equal
 #%end
 #%end
 
 
-#%option
-#% key: separator
-#% type: string
-#% description: Separator character between the output columns, default is tabular " | ". Do not use "," as this char is reserved to list several map ids in a sample granule
-#% required: no
+#%option G_OPT_F_SEP
+#% description: Field separator between output columns, default is tabular " | "
+#% label: Do not use "," as this char is reserved to list several map ids in a sample granule
 #%end
 #%end
 
 
 #%flag
 #%flag
-#% key: c
-#% description: Print column names
+#% key: h
+#% description: Print the column names as first row
 #%end
 #%end
 
 
 #%flag
 #%flag
@@ -61,7 +59,6 @@
 #% description: Check spatial overlap to perform spatio-temporal sampling
 #% description: Check spatial overlap to perform spatio-temporal sampling
 #%end
 #%end
 
 
-
 import grass.script as grass
 import grass.script as grass
 import grass.temporal as tgis
 import grass.temporal as tgis
 
 
@@ -77,7 +74,7 @@ def main():
     intype = options["intype"]
     intype = options["intype"]
     separator = options["separator"]
     separator = options["separator"]
     method = options["method"]
     method = options["method"]
-    header = flags["c"]
+    header = flags["h"]
     spatial = flags["s"]
     spatial = flags["s"]
 
 
     # Make sure the temporal database exists
     # Make sure the temporal database exists

+ 1 - 1
temporal/t.select/t.select.py

@@ -36,7 +36,7 @@
 
 
 #%flag
 #%flag
 #% key: s
 #% key: s
-#% description: Activate spatial topology.
+#% description: Activate spatial topology
 #%end
 #%end
 
 
 
 

+ 2 - 1
temporal/t.shift/t.shift.py

@@ -38,7 +38,8 @@
 #%option
 #%option
 #% key: granularity
 #% key: granularity
 #% type: string
 #% type: string
-#% description: Shift granularity, format absolute time "x years, x months, x weeks, x days, x hours, x minutes, x seconds" or an integer value for relative time
+#% label: Shift granularity
+#% description: Format absolute time: "x years, x months, x weeks, x days, x hours, x minutes, x seconds", relative time is of type integer
 #% required: yes
 #% required: yes
 #% multiple: no
 #% multiple: no
 #%end
 #%end

+ 2 - 1
temporal/t.support/t.support.py

@@ -56,7 +56,8 @@
 
 
 #%flag
 #%flag
 #% key: m
 #% key: m
-#% description: Update the metadata information and spatial extent of registered maps from the grass spatial database. Check for removed maps and delete them from the temporal database and all effected space time datasets.
+#% label: Update the metadata information and spatial extent of registered maps from the GRASS spatial database
+#% description: Check for removed maps and delete them from the temporal database and all effected space time datasets
 #%end
 #%end
 
 
 #%flag
 #%flag

+ 8 - 8
temporal/t.vect.db.select/t.vect.db.select.py

@@ -6,7 +6,7 @@
 # AUTHOR(S):    Soeren Gebbert
 # AUTHOR(S):    Soeren Gebbert
 #
 #
 # PURPOSE:      Prints attributes of vector maps registered in a space time vector dataset.
 # PURPOSE:      Prints attributes of vector maps registered in a space time vector dataset.
-# COPYRIGHT:    (C) 2011 by the GRASS Development Team
+# COPYRIGHT:	(C) 2011-2014, Soeren Gebbert and the GRASS Development Team
 #
 #
 #               This program is free software under the GNU General Public
 #               This program is free software under the GNU General Public
 #               License (version 2). Read the file COPYING that comes with GRASS
 #               License (version 2). Read the file COPYING that comes with GRASS
@@ -30,7 +30,7 @@
 #%end
 #%end
 
 
 #%option G_OPT_F_SEP
 #%option G_OPT_F_SEP
-#% description: Separator character between the output columns
+#% description: Field separator character between the output columns
 #%end
 #%end
 
 
 #%option G_OPT_V_FIELD
 #%option G_OPT_V_FIELD
@@ -57,7 +57,7 @@ def main():
     columns = options["columns"]
     columns = options["columns"]
     tempwhere = options["t_where"]
     tempwhere = options["t_where"]
     layer = options["layer"]
     layer = options["layer"]
-    fs = options["separator"]
+    separator = options["separator"]
 
 
     if where == "" or where == " " or where == "\n":
     if where == "" or where == " " or where == "\n":
         where = None
         where = None
@@ -84,7 +84,7 @@ def main():
 
 
             select = grass.read_command("v.db.select", map=vector_name,
             select = grass.read_command("v.db.select", map=vector_name,
                                         layer=layer, columns=columns,
                                         layer=layer, columns=columns,
-                                        separator="%s" % (fs), where=where)
+                                        separator="%s" % (separator), where=where)
 
 
             if not select:
             if not select:
                 grass.fatal(_("Unable to run v.db.select for vector map <%s> "
                 grass.fatal(_("Unable to run v.db.select for vector map <%s> "
@@ -97,17 +97,17 @@ def main():
                     # print the column names in case they change
                     # print the column names in case they change
                     if count == 0:
                     if count == 0:
                         col_names_new = "start_time%send_time%s%s" % (
                         col_names_new = "start_time%send_time%s%s" % (
-                            fs, fs, entry)
+                            separator, separator, entry)
                         if col_names != col_names_new:
                         if col_names != col_names_new:
                             col_names = col_names_new
                             col_names = col_names_new
                             print col_names
                             print col_names
                     else:
                     else:
                         if row["end_time"]:
                         if row["end_time"]:
-                            print "%s%s%s%s%s" % (row["start_time"], fs,
-                                                  row["end_time"], fs, entry)
+                            print "%s%s%s%s%s" % (row["start_time"], separator,
+                                                  row["end_time"], separator, entry)
                         else:
                         else:
                             print "%s%s%s%s" % (row["start_time"],
                             print "%s%s%s%s" % (row["start_time"],
-                                                fs, fs, entry)
+                                                separator, separator, entry)
                     count += 1
                     count += 1
 
 
 if __name__ == "__main__":
 if __name__ == "__main__":

+ 2 - 1
temporal/t.vect.export/t.vect.export.py

@@ -47,7 +47,8 @@
 #%option
 #%option
 #% key: format
 #% key: format
 #% type: string
 #% type: string
-#% description: The export format of a single raster map. Supported are GML via v.out.ogr and the GRASS package format of v.pack.
+#% label: The export format of a single raster map
+#% description: Supported are GML via v.out.ogr and the GRASS package format of v.pack
 #% required: no
 #% required: no
 #% multiple: no
 #% multiple: no
 #% options: GML,pack
 #% options: GML,pack

+ 1 - 1
temporal/t.vect.extract/t.vect.extract.py

@@ -42,7 +42,7 @@
 #%option
 #%option
 #% key: basename
 #% key: basename
 #% type: string
 #% type: string
-#% label: Base name of the new generated output maps"
+#% label: Basename of the new generated output maps
 #% description: A numerical suffix separated by an underscore will be attached to create a unique identifier
 #% description: A numerical suffix separated by an underscore will be attached to create a unique identifier
 #% required: no
 #% required: no
 #% multiple: no
 #% multiple: no

+ 1 - 1
temporal/t.vect.import/t.vect.import.py

@@ -50,7 +50,7 @@
 #%option
 #%option
 #% key: location
 #% key: location
 #% type: string
 #% type: string
-#% description: Create a new location and import the data into it. Please do not run this module in parallel or interrupt it when a new location should be created.
+#% description: Create a new location and import the data into it. Do not run this module in parallel or interrupt it when a new location should be created
 #% required: no
 #% required: no
 #% multiple: no
 #% multiple: no
 #%end
 #%end

+ 12 - 9
temporal/t.vect.list/t.vect.list.py

@@ -6,7 +6,7 @@
 # AUTHOR(S):	Soeren Gebbert
 # AUTHOR(S):	Soeren Gebbert
 #
 #
 # PURPOSE:	List registered maps of a space time vector dataset
 # PURPOSE:	List registered maps of a space time vector dataset
-# COPYRIGHT:	(C) 2011 by the GRASS Development Team
+# COPYRIGHT:	(C) 2011-2014, Soeren Gebbert and the GRASS Development Team
 #
 #
 #		This program is free software under the GNU General Public
 #		This program is free software under the GNU General Public
 #		License (version 2). Read the file COPYING that comes with GRASS
 #		License (version 2). Read the file COPYING that comes with GRASS
@@ -18,6 +18,7 @@
 #% description: Lists registered maps of a space time vector dataset.
 #% description: Lists registered maps of a space time vector dataset.
 #% keywords: temporal
 #% keywords: temporal
 #% keywords: map management
 #% keywords: map management
+#% keywords: vector
 #% keywords: list
 #% keywords: list
 #%end
 #%end
 
 
@@ -27,7 +28,8 @@
 #%option
 #%option
 #% key: order
 #% key: order
 #% type: string
 #% type: string
-#% description: Order the space time dataset by category
+#% description: Sort the space time dataset by category
+#% guisection: Formatting
 #% required: no
 #% required: no
 #% multiple: yes
 #% multiple: yes
 #% options: id,name,layer,creator,mapset,temporal_type,creation_time,start_time,end_time,north,south,west,east,points,lines,boundaries,centroids,faces,kernels,primitives,nodes,areas,islands,holes,volumes
 #% options: id,name,layer,creator,mapset,temporal_type,creation_time,start_time,end_time,north,south,west,east,points,lines,boundaries,centroids,faces,kernels,primitives,nodes,areas,islands,holes,volumes
@@ -37,7 +39,8 @@
 #%option
 #%option
 #% key: columns
 #% key: columns
 #% type: string
 #% type: string
-#% description: Select columns to be printed to stdout
+#% description: Columns to be printed to stdout
+#% guisection: Selection
 #% required: no
 #% required: no
 #% multiple: yes
 #% multiple: yes
 #% options: id,name,layer,creator,mapset,temporal_type,creation_time,start_time,end_time,north,south,west,east,points,lines,boundaries,centroids,faces,kernels,primitives,nodes,areas,islands,holes,volumes
 #% options: id,name,layer,creator,mapset,temporal_type,creation_time,start_time,end_time,north,south,west,east,points,lines,boundaries,centroids,faces,kernels,primitives,nodes,areas,islands,holes,volumes
@@ -45,6 +48,7 @@
 #%end
 #%end
 
 
 #%option G_OPT_T_WHERE
 #%option G_OPT_T_WHERE
+#% guisection: Selection
 #%end
 #%end
 
 
 #%option
 #%option
@@ -57,16 +61,15 @@
 #% answer: cols
 #% answer: cols
 #%end
 #%end
 
 
-#%option
-#% key: separator
-#% type: string
-#% description: Separator character between the columns, default is tabular "\t"
-#% required: no
+#%option G_OPT_F_SEP
+#% description: Field separator character between the output columns
+#% guisection: Formatting
 #%end
 #%end
 
 
 #%flag
 #%flag
 #% key: h
 #% key: h
-#% description: Print column names
+#% description: Print the column names as first row
+#% guisection: Formatting
 #%end
 #%end
 
 
 import grass.script as grass
 import grass.script as grass

+ 4 - 3
temporal/t.vect.mapcalc/t.vect.mapcalc.py

@@ -25,7 +25,7 @@
 #%option
 #%option
 #% key: expression
 #% key: expression
 #% type: string
 #% type: string
-#% description: The mapcalc expression for temporal and spatial analysis of space time vector datasets.
+#% description: Spatio-temporal mapcalc expression
 #% key_desc: expression
 #% key_desc: expression
 #% required : yes
 #% required : yes
 #%end
 #%end
@@ -33,14 +33,15 @@
 #%option
 #%option
 #% key: basename
 #% key: basename
 #% type: string
 #% type: string
-#% description: The basename of vector maps that are stored within the result space time vector dataset.
+#% label: Basename of the new generated output maps
+#% description: A numerical suffix separated by an underscore will be attached to create a unique identifier
 #% key_desc: basename
 #% key_desc: basename
 #% required : yes
 #% required : yes
 #%end
 #%end
 
 
 #%flag
 #%flag
 #% key: s
 #% key: s
-#% description: Activate spatial topology.
+#% description: Activate spatial topology
 #%end
 #%end
 
 
 import grass.script
 import grass.script

+ 7 - 7
temporal/t.vect.univar/t.vect.univar.py

@@ -32,10 +32,12 @@
 #%end
 #%end
 
 
 #%option G_OPT_T_WHERE
 #%option G_OPT_T_WHERE
+#% guisection: Selection
 #% key: twhere
 #% key: twhere
 #%end
 #%end
 
 
 #%option G_OPT_DB_WHERE
 #%option G_OPT_DB_WHERE
+#% guisection: Selection
 #%end
 #%end
 
 
 #%option G_OPT_V_TYPE
 #%option G_OPT_V_TYPE
@@ -44,12 +46,9 @@
 #% answer: point
 #% answer: point
 #%end
 #%end
 
 
-#%option
-#% key: separator
-#% type: string
-#% description: Separator character between the output columns
-#% required: no
-#% answer: |
+#%option G_OPT_F_SEP
+#% description: Field separator character between the output columns
+#% guisection: Formatting
 #%end
 #%end
 
 
 #%flag
 #%flag
@@ -59,7 +58,8 @@
 
 
 #%flag
 #%flag
 #% key: h
 #% key: h
-#% description: Print column names
+#% description: Print the column names as first row
+#% guisection: Formatting
 #%end
 #%end
 
 
 import grass.script as grass
 import grass.script as grass