[GRASS-SVN] r54299 - in grass/trunk/temporal: t.list t.rast.colors t.register t.remove t.sample
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Dec 15 11:15:05 PST 2012
Author: annakrat
Date: 2012-12-15 11:15:05 -0800 (Sat, 15 Dec 2012)
New Revision: 54299
Modified:
grass/trunk/temporal/t.list/t.list.py
grass/trunk/temporal/t.rast.colors/t.rast.colors.py
grass/trunk/temporal/t.register/t.register.py
grass/trunk/temporal/t.remove/t.remove.py
grass/trunk/temporal/t.sample/t.sample.py
Log:
temporal: add more guisections
Modified: grass/trunk/temporal/t.list/t.list.py
===================================================================
--- grass/trunk/temporal/t.list/t.list.py 2012-12-15 16:59:46 UTC (rev 54298)
+++ grass/trunk/temporal/t.list/t.list.py 2012-12-15 19:15:05 UTC (rev 54299)
@@ -25,15 +25,24 @@
#% key: type
#% type: string
#% description: Type of the space time dataset or map, default is strds
+#% guisection: Selection
#% required: no
#% options: strds, str3ds, stvds, rast, rast3d, vect
#% answer: strds
#%end
+#%option G_OPT_T_TYPE
+#% multiple: yes
+#% answer: absolute,relative
+#% guisection: Selection
+#%end
+
#%option
#% key: order
#% type: string
-#% description: Sort the space time dataset by category. Columns number_of_maps and granularity only available fpr space time datasets
+#% description: Columns number_of_maps and granularity only available for space time datasets
+#% label: Sort the space time dataset by category
+#% 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
@@ -43,7 +52,9 @@
#%option
#% key: columns
#% type: string
-#% description: Columns to be printed to stdout. Columns number_of_maps and granularity only available for space time datasets
+#% description: Columns number_of_maps and granularity only available for space time datasets
+#% label: Columns to be printed to stdout
+#% 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
@@ -51,23 +62,21 @@
#%end
#%option G_OPT_T_WHERE
+#% guisection: Selection
#%end
-#%option G_OPT_T_TYPE
-#% multiple: yes
-#% answer: absolute,relative
-#%end
-
#%option
#% key: fs
#% type: string
#% description: The field separator character between the columns, default is tabular "\t"
+#% guisection: Formatting
#% required: no
#%end
#%flag
#% key: c
#% description: Print the column names as first row
+#% guisection: Formatting
#%end
import grass.script as grass
Modified: grass/trunk/temporal/t.rast.colors/t.rast.colors.py
===================================================================
--- grass/trunk/temporal/t.rast.colors/t.rast.colors.py 2012-12-15 16:59:46 UTC (rev 54298)
+++ grass/trunk/temporal/t.rast.colors/t.rast.colors.py 2012-12-15 19:15:05 UTC (rev 54299)
@@ -29,29 +29,34 @@
#% description: Name of color table (see r.color help)
#% required: no
#% multiple: no
+#% guisection: Define
#%end
#%option G_OPT_R_INPUT
#% key: raster
#% description: Raster map from which to copy color table
#% required: no
+#% guisection: Define
#%end
#%option G_OPT_R3_INPUT
#% key: volume
#% description: 3D raster map from which to copy color table
#% required: no
+#% guisection: Define
#%end
#%option G_OPT_F_INPUT
#% key: rules
#% description: Path to rules file
#% required: no
+#% guisection: Define
#%end
#%flag
#% key: r
#% description: Remove existing color tables
+#% guisection: Remove
#%end
#%flag
@@ -62,26 +67,31 @@
#%flag
#% key: l
#% description: List available rules then exit
+#% guisection: Print
#%end
#%flag
#% key: n
#% description: Invert colors
+#% guisection: Define
#%end
#%flag
#% key: g
#% description: Logarithmic scaling
+#% guisection: Define
#%end
#%flag
#% key: a
#% description: Logarithmic-absolute scaling
+#% guisection: Define
#%end
#%flag
#% key: e
#% description: Histogram equalization
+#% guisection: Define
#%end
import grass.script as grass
Modified: grass/trunk/temporal/t.register/t.register.py
===================================================================
--- grass/trunk/temporal/t.register/t.register.py 2012-12-15 16:59:46 UTC (rev 54298)
+++ grass/trunk/temporal/t.register/t.register.py 2012-12-15 19:15:05 UTC (rev 54299)
@@ -23,20 +23,24 @@
#%option G_OPT_STDS_INPUT
#% required: no
+#% guisection: Input
#%end
#%option G_OPT_MAP_INPUTS
#% required: no
+#% guisection: Input
#%end
#%option G_OPT_MAP_TYPE
#% guidependency: input,maps
+#% guisection: Input
#%end
#%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
+#% guisection: Input
#%end
#%option
@@ -45,6 +49,7 @@
#% 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).
#% required: no
#% multiple: no
+#% guisection: Time & Date
#%end
#%option
@@ -53,6 +58,7 @@
#% 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).
#% required: no
#% multiple: no
+#% guisection: Time & Date
#%end
#%option
@@ -62,6 +68,7 @@
#% required: no
#% multiple: no
#% options: years,months,days,hours,minutes,seconds
+#% guisection: Time & Date
#%end
#%option
@@ -70,6 +77,7 @@
#% 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
+#% guisection: Time & Date
#%end
#%option
@@ -78,11 +86,13 @@
#% description: Field separator character of the input file
#% required: no
#% answer: |
+#% guisection: Input
#%end
#%flag
#% key: i
#% description: Create an interval (start and end time) in case an increment is provided
+#% guisection: Time & Date
#%end
import grass.script as grass
Modified: grass/trunk/temporal/t.remove/t.remove.py
===================================================================
--- grass/trunk/temporal/t.remove/t.remove.py 2012-12-15 16:59:46 UTC (rev 54298)
+++ grass/trunk/temporal/t.remove/t.remove.py 2012-12-15 19:15:05 UTC (rev 54299)
@@ -22,6 +22,7 @@
#%end
#%option G_OPT_STDS_INPUTS
+#% guisection: Input
#% required: no
#%end
@@ -30,6 +31,7 @@
#% type: string
#% description: Type of the space time dataset, default is strds
#% guidependency: inputs
+#% guisection: Input
#% required: no
#% options: strds, str3ds, stvds
#% answer: strds
@@ -38,6 +40,7 @@
#%option G_OPT_F_INPUT
#% key: file
#% description: Input file with dataset names, one per line
+#% guisection: Input
#% required: no
#%end
Modified: grass/trunk/temporal/t.sample/t.sample.py
===================================================================
--- grass/trunk/temporal/t.sample/t.sample.py 2012-12-15 16:59:46 UTC (rev 54298)
+++ grass/trunk/temporal/t.sample/t.sample.py 2012-12-15 19:15:05 UTC (rev 54299)
@@ -30,10 +30,12 @@
#%option G_OPT_STDS_TYPE
#% key: intype
+#% guisection: Required
#%end
#%option G_OPT_STDS_TYPE
#% key: samtype
+#% guisection: Required
#% description: Type of the sample space time dataset
#%end
More information about the grass-commit
mailing list