소스 검색

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"
 echo "Logfile\n\n" > $LOG_FILE
 
+export GRASS_MESSAGE_FORMAT=plain
+
 # For each directory
 for mydir in `ls -d t*` ; do
     if [ -d "${mydir}" ] ; then

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

@@ -6,7 +6,7 @@
 # AUTHOR(S):	Soeren Gebbert
 #
 # 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
 #		License (version 2). Read the file COPYING that comes with GRASS
@@ -45,7 +45,7 @@
 #% guisection: Formatting
 #% required: no
 #% 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
 #%end
 
@@ -57,7 +57,7 @@
 #% guisection: Selection
 #% required: no
 #% 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
 #%end
 
@@ -65,16 +65,13 @@
 #% guisection: Selection
 #%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
-#% required: no
 #%end
 
 #%flag
-#% key: c
+#% key: h
 #% description: Print the column names as first row
 #% guisection: Formatting
 #%end
@@ -85,6 +82,7 @@ import sys
 
 ############################################################################
 
+
 def main():
 
     # Get the options
@@ -94,7 +92,7 @@ def main():
     order = options["order"]
     where = options["where"]
     separator = options["separator"]
-    colhead = flags['c']
+    colhead = flags['h']
 
     # Make sure the temporal database exists
     tgis.init()
@@ -129,9 +127,6 @@ def main():
                         sys.stderr.write(_("Space time %s datasets with %s available in mapset <%s>:\n")%\
                                                  (sp.get_new_map_instance(None).get_type(),  time,  key))
 
-                    if separator is None or separator == "":
-                        separator = "\t"
-            
                     # Print the column names if requested
                     if colhead == True and first == True:
                         output = ""

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

@@ -82,7 +82,7 @@
 #%option
 #% key: basename
 #% 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
 #% required: yes
 #% multiple: no

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

@@ -83,7 +83,7 @@
 #%option
 #% key: basename
 #% 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
 #% required: yes
 #% multiple: no

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

@@ -38,7 +38,7 @@
 #%option
 #% key: basename
 #% 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
 #% required: yes
 #% multiple: no

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

@@ -29,7 +29,7 @@
 #%option
 #% key: basename
 #% 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
 #% required: yes
 #% multiple: no

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

@@ -61,7 +61,7 @@
 
 #%flag
 #% 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
 
 #%flag

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

@@ -47,7 +47,8 @@
 #%option
 #% key: format
 #% 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
 #% multiple: no
 #% options: GTiff,AAIGrid,pack

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

@@ -40,7 +40,7 @@
 #%option
 #% key: basename
 #% 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
 #% required: no
 #% multiple: no

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

@@ -29,7 +29,7 @@
 #%option
 #% key: basename
 #% 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
 #% required: yes
 #% multiple: no

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

@@ -29,7 +29,7 @@
 #%option
 #% key: basename
 #% 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
 #% required: no
 #% multiple: no

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

@@ -6,7 +6,7 @@
 # AUTHOR(S):	Soeren Gebbert
 #
 # 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
 #		License (version 2). Read the file COPYING that comes with GRASS
@@ -28,7 +28,8 @@
 #%option
 #% key: order
 #% type: string
-#% description: Order the space time dataset by category
+#% description: Sort the space time dataset by category
+#% guisection: Formatting
 #% required: no
 #% 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
@@ -38,7 +39,8 @@
 #%option
 #% key: columns
 #% type: string
-#% description: Select columns to be printed to stdout
+#% description: Columns to be printed to stdout
+#% guisection: Selection
 #% required: no
 #% 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
@@ -46,6 +48,7 @@
 #%end
 
 #%option G_OPT_T_WHERE
+#% guisection: Selection
 #%end
 
 #%option
@@ -66,16 +69,15 @@
 #% multiple: no
 #%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
 
 #%flag
 #% key: h
-#% description: Print column names
+#% description: Print the column names as first row
+#% guisection: Formatting
 #%end
 
 import grass.script as grass

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

@@ -42,7 +42,7 @@
 #%option
 #% key: basename
 #% 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
 #% required: yes
 #% multiple: no

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

@@ -2,7 +2,7 @@
 # -*- coding: utf-8 -*-
 ############################################################################
 #
-# MODULE:       t.rast.mapcal2c
+# MODULE:       t.rast.mapcalc2
 # AUTHOR(S):    Thomas Leppelt, Soeren Gebbert
 #
 # PURPOSE:      Provide temporal raster algebra to perform spatial an temporal operations
@@ -10,32 +10,31 @@
 #               datasets.
 # 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
-#% 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: mapalgebra
+#% keywords: algebra
 #%end
 
 #%option
 #% key: expression
 #% 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
 #%end
 
 #%option
 #% key: basename
 #% 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
 
 #%option
@@ -49,7 +48,7 @@
 
 #%flag
 #% key: s
-#% description: Activate spatial topology.
+#% description: Activate spatial topology
 #%end
 
 #%flag

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

@@ -52,7 +52,7 @@
 #%option
 #% key: basename
 #% 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
 #% required: yes
 #% multiple: no

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

@@ -6,7 +6,7 @@
 # AUTHOR(S):	Soeren Gebbert
 #
 # 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
 #		License (version 2). Read the file COPYING that comes with GRASS
@@ -25,10 +25,12 @@
 #%end
 
 #%option G_OPT_T_WHERE
+#% guisection: Selection
 #%end
 
 #%option G_OPT_F_SEP
 #% description: Field separator character between the output columns
+#% guisection: Formatting
 #%end
 
 #%flag
@@ -38,7 +40,8 @@
 
 #%flag
 #% key: h
-#% description: Print column names
+#% description: Print the column names as first row
+#% guisection: Formatting
 #%end
 
 import grass.script as grass
@@ -53,14 +56,14 @@ def main():
     input = options["input"]
     where = options["where"]
     extended = flags["e"]
-    header = flags["h"]
-    fs = options["separator"]
+    colhead = flags["h"]
+    separator = options["separator"]
 
     # Make sure the temporal database exists
     tgis.init()
 
     tgis.print_gridded_dataset_univar_statistics(
-        "strds", input, where, extended, header, fs)
+        "strds", input, where, extended, colhead, separator)
 
 if __name__ == "__main__":
     options, flags = grass.parser()

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

@@ -6,7 +6,7 @@
 # AUTHOR(S):	Soeren Gebbert
 #
 # 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
 #		License (version 2). Read the file COPYING that comes with GRASS
@@ -39,6 +39,7 @@
 #% key: columns
 #% type: string
 #% description: Columns to be printed to stdout
+#% guisection: Selection
 #% required: no
 #% 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
@@ -46,6 +47,7 @@
 #%end
 
 #%option G_OPT_T_WHERE
+#% guisection: Selection
 #%end
 
 #%option
@@ -58,16 +60,15 @@
 #% answer: cols
 #%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
 
 #%flag
 #% key: h
-#% description: Print column names
+#% description: Print the column names as first row
+#% guisection: Formatting
 #%end
 
 import grass.script as grass

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

@@ -42,7 +42,7 @@
 #%option
 #% key: basename
 #% 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
 #% required: yes
 #% multiple: no

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

@@ -10,32 +10,31 @@
 #               datasets.
 # 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
-#% 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: mapalgebra
+#% keywords: algebra
 #%end
 
 #%option
 #% key: expression
 #% 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
 #%end
 
 #%option
 #% key: basename
 #% 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
 
 #%option
@@ -49,7 +48,7 @@
 
 #%flag
 #% key: s
-#% description: Activate spatial topology.
+#% description: Activate spatial topology
 #%end
 
 #%flag

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

@@ -6,7 +6,7 @@
 # AUTHOR(S):	Soeren Gebbert
 #
 # 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
 #		License (version 2). Read the file COPYING that comes with GRASS
@@ -25,10 +25,12 @@
 #%end
 
 #%option G_OPT_T_WHERE
+#% guisection: Selection
 #%end
 
 #%option G_OPT_F_SEP
 #% description: Field separator character between the output columns
+#% guisection: Formatting
 #%end
 
 #%flag
@@ -38,7 +40,8 @@
 
 #%flag
 #% key: h
-#% description: Print column names
+#% description: Print the column names as first row
+#% guisection: Formatting
 #%end
 
 import grass.script as grass
@@ -54,13 +57,13 @@ def main():
     where = options["where"]
     extended = flags["e"]
     header = flags["h"]
-    fs = options["separator"]
+    separator = options["separator"]
 
     # Make sure the temporal database exists
     tgis.init()
 
     tgis.print_gridded_dataset_univar_statistics(
-        "str3ds", input, where, extended, header, fs)
+        "str3ds", input, where, extended, header, separator)
 
 if __name__ == "__main__":
     options, flags = grass.parser()

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

@@ -6,7 +6,7 @@
 # AUTHOR(S):	Soeren Gebbert
 #
 # 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
 #		License (version 2). Read the file COPYING that comes with GRASS
@@ -40,14 +40,16 @@
 #%option G_OPT_F_INPUT
 #% key: file
 #% 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
 #%end
 
 #%option
 #% key: start
 #% 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
 #% multiple: no
 #% guisection: Time & Date
@@ -56,7 +58,8 @@
 #%option
 #% key: end
 #% 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
 #% multiple: no
 #% guisection: Time & Date
@@ -65,6 +68,7 @@
 #%option
 #% key: unit
 #% type: string
+#% label: Time stamp unit
 #% description: Unit must be set in case of relative time stamps
 #% required: no
 #% multiple: no
@@ -75,6 +79,7 @@
 #%option
 #% key: increment
 #% 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)
 #% required: no
 #% multiple: no
@@ -105,7 +110,7 @@ def main():
     maps = options["maps"]
     type = options["type"]
     file = options["file"]
-    fs = options["separator"]
+    separator = options["separator"]
     start = options["start"]
     end = options["end"]
     unit = options["unit"]
@@ -117,7 +122,7 @@ def main():
     # Register maps
     tgis.register_maps_in_space_time_dataset(
         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
 #
 # 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
 #		License (version 2). Read the file COPYING that comes with GRASS
@@ -44,16 +44,14 @@
 #% answer: during,overlap,contain,equal
 #%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
 
 #%flag
-#% key: c
-#% description: Print column names
+#% key: h
+#% description: Print the column names as first row
 #%end
 
 #%flag
@@ -61,7 +59,6 @@
 #% description: Check spatial overlap to perform spatio-temporal sampling
 #%end
 
-
 import grass.script as grass
 import grass.temporal as tgis
 
@@ -77,7 +74,7 @@ def main():
     intype = options["intype"]
     separator = options["separator"]
     method = options["method"]
-    header = flags["c"]
+    header = flags["h"]
     spatial = flags["s"]
 
     # Make sure the temporal database exists

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

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

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

@@ -38,7 +38,8 @@
 #%option
 #% key: granularity
 #% 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
 #% multiple: no
 #%end

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

@@ -56,7 +56,8 @@
 
 #%flag
 #% 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
 
 #%flag

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

@@ -6,7 +6,7 @@
 # AUTHOR(S):    Soeren Gebbert
 #
 # 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
 #               License (version 2). Read the file COPYING that comes with GRASS
@@ -30,7 +30,7 @@
 #%end
 
 #%option G_OPT_F_SEP
-#% description: Separator character between the output columns
+#% description: Field separator character between the output columns
 #%end
 
 #%option G_OPT_V_FIELD
@@ -57,7 +57,7 @@ def main():
     columns = options["columns"]
     tempwhere = options["t_where"]
     layer = options["layer"]
-    fs = options["separator"]
+    separator = options["separator"]
 
     if where == "" or where == " " or where == "\n":
         where = None
@@ -84,7 +84,7 @@ def main():
 
             select = grass.read_command("v.db.select", map=vector_name,
                                         layer=layer, columns=columns,
-                                        separator="%s" % (fs), where=where)
+                                        separator="%s" % (separator), where=where)
 
             if not select:
                 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
                     if count == 0:
                         col_names_new = "start_time%send_time%s%s" % (
-                            fs, fs, entry)
+                            separator, separator, entry)
                         if col_names != col_names_new:
                             col_names = col_names_new
                             print col_names
                     else:
                         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:
                             print "%s%s%s%s" % (row["start_time"],
-                                                fs, fs, entry)
+                                                separator, separator, entry)
                     count += 1
 
 if __name__ == "__main__":

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

@@ -47,7 +47,8 @@
 #%option
 #% key: format
 #% 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
 #% multiple: no
 #% options: GML,pack

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

@@ -42,7 +42,7 @@
 #%option
 #% key: basename
 #% 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
 #% required: no
 #% multiple: no

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

@@ -50,7 +50,7 @@
 #%option
 #% key: location
 #% 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
 #% multiple: no
 #%end

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

@@ -6,7 +6,7 @@
 # AUTHOR(S):	Soeren Gebbert
 #
 # 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
 #		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.
 #% keywords: temporal
 #% keywords: map management
+#% keywords: vector
 #% keywords: list
 #%end
 
@@ -27,7 +28,8 @@
 #%option
 #% key: order
 #% type: string
-#% description: Order the space time dataset by category
+#% description: Sort the space time dataset by category
+#% guisection: Formatting
 #% required: no
 #% 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
@@ -37,7 +39,8 @@
 #%option
 #% key: columns
 #% type: string
-#% description: Select columns to be printed to stdout
+#% description: Columns to be printed to stdout
+#% guisection: Selection
 #% required: no
 #% 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
@@ -45,6 +48,7 @@
 #%end
 
 #%option G_OPT_T_WHERE
+#% guisection: Selection
 #%end
 
 #%option
@@ -57,16 +61,15 @@
 #% answer: cols
 #%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
 
 #%flag
 #% key: h
-#% description: Print column names
+#% description: Print the column names as first row
+#% guisection: Formatting
 #%end
 
 import grass.script as grass

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

@@ -25,7 +25,7 @@
 #%option
 #% key: expression
 #% type: string
-#% description: The mapcalc expression for temporal and spatial analysis of space time vector datasets.
+#% description: Spatio-temporal mapcalc expression
 #% key_desc: expression
 #% required : yes
 #%end
@@ -33,14 +33,15 @@
 #%option
 #% key: basename
 #% 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
 #% required : yes
 #%end
 
 #%flag
 #% key: s
-#% description: Activate spatial topology.
+#% description: Activate spatial topology
 #%end
 
 import grass.script

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

@@ -32,10 +32,12 @@
 #%end
 
 #%option G_OPT_T_WHERE
+#% guisection: Selection
 #% key: twhere
 #%end
 
 #%option G_OPT_DB_WHERE
+#% guisection: Selection
 #%end
 
 #%option G_OPT_V_TYPE
@@ -44,12 +46,9 @@
 #% answer: point
 #%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
 
 #%flag
@@ -59,7 +58,8 @@
 
 #%flag
 #% key: h
-#% description: Print column names
+#% description: Print the column names as first row
+#% guisection: Formatting
 #%end
 
 import grass.script as grass