[GRASS-SVN] r30567 - grass-addons/gipe

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Mar 15 00:56:18 EDT 2008


Author: ychemin
Date: 2008-03-15 00:56:18 -0400 (Sat, 15 Mar 2008)
New Revision: 30567

Modified:
   grass-addons/gipe/gmmenu.tcl
   grass-addons/gipe/menudata.py
Log:
Updated wxPython menu

Modified: grass-addons/gipe/gmmenu.tcl
===================================================================
--- grass-addons/gipe/gmmenu.tcl	2008-03-15 04:39:02 UTC (rev 30566)
+++ grass-addons/gipe/gmmenu.tcl	2008-03-15 04:56:18 UTC (rev 30567)
@@ -300,6 +300,7 @@
 		{command {[G_msg "Length Slope and Slope (LS)"]} {} "r.watershed" {} -command {execute r.watershed }}
 	}}
 	{cascad {[G_msg "Hydrologic modeling"]} {} "" $tmenu {			
+		{command {[G_msg "CASC2D"]} {} "r.CASC2D: CASC2D hydrological modeling" {} -command {execute r.CASC2D }}
 		{command {[G_msg "Carve stream channels"]} {} "r.carve: Carve stream channels into elevation map using vector streams map" {} -command {execute r.carve }}
 		{command {[G_msg "Fill lake"]} {} "r.lake: Fill lake from seed point to specified level" {} -command {execute r.lake }}
 		{separator}

Modified: grass-addons/gipe/menudata.py
===================================================================
--- grass-addons/gipe/menudata.py	2008-03-15 04:39:02 UTC (rev 30566)
+++ grass-addons/gipe/menudata.py	2008-03-15 04:56:18 UTC (rev 30567)
@@ -1,3 +1,25 @@
+"""
+MODULE:     menudata.py
+
+CLASSES:
+    * Data
+
+PURPOSE:    Complex list for main menu entries for GRASS wxPython GUI.
+
+AUTHORS:    The GRASS Development Team
+            Michael Barton (Arizona State University)
+            Yann Chemin
+            Martin Landa <landa.martin gmail.com>
+            
+COPYRIGHT:  (C) 2007-2008 by the GRASS Development Team
+            This program is free software under the GNU General Public
+            License (>=v2). Read the file COPYING that comes with GRASS
+            for details.
+
+"""
+
+import os
+
 class Data:
     '''Data object that returns menu descriptions to be used in wxgui.py.
     Probably could be changed to XML or *.dtd file.'''
@@ -2,305 +24,463 @@
     def GetMenu(self):
-	return [(
-	("Files", (
-	    ("Import", "Import files", "self.runMenuCmd", "r.in.gdal"),
-	    ("Export", "Export files", "self.runMenuCmd", "r.out.gdal"),
-	    ("","","", ""),
-	    ("E&xit", "Exit from wxgui.py", "self.onCloseWindow", "")
-	    )),
-	("Config", (
-	    ("Region", "Set region", "self.runMenuCmd", "g.region"),
-	    ("","","", "")
-	    )),
-	("Raster", (
-	    ("Develop map", (
-		("Digitize raster", "Digitize raster", "self.runMenuCmd", "r.digit"),
-		("","","", ""),
-		("Compress/decompress raster file", "Compress/decompress raster file", "self.runMenuCmd", "r.compress"),
-		("Manage boundary definition (WHICH COMMAND?)", "Manage boundary definition", "self.runMenuCmd", "r.region"),
-		("Manage null values", "Manage null values", "self.runMenuCmd", "r.null"),
-		("Manage timestamp for files", "Manage timestamp for files", "self.runMenuCmd", "r.timestamp"),
-		("Quantization for floating-point maps", "Quantization for floating-point maps", "self.runMenuCmd", "r.quant"),
-		("Resample (change resolution) using nearest neighbor method", "Resample (change resolution) using nearest neighbor method", "self.runMenuCmd", "r.resample"),
-		("Resample (change resolution) using regularized spline tension", "Resample (change resolution) using regularized spline tension", "self.runMenuCmd", "r.resamp.rst"),
-		("Support file creation and maintenance", "Support file creation and maintenance", "self.runMenuCmd", "r.support.sh"),
-		("","","", ""),
-		("Reproject raster from other location", "Reproject raster from other location", "self.runMenuCmd", "r.proj"),
-		("Generate tiling for other projection", "Generate tiling for other projection", "self.runMenuCmd", "r.tileset"),
-	    )),
-	    ("Manage map colors", (
-		("Set colors to predefined color tables", "Set colors to predefined color tables", "self.runMenuCmd", "r.colors"),
-		("Set colors using color rules", "Set colors using color rules", "self.runMenuCmd", "r.colors.rules"),
-		("","","", ""),
-		("Blend 2 color maps to produce 3 RGB files", "Blend 2 color maps to produce 3 RGB files", "self.runMenuCmd", "r.blend"),
-		("Create color image from RGB files", "Create color image from RGB files", "self.runMenuCmd", "r.composite"),
-		("Create 3 RGB (red, green, blue) maps from 3 HIS (hue, intensity, saturation) maps", "Create 3 RGB (red, green, blue) maps from 3 HIS (hue, intensity, saturation) maps", "self.runMenuCmd", "r.his"),
-	    )),
-	    ("Query by coordinates", "Query by coordinates", "self.runMenuCmd", "r.what"),
-	    ("","","", ""),
-	    ("Create raster buffers", "Develop raster buffer", "self.runMenuCmd", "r.buffer"),
-	    ("Create raster MASK", "Develop raster mask", "self.runMenuCmd", "r.mask"),
-	    ("Locate closest points between areas in 2 raster maps", "r.distance", "self.runMenuCmd", "r.distance"),
-	    ("Map calculator", "Map calculator", "self.runMenuCmd", "scripts/mapcalc_gparser.sh"),
-	    ("Neighborhood analysis", (
-		("Moving window analysis of raster cells", "Moving window analysis of raster cells", "self.runMenuCmd", "r.neighbors"),
-		("Analyze vector points in neighborhood of raster cells", "Analyze vector points in neighborhood of raster cells", "self.runMenuCmd", "v.neighbors"),
-	    )),
-	    ("Overlay maps", (
-		("Cross product", "Cross product", "self.runMenuCmd", "r.cross"),
-		("Function of map series (time series)", "Function of map series (time series)", "self.runMenuCmd", "r.series"),
-		("Patch maps", "Patch maps", "self.runMenuCmd", "r.patch"),
-		("","","", ""),
-		("Statistical calculations for cover map over base map", "Statistical calculations for cover map over base map", "self.runMenuCmd", "r.statistics"),
-	    )),
-	    ("Solar radiance and shadows", (
-		("Solar irradiance and daily irradiation", "Solar irradiance and daily irradiation", "self.runMenuCmd", "r.sun"),
-		("Shadow map for sun position or date/time", "Shadow map for sun position or date/time", "self.runMenuCmd", "r.sunmask"),
-	    )),
-	    ("Terrain analysis", (
-		("Calculate cumulative movement costs between locales", "Calculate cumulative movement costs between locales", "self.runMenuCmd", "r.walk"),
-		("cost surface", "cost surface", "self.runMenuCmd", "r.cost"),
-		("Least cost route or flow", "Least cost route or flow", "self.runMenuCmd", "r.drain"),
-		("Profile analysis", "Profile analysis", "self.runMenuCmd", "d.profile"),
-		("Shaded relief map", "Shaded relief map", "self.runMenuCmd", "r.shaded.relief"),
-		("Slope and aspect", "Slope and aspect", "self.runMenuCmd", "r.slope.aspect"),
-		("Terrain parameters", "Terrain parameters", "self.runMenuCmd", "r.param.scale"),
-		("Textural features", "Textural features", "self.runMenuCmd", "r.texture"),
-		("Visibility/Line of sight", "Visibility/Line of sight", "self.runMenuCmd", "r.los"),
-	    )),
-	    ("Transform features", (
-		("Clump small areas (statistics calculated by r.volume)", "Clump small areas (statistics calculated by r.volume)", "self.runMenuCmd", "r.clump"),
-		("Grow areas", "Grow areas", "self.runMenuCmd", "r.grow"),
-		("Thin linear features", "Thin linear features", "self.runMenuCmd", "r.thin"),
-	    )),
-	    ("","","", ""),
-	    ("Hydrologic modeling", (
-		("Carve stream channels into elevation map using vector streams map", "Carve stream channels into elevation map using vector streams map", "self.runMenuCmd", "r.carve"),
-		("Depressionless elevation map and flowline map", "Depressionless elevation map and flowline map", "self.runMenuCmd", "r.fill.dir"),
-		("Fill lake from seed point to specified level", "Fill lake from seed point to specified level", "self.runMenuCmd", "r.lake"),
-		("Flow accumulation for massive grids (WHICH COMMAND?)", "Flow accumulation for massive grids", "self.runMenuCmd", "r.flow"),
-		("Generate flow lines for raster map (WHICH COMMAND?)", "Generate flow lines for raster map", "self.runMenuCmd", "r.flow"),
-		("SIMWE overland flow modeling (WHICH COMMAND?)", "SIMWE overland flow modeling", "self.runMenuCmd", "r.simwe"),
-		("SIMWE sediment erosion, transport, deposition modeling (WHICH COMMAND?)", "SIMWE sediment erosion, transport, deposition modeling", "self.runMenuCmd", "r.simwe"),
-		("Topographic index map", "Topographic index map", "self.runMenuCmd", "r.topidx"),
-		("TOPMODEL simulation", "TOPMODEL simulation", "self.runMenuCmd", "r.topmodel"),
-		("Watershed subbasins", "Watershed subbasins", "self.runMenuCmd", "r.basins.fill"),
-		("Watershed analysis", "Watershed analysis", "self.runMenuCmd", "r.watershed"),
-		("Watershed basin creation", "Watershed basin creation", "self.runMenuCmd", "r.water.outlet"),
-	    )),
-	    ("Landscape structure modeling", (
-		("Set up sampling and analysis framework", "Set up sampling and analysis framework", "self.runMenuCmd", "r.le.setup"),
-		("","","", ""),
-		("Analyze landscape characteristics", "Analyze landscape characteristics", "self.runMenuCmd", "r.le.pixel"),
-		("Analyze landscape patch characteristics", "Analyze landscape patch characteristics", "self.runMenuCmd", "r.le.patch"),
-		("Output landscape patch information", "Output landscape patch information", "self.runMenuCmd", "r.le.trace"),
-	    )),
-	    ("Wildfire modeling", (
-		("Generate rate of spread (ROS) maps", "Generate rate of spread (ROS) maps", "self.runMenuCmd", "r.ros"),
-		("Generate least-cost spread paths", "Generate least-cost spread paths", "self.runMenuCmd", "r.spreadpath"),
-		("Simulate anisotropic spread phenomena", "Simulate anisotropic spread phenomena", "self.runMenuCmd", "r.spread"),
-	    )),
-	    ("","","", ""),
-	    ("Change category values and labels", (
-		("Edit category values of individual cells for displayed raster map", "Edit category values of individual cells for displayed raster map", "self.runMenuCmd", "d.rast.edit"),
-		("","","", ""),
-		("Reclassify categories for areas of specified sizes", "Reclassify categories for areas of specified sizes", "self.runMenuCmd", "r.reclass.area"),
-		("Reclassify categories using rules", "Reclassify categories using rules", "self.runMenuCmd", "r.reclass.rules"),
-		("Reclassify categories using rules file", "Reclassify categories using rules file", "self.runMenuCmd", "r.reclass.file"),
-		("","","", ""),
-		("Recode categories using rules (create new map)", "Recode categories using rules (create new map)", "self.runMenuCmd", "r.recode.rules"),
-		("Recode categories using rules file (create new map)", "Recode categories using rules file (create new map)", "self.runMenuCmd", "r.recode.file"),
-		("","","", ""),
-		("Rescale categories (create new map)", "Rescale categories (create new map)", "self.runMenuCmd", "r.rescale"),
-		("Rescale categories with equalized histogram (create new map)", "Rescale categories with equalized histogram (create new map)", "self.runMenuCmd", "r.rescale.eq"),
-	    )),
-	    ("","","", ""),
-	    ("Generate concentric circles around points", "Generate concentric circles around points", "self.runMenuCmd", "r.circle"),
-	    ("Generate random raster cells", (
-		("Generate random cells", "Generate random cells", "self.runMenuCmd", "r.random.cells"),
-		("Generate random cells and vector points from raster map", "Generate random cells and vector points from raster map", "self.runMenuCmd", "r.random"),
-	    )),
-	    ("Generate surfaces", (
-		("Generate density surface using moving Gaussian kernel", "Generate density surface using moving Gaussian kernel", "self.runMenuCmd", "v.kernel"),
-		("Generate fractal surface", "Generate fractal surface", "self.runMenuCmd", "r.surf.fractal"),
-		("Generate gaussian deviates surface", "Generate gaussian deviates surface", "self.runMenuCmd", "r.surf.gauss"),
-		("Generate plane", "Generate plane", "self.runMenuCmd", "r.plane"),
-		("Generate random deviates surface", "Generate random deviates surface", "self.runMenuCmd", "r.surf.random"),
-		("Generate random surface with spatial dependence", "Generate random surface with spatial dependence", "self.runMenuCmd", "r.random.surface"),
-	    )),
-	    ("Generate vector contour lines", "Generate vector contour lines", "self.runMenuCmd", "r.contour"),
-	    ("Interpolate surfaces", (
-		("Bilinear interpolation from raster points", "Bilinear interpolation from raster points", "self.runMenuCmd", "r.bilinear"),
-		("Inverse distance weighted interpolation from raster points", "Inverse distance weighted interpolation from raster points", "self.runMenuCmd", "r.surf.idw"),
-		("Interpolation from raster contour", "Interpolation from raster contour", "self.runMenuCmd", "r.surf.contour"),
-		("","","", ""),
-		("Inverse distance weighted interpolation from vector points", "Inverse distance weighted interpolation from vector points", "self.runMenuCmd", "v.surf.idw"),
-		("Regularized spline tension interpolation from vector points or contours (WHICH COMMAND ?)", "Regularized spline tension interpolation from vector points or contours", "self.runMenuCmd", "v.surf.rst"),
-		("","","", ""),
-		("Fill NULL cells by interpolation using regularized spline tension", "Fill NULL cells by interpolation using regularized spline tension", "self.runMenuCmd", "r.fillnulls"),
-	    )),
-	    ("","","", ""),
-	    ("Report and statistics", (
-		("Report basic file information", "Report basic file information", "self.runMenuCmd", "r.info"),
-		("Report category labels and values", "Report category labels and values", "self.runMenuCmd", "r.cats"),
-		("","","", ""),
-		("General statistics", "General statistics", "self.runMenuCmd", "r.stats"),
-		("Range of all category values", "Range of all category values", "self.runMenuCmd", "r.describe"),
-		("Sum all cell category values", "Sum all cell category values", "self.runMenuCmd", "r.sum"),
-		("Sum area by map and category", "Sum area by map and category", "self.runMenuCmd", "r.report"),
-		("Summary statistics for clumped cells (work with r.clump)", "Summary statistics for clumped cells (work with r.clump)", "self.runMenuCmd", "r.volume"),
-		("Total surface area corrected for topography", "Total surface area corrected for topography", "self.runMenuCmd", "r.surf.area"),
-		("Univariate statistics", "Univariate statistics", "self.runMenuCmd", "r.univar"),
-		("Univariate statistics (script version)", "Univariate statistics (script version)", "self.runMenuCmd", "r.univar.sh"),
-		("","","", ""),
-		("Sample values along transects", "Sample values along transects", "self.runMenuCmd", "r.profile"),
-		("Sample values along transects (use azimuth, distance)", "Sample values along transects (use azimuth, distance)", "self.runMenuCmd", "r.transect"),
-		("","","", ""),
-		("Covariance/correlation", "Covariance/correlation", "self.runMenuCmd", "r.covar"),
-		("Linear regression between 2 maps", "Linear regression between 2 maps", "self.runMenuCmd", "r.regression.line"),
-		("Mutual category occurrences (coincidence)", "Mutual category occurrences (coincidence)", "self.runMenuCmd", "r.coin"),
-	    )),
-	    ("","","", "")
-	    )),
-	("Vector", (
-	    ("Develop map", (
-		("Digitize", "Digitize vector", "self.runMenuCmd", "v.digit"),
-		("","","", ""),
-		("Create/Rebuild topology", "Create/Rebuild topology", "self.runMenuCmd", "v.build"),
-		("Clean vector files", "clean vector files", "self.runMenuCmd", "v.clean"),
-		("","","", ""),
-		("Break lines at intersections", "Break lines at intersections", "self.runMenuCmd", "v.topo.check"),
-		("Build polylines from adjacent segments", "Build polylines from adjacent segments", "self.runMenuCmd", "v.build.polylines"),
-		("Split polylines into segments", "Split polylines into segments", "self.runMenuCmd", "v.segment"),
-		("Create lines parallel to existing lines", "Create lines parallel to existing lines", "self.runMenuCmd", "v.parallel"),
-		("","","", ""),
-		("Convert vector feature types", "Convert vector feature types", "self.runMenuCmd", "v.type"),
-		("Convert 2D vector to 3D by sampling raster", "Convert 2D vector to 3D by sampling raster", "self.runMenuCmd", "v.drape"),
-		("Extrude 2D vector into 3D vector", "Extrude 2D vector into 3D vector", "self.runMenuCmd", "v.extrude"),
-		("","","", ""),
-		("Create text label file for vector features", "Create text label file for vector features", "self.runMenuCmd", "v.label"),
-		("","","", ""),
-		("Reproject vector from other location", "Reproject vector from other location", "self.runMenuCmd", "v.proj"),
-		("","","", "")
-	    )),
-	    ("","","", ""),
-	    ("vector<->database connections", (
-		("Create new vector as link to external OGR layer", "Create new vector as link to external OGR layer", "self.runMenuCmd", "v.external"),
-		("Set database connection for vector attributes", "Set database connection for vector attributes", "self.runMenuCmd", "v.db.connect"),
-	    )),
-	    ("Query by attributes", "Query by attributes", "self.runMenuCmd", "v.extract"),
-	    ("Query by coordinate(s)", "Query by coordinate(s)", "self.runMenuCmd", "v.what"),
-	    ("Query by map features", "Query by map features", "self.runMenuCmd", "v.select"),
-	    ("","","", ""),
-	    ("Create vector buffers", "Create vector buffers", "self.runMenuCmd", "v.buffer"),
-	    ("Linear referencing for vectors", (
-		("Create linear reference system", "Create linear reference system", "self.runMenuCmd", "v.lrs.create"),
-		("Create stationing from input lines, and linear reference system", "Create stationing from input lines, and linear reference system", "self.runMenuCmd", "v.lrs.label"),
-		("Create points/segments from input lines, linear reference system and positions read from stdin", "Create points/segments from input lines, linear reference system and positions read from stdin", "self.runMenuCmd", "v.lrs.segment"),
-		("Find line id and real km+offset for given points in vector map using linear reference system", "Find line id and real km+offset for given points in vector map using linear reference system", "self.runMenuCmd", "v.lrs.where"),
-	    )),
-	    ("Neighborhood analysis", (
-		("Locate nearest feature to points or centroids", "Locate nearest feature to points or centroids", "self.runMenuCmd", "v.distance"),
-		("Generate Thiessen polygons around points (Voronoi diagram)", "Generate Thiessen polygons around points (Voronoi diagram)", "self.runMenuCmd", "v.voronoi"),
-		("Connect points to create Delaunay triangles", "Connect points to create Delaunay triangles", "self.runMenuCmd", "v.delaunay"),
-	    )),
-	    ("Network analysis", (
-		("Allocate subnets", "Allocate subnets", "self.runMenuCmd", "v.net.alloc"),
-		("Network maintenance", "Network maintenance", "self.runMenuCmd", "v.net"),
-		("Shortest route", "Shortest route", "self.runMenuCmd", "v.net.path"),
-		("Shortest route (visualization only)", "Shortest route (visualization only)", "self.runMenuCmd", "d.path"),
-		("Split net to bands between cost isolines", "Split net to bands between cost isolines", "self.runMenuCmd", "v.net.iso"),
-		("Steiner tree", "Steiner tree", "self.runMenuCmd", "v.net.steiner"),
-		("Traveling salesman analysis", "Traveling salesman analysis", "self.runMenuCmd", "v.net.salesman"),
-	    )),
-	    ("Overlay maps", (
-		("Overlay/combine 2 vector maps", "Overlay/combine 2 vector maps", "self.runMenuCmd", "v.overlay"),
-		("Patch multiple maps (combine)", "Patch multiple maps (combine)", "self.runMenuCmd", "v.patch"),
-	    )),
-	    ("Generate area feature for extent of current region", "Generate area feature for extent of current region", "self.runMenuCmd", "v.in.region"),
-	    ("Generate rectangular vector grid", "Generate rectangular vector grid", "self.runMenuCmd", "v.mkgrid"),
-	    ("","","", ""),
-	    ("Change attributes", (
-		("Attach/delete, or report categories", "Attach/delete, or report categories", "self.runMenuCmd", "v.category"),
-		("Reclassify features using rules file", "Reclassify features using rules file", "self.runMenuCmd", "v.reclass"),
-	    )),
-	    ("","","", ""),
-	    ("Work with vector points", (
-		("Generate points", (
-		    ("Generate points from database", "Generate points from database", "self.runMenuCmd", "v.in.db"),
-		    ("Generate random points", "Generate random points", "self.runMenuCmd", "v.random"),
-		    ("Random location perturbations of points", "Random location perturbations of points", "self.runMenuCmd", "v.perturb"),
-		)),
-		("Generate areas from points", (
-		    ("Generate convex hull for point set", "Generate convex hull for point set", "self.runMenuCmd", "v.hull"),
-		    ("Generate Delaunay triangles for point set", "Generate Delaunay triangles for point set", "self.runMenuCmd", "v.delaunay"),
-		    ("Generate Voronoi diagram/Thiessen polygons for point set", "Generate Voronoi diagram/Thiessen polygons for point set", "self.runMenuCmd", "v.voronoi"),
-		)),
-		("Sample raster maps", (
-		    ("Calculate statistics for raster map overlain by vector map", "Calculate statistics for raster map overlain by vector map", "self.runMenuCmd", "v.rast.stats"),
-		    ("Sample raster maps at point locations", "Sample raster maps at point locations", "self.runMenuCmd", "v.what.rast"),
-		    ("Sample raster neighborhood around points", "Sample raster neighborhood around points", "self.runMenuCmd", "v.sample"),
-		)),
-		("Partition points into test/training sets for k-fold cross validation", "Partition points into test/training sets for k-fold cross validation", "self.runMenuCmd", "v.kcv"),
-		("Transfer attribute data from queried vector map to points", "Transfer attribute data from queried vector map to points", "self.runMenuCmd", "v.what.vect"),
-	    )),
-	    ("","","", ""),
-	    ("Reports and statistics", (
-		("Basic information", "Basic information", "self.runMenuCmd", "v.info"),
-		("Load vector attributes to database or create reports", "Load vector attributes to database or create reports", "self.runMenuCmd", "v.to.db"),
-		("Report areas for vector attribute categories", "Report areas for vector attribute categories", "self.runMenuCmd", "v.report"),
-		("Univariate statistics", "Univariate statistics", "self.runMenuCmd", "v.univar"),
-		("","","", ""),
-		("Test normality of point distribution", "Test normality of point distribution", "self.runMenuCmd", "v.normal"),
-		("Calculate stats for raster map underlying vector objects", "Calculate stats for raster map underlying vector objects", "self.runMenuCmd", "v.rast.stats"),
-		("Indices of point counts in quadrats", "Indices of point counts in quadrats", "self.runMenuCmd", "v.qcount"),
-	    )),
-	    ("","","", "")
-	    )),
-	("Image", (
-	    ("Develop images and groups", (
-		("Create/edit imagery group", "Create/edit imagery group", "self.runMenuCmd", "i.group"),
-		("Target imagery group", "Target imagery group", "self.runMenuCmd", "i.target"),
-		("","","", ""),
-		("Mosaic up to 4 adjacent images", "Mosaic up to 4 adjacent images", "self.runMenuCmd", "i.image.mosaic"),
-		)),
-	    ("Manage image colors", (
-		("Color balance and enhance color tables of multiband imagery for rgb display", "Color balance and enhance color tables of multiband imagery for rgb display", "self.runMenuCmd", "i.landsat.rgb"),
-		("Transform HIS (Hue/Intensity/Saturation) color image to RGB (Red/Green/Blue)", "Transform HIS (Hue/Intensity/Saturation) color image to RGB (Red/Green/Blue)", "self.runMenuCmd", "i.his.rgb"),
-		("Transform RGB (Red/Green/Blue) color image to HIS (Hue/Intensity/Saturation)", "Transform RGB (Red/Green/Blue) color image to HIS (Hue/Intensity/Saturation)", "self.runMenuCmd", "i.rgb.his"),
-		)),
-	    ("Rectify and georeference image group", (
-		("Set ground control points (GCP's) from raster map or keyboard entry", "Set ground control points (GCP's) from raster map or keyboard entry", "self.runMenuCmd", "i.points"),
-		("Set ground control points (GCP's) from vector map or keyboard entry", "Set ground control points (GCP's) from vector map or keyboard entry", "self.runMenuCmd", "i.vpoints"),
-		("Affine and Polynomial rectification (rubber sheet)", "Affine and Polynomial rectification (rubber sheet)", "self.runMenuCmd", "i.rectify"),
-		("Ortho Photo rectification", "Ortho Photo rectification", "self.runMenuCmd", "i.ortho.photo"),
-		)),
-	    ("","","", ""),
-	    ("Classify image", (
-		("Clustering input for unsupervised classification", "Clustering input for unsupervised classification", "self.runMenuCmd", "i.cluster"),
-		("","","", ""),
-		("Maximum likelihood Classification (MLC)", "Maximum likelihood Classification (MLC)", "self.runMenuCmd", "i.maxlik"),
-		("Sequential maximum a posteriori classification (SMAP)", "Sequential maximum a posteriori classification (SMAP)", "self.runMenuCmd", "i.smap"),
-		("","","", ""),
-		("Interactive input for supervised classification", "Interactive input for supervised classification", "self.runMenuCmd", "i.class"),
-		("Non-interactive input for supervised classification (MLC)", "Non-interactive input for supervised classification (MLC)", "self.runMenuCmd", "i.gensig"),
-		("Non-interactive input for supervised classification (SMAP)", "Non-interactive input for supervised classification (SMAP)", "self.runMenuCmd", "i.gensigset"),
-		)),
-                ("Classify image (pr library)", (
-                  ("subsets", "pr_subsets", "self.RunMenuCmd", "i.pr_subsets"),
-                  ("training", "pr_training", "self.RunMenuCmd", "i.pr_training"),
-                  ("classify", "pr_classify", "self.RunMenuCmd", "i.pr_classify"),
-                  ("","","", ""),
-                  ("features", "pr_features", "self.RunMenuCmd", "i.pr_features"),
-                  ("features_additional", "pr_features_additional", "self.RunMenuCmd", "i.pr_features_additional"),
-                  ("features_extract", "pr_features_extract", "self.RunMenuCmd", "i.pr_features_extract"),
-                  ("features_selection", "pr_features_selection", "self.RunMenuCmd", "i.pr_features_selection"),
-                  ("","","", ""),
-                  ("model", "pr_model", "self.RunMenuCmd", "i.pr_model"),
-                  ("sites_aggregate", "pr_sites_aggregate", "self.RunMenuCmd", "i.pr_sites_aggregate"),
-                  ("blob", "pr_blob", "self.RunMenuCmd", "i.pr_blob"),
-                  ("uxb", "pr_uxb", "self.RunMenuCmd", "i.pr_uxb"),
-                  ("","","", ""),
-                  ("statistics", "pr_statistics", "self.RunMenuCmd", "i.pr_statistics"),
+        return [(
+          ("File", (
+              ("Workspace", (
+                 ("New workspace", "Create new workspace file (erase current workspace settings first)", "self.OnWorkspaceNew", ""),
+                 ("Open existing workspace", "Open existing workspace file", "self.OnWorkspaceOpen", ""),
+                 ("Load map layers", "Load map layers into layer tree", "self.OnWorkspaceLoad", ""),
+                 ("Save workspace", "Save current workspace to file", "self.OnWorkspaceSave", ""),
+                 ("Save workspace as", "Save current workspace as file", "self.OnWorkspaceSaveAs", ""),
+                 ("Close current workspace", "Close current workspace", "self.OnWorkspaceClose", ""),
+                 )),
+              ("","","", ""),
+              ("Import raster map", (
+                 ("Multiple import formats using GDAL", "Import multiple formats using GDAL", "self.OnMenuCmd", "r.in.gdal"),
+                 ("","","", ""),
+                 ("Aggregate ASCII xyz import", "Import aggregate ASCII xyz data", "self.OnMenuCmd", "r.in.xyz"),
+                 ("ASCII grid import", "Import ASCII GRID (includes GRASS ASCII)", "self.OnMenuCmd", "r.in.ascii"),
+                 ("ASCII polygons and lines import", "Import Polygons and lines from ASCII file", "self.OnMenuCmd", "r.in.poly"),
+                 ("","","", ""),
+                 ("Binary import", "Import binary file (includes GTOPO30 format)", "self.OnMenuCmd", "r.in.bin"),
+                 ("ESRI ASCII grid import", "Import ESRI Arc/Info ASCII grid", "self.OnMenuCmd", "r.in.arc"),
+                 ("GRIDATB.FOR import", "Import GRIDATB.FOR map file (TOPMODEL)", "self.OnMenuCmd", "r.in.gridatb"),
+                 ("MAT-File (v.4) import", "Import MAT-File (v.4) array (Matlab or Octave)", "self.OnMenuCmd", "r.in.mat"),
+                 ("SPOT NDVI import", "Import SPOT vegetation NDVI data sets", "self.OnMenuCmd", "r.in.spotvgt"),
+                 ("SRTM HGT import", "Import SRTM hgt files", "self.OnMenuCmd", "r.in.srtm"),
+                 ("Terra ASTER HDF import", "Import Terra ASTER HDF files", "self.OnMenuCmd", "r.in.aster"),
+                 ("","","", ""),
+                 ("WMS import", "Import Web Mapping Server", "self.OnMenuCmd", "r.in.wms"),
+                 )),
+              ("Import vector map", (
+                 ("Multiple import formats using OGR", "Import multiple formats using OGR", "self.OnMenuCmd", "v.in.ogr"),
+                 ("","","", ""),
+                 ("ASCII points/GRASS ASCII vector import", "Import ASCII points file or GRASS ASCII vector file", "self.OnMenuCmd", "v.in.ascii"),
+                 ("Old GRASS vector import", "Import old GRASS vector format", "self.OnMenuCmd", "v.convert"),
+                 ("","","", ""),
+                 ("DXF import", "Import DXF file", "self.OnMenuCmd", "v.in.dxf"),
+                 ("ESRI e00 import", "Import ESRI e00 file", "self.OnMenuCmd", "v.in.e00"),
+                 ("Garmin GPS import", "Import Garmin GPS Waypoints/Routes/Tracks", "self.OnMenuCmd", "v.in.garmin"),
+                 ("GPSBabel GPS import", "Import GPS Waypoints/Routes/Tracks using GPSBabel", "self.OnMenuCmd", "v.in.gpsbabel"),
+                 ("GEOnet import", "Import GEOnet Name server country files (US-NGA GNS)", "self.OnMenuCmd", "v.in.gns"),
+                 ("Matlab and MapGen import", "Import Matlab and MapGen files", "self.OnMenuCmd", "v.in.mapgen"),
+                 )),
+              ("Import grid 3D volume", (
+                 ("ASCII 3D import", "Import ASCII 3D file", "self.OnMenuCmd", "r3.in.ascii"),
+                 ("Vis5D import", "Import Vis5D file", "self.OnMenuCmd", "r3.in.v5d"),
+                 )),
+              ("Import database table", (
+                 ("Multiple import formats using OGR", "Import multiple formats using OGR", "self.OnMenuCmd", "db.in.ogr"),
+                 )),
+              ("","","", ""),
+              ("Export raster map", (
+                 ("Multiple export formats using GDAL", "Export multiple formats using GDAL", "self.OnMenuCmd", "r.out.gdal"),
+                 ("","","", ""),
+                 ("ASCII grid export", "Export ASCII grid (for GRASS, Surfer, Modflow, etc)", "self.OnMenuCmd", "r.out.ascii"),
+                 ("ASCII x,y,z export", "Export ASCII x,y,z values of cell centers", "self.OnMenuCmd", "r.out.xyz"),
+                 ("","","", ""),
+                 ("ESRI ASCII grid export", "Export ESRI Arc/Info ASCII grid", "self.OnMenuCmd", "r.out.arc"),
+                 ("GRIDATB.FOR export", "Export GRIDATB.FOR map file (TOPMODEL)", "self.OnMenuCmd", "r.out.gridatb"),
+                 ("MAT-File (v.4) export", "Export MAT-File (v.4) array (Matlab or Octave)", "self.OnMenuCmd", "r.out.mat"),
+                 ("","","", ""),
+                 ("Binary export", "Export binary file", "self.OnMenuCmd", "r.out.bin"),
+                 ("","","", ""),
+                 ("MPEG-1 export", "Export MPEG-1 animations", "self.OnMenuCmd", "r.out.mpeg"),
+                 ("PNG export", "Export PNG image (not georeferenced)", "self.OnMenuCmd", "r.out.png"),
+                 ("PPM export", "Export PPM image (24bit)", "self.OnMenuCmd", "r.out.ppm"),
+                 ("PPM from RGB export", "Export PPM image from red, green, blue raster maps", "self.OnMenuCmd", "r.out.ppm3"),
+                 ("POV-Ray export", "Export POVray height-field", "self.OnMenuCmd", "r.out.pov"),
+                 ("TIFF export", "Export TIFF image (8/24bit)", "self.OnMenuCmd", "r.out.tiff"),
+                 ("VRML export", "Export VRML file", "self.OnMenuCmd", "r.out.vrml"),
+                 ("VTK export", "Export VTK ASCII file", "self.OnMenuCmd", "r.out.vtk"),
+                 )),
+              ("Export vector map", (
+                 ("Multiple export formats using OGR", "Export multiple formats using OGR", "self.OnMenuCmd", "v.out.ogr"),
+                 ("","","", ""),
+                 ("ASCII points/GRASS ASCII vector export", "Import ASCII points file or GRASS ASCII vector file", "self.OnMenuCmd", "v.out.ascii"),
+                 ("DXF export", "Export DXF file", "self.OnMenuCmd", "v.out.dxf"),
+                 ("POV-Ray export", "Export POV-Ray format file", "self.OnMenuCmd", "v.out.pov"),
+                 ("SVG export", "Export SVG file", "self.OnMenuCmd", "v.out.svg"),
+                 ("VTK export", "Export VTK ASCII file", "self.OnMenuCmd", "v.out.vtk"),
+                 )),
+              ("Export grid 3D volume", (
+                 ("ASCII 3D export", "Export ASCII 3D file", "self.OnMenuCmd", "r3.out.ascii"),
+                 ("Vis5D export", "Export Vis5D file", "self.OnMenuCmd", "r3.out.v5d"),
+                 ("VTK export", "Export VTK ASCII file", "self.OnMenuCmd", "r3.out.vtk"),
+                 )),
+              ("","","", ""),
+              ("Manage maps and volumes", (
+                ("Copy", "Copy maps within mapsets or between mapsets", "self.OnMenuCmd", "g.copy"),
+                ("","","", ""),
+                ("List", "List maps by type", "self.OnMenuCmd", "list"),
+                ("List filtered", "List maps filtered by expressions and wildcards", "self.OnMenuCmd", "g.mlist"),
+                ("","","", ""),
+                ("Rename", "Rename maps", "self.OnMenuCmd", "g.rename"),
+                ("","","", ""),
+                ("Delete", "Delete maps", "self.OnMenuCmd", "g.remove"),
+                ("Delete filtered", "Delete maps using expressions and wildcards", "self.OnMenuCmd", "g.mremove"),
+                )),
+              ("Map type conversions", (
+                ("Raster to vector", "Convert raster to vector map", "self.OnMenuCmd", "r.to.vect"),
+                ("Raster series to volume", "Convert raster map series to volume", "self.OnMenuCmd", "r.to.rast3"),
+                ("Raster 2.5D to volume", "Convert raster 2.5D map to volume", "self.OnMenuCmd", "r.to.rast3elev"),
+                ("","","", ""),
+                ("Vector to raster", "Convert vector to raster map", "self.OnMenuCmd", "v.to.rast"),
+                ("Vector to volume", "Convert vector 3D points to volume voxels", "self.OnMenuCmd", "v.to.rast3"),
+                ("Sites to vector", "Convert sites (GRASS 5) to vector map", "self.OnMenuCmd", "v.in.sites"),
+                ("","","", ""),
+                ("Volume to raster series", "Convert raster to vector map", "self.OnMenuCmd", "r3.to.rast"),
+                )),
+              ("","","", ""),
+              ("Georectify", "Georectify raster and vector maps", "self.OnGeorectify", ""),
+              ("","","", ""),
+              ("NViz (requires TclTk)", "N-Dimensional visualization of maps and volumes", "self.OnMenuCmd", "nviz"),
+              ("","","", ""),
+              ("Bearing/distance to coordinates", "Convert between bearing/distance and coordinates", "self.OnMenuCmd", "m.cogo"),
+              ("","","", ""),
+              ("Postscript plot", "Create cartographic PostScript plot", "self.OnMenuCmd", "ps.map"),
+              ("","","", ""),
+              ("E&xit", "Exit from wxgui.py", "self.OnCloseWindow", ""),
+              )),
+          ("Config", (
+              ("Region", (
+                ("Display region", "Display region settings", "self.RunMenuCmd", "g.region -p"),
+                ("Set region", "Change region settings", "self.OnMenuCmd", "g.region"),
+              )),
+              ("GRASS working environment", (
+                ("Mapset access", "Set/unset access to other mapsets in current location", "self.OnMapsets", ""),
+                ("Change working environment", "Change current working session to new mapset, location, or data directory", "self.OnMenuCmd", "g.mapset"),
+                ("User access", "Change access by other users to current mapset", "self.OnMenuCmd", "g.access"),
+                ("Show settings", "Show current GRASS environment settings", "self.RunMenuCmd", "g.gisenv"),
+                ("Change settings", "Change GRASS environment settings", "self.OnMenuCmd", "g.gisenv"),
+                ("Version", "Show current GRASS version", "self.RunMenuCmd", "g.version -c"),
+              )),
+              ("Manage projections", (
+                ("Manage projections", "Show projection information and create projection files", "self.OnMenuCmd", "g.proj"),
+                ("Projection for current location", "Create/edit projection information for current location", "self.OnXTerm", "g.setproj"),
+                ("","","", ""),
+                ("Convert coordinates", "Convert coordinates from one projection to another", "self.OnMenuCmd", "m.proj"),
+              )),
+              ("Preferences", "User preferences (display font, etc.)", "self.OnPreferences", ""),
+              )),
+          ("Raster", (
+              ("Develop map", (
+                ("Digitize raster (requires XTerm)", "Digitize new raster map", "self.OnXTerm", "r.digit"),
+                ("","","", ""),
+                ("Compress/decompress", "Compress/decompress raster file", "self.OnMenuCmd", "r.compress"),
+                ("","","", ""),
+                ("Boundaries", "Manage boundary definition", "self.OnMenuCmd", "r.region"),
+                ("Manage NULL values", "Manage NULL values", "self.OnMenuCmd", "r.null"),
+                ("Quantization", "Quantization for floating-point maps", "self.OnMenuCmd", "r.quant"),
+                ("Timestamp", "Manage timestamp for files", "self.OnMenuCmd", "r.timestamp"),
+                ("","","", ""),
+                ("Resample using aggregate statistics", "Resample (change resolution) using aggregate statistics", "self.OnMenuCmd", "r.resamp.stats"),
+                ("Resample using multiple methods", "Resample (change resolution) using nearest neighbor, bilinear, or bicubic interpolation", "self.OnMenuCmd", "r.resamp.interp"),
+                ("Resample using nearest neighbor", "Resample (change resolution) using nearest neighbor interpolation", "self.OnMenuCmd", "r.resample"),
+                ("Resample using spline tension", "Resample (change resolution) using regularized spline tension", "self.OnMenuCmd", "r.resamp.rst"),
+                ("","","", ""),
+                ("Support file maintenance", "Support file creation and maintenance", "self.OnMenuCmd", "r.support"),
+                ("Update map statistics", "Update map statistics", "self.OnMenuCmd", "r.support.stats"),
+                ("","","", ""),
+                ("Reproject raster", "Reproject raster from other location", "self.OnMenuCmd", "r.proj"),
+                ("Tiling", "Generate tiling for other projection", "self.OnMenuCmd", "r.tileset"),
+                )),
+              ("Manage map colors", (
+                ("Color tables", "Set colors to predefined color tables", "self.OnMenuCmd", "r.colors"),
+                ("Color rules", "Set colors interactively by entering color rules", "self.RulesCmd", "r.colors"),
+                ("","","", ""),
+                ("Blend 2 color maps", "Blend 2 color maps to produce 3 RGB files", "self.OnMenuCmd", "r.blend"),
+                ("Create RGB", "Create color image from RGB files", "self.OnMenuCmd", "r.composite"),
+                ("RGB to HIS", "Create 3 RGB (red, green, blue) maps from 3 HIS (hue, intensity, saturation) maps", "self.OnMenuCmd", "r.his"),
+                )),
+              ("Query by coordinates", "Query by coordinates", "self.OnMenuCmd", "r.what"),
+              ("","","", ""),
+              ("Buffer rasters", "Create raster buffers around raster objects", "self.OnMenuCmd", "r.buffer"),
+              ("Closest points", "r.distance", "self.OnMenuCmd", "r.distance"),
+              ("MASK", "Develop raster mask", "self.OnMenuCmd", "r.mask"),
+              ("Map calculator", "Map calculator for map algebra", "self.DispMapCalculator", ""),
+              ("Neighborhood analysis", (
+                ("Moving window", "Moving window analysis of raster cells", "self.OnMenuCmd", "r.neighbors"),
+                ("Neighborhood points", "Analyze vector points in neighborhood of raster cells", "self.OnMenuCmd", "v.neighbors"),
+                )),
+              ("Overlay maps", (
+                ("Cross product", "Cross product", "self.OnMenuCmd", "r.cross"),
+                ("Map series", "Function of map series (time series)", "self.OnMenuCmd", "r.series"),
+                ("Patch raster maps", "Patch maps", "self.OnMenuCmd", "r.patch"),
+                ("","","", ""),
+                ("Statistical overlay", "Statistical calculations for cover map over base map", "self.OnMenuCmd", "r.statistics"),
+                )),
+              ("Solar radiance and shadows", (
+                ("Solar irradiance and irradiation", "Solar irradiance and daily irradiation", "self.OnMenuCmd", "r.sun"),
+                ("Shadows map", "Shadows map for sun position or date/time", "self.OnMenuCmd", "r.sunmask"),
+                )),
+              ("Terrain analysis", (
+                ("Cumulative movement costs", "Calculate cumulative movement costs between locales", "self.OnMenuCmd", "r.walk"),
+                ("Cost surface", "cost surface", "self.OnMenuCmd", "r.cost"),
+                ("Least cost route or flow", "Least cost route or flow", "self.OnMenuCmd", "r.drain"),
+                ("","","", ""),
+                ("Shaded relief", "Shaded relief map", "self.OnMenuCmd", "r.shaded.relief"),
+                ("","","", ""),
+                ("Slope and aspect", "Slope and aspect", "self.OnMenuCmd", "r.slope.aspect"),
+                ("Terrain parameters", "Terrain parameters", "self.OnMenuCmd", "r.param.scale"),
+                ("Textural features", "Textural features", "self.OnMenuCmd", "r.texture"),
+                ("","","", ""),
+                ("Visibility", "Visibility and line of sight", "self.OnMenuCmd", "r.los"),
+                )),
+              ("Transform features", (
+                ("Clump", "Clump small areas (statistics calculated by r.volume)", "self.OnMenuCmd", "r.clump"),
+                ("Grow", "Grow areas", "self.OnMenuCmd", "r.grow"),
+                ("Thin", "Thin linear features", "self.OnMenuCmd", "r.thin"),
+                )),
+              ("","","", ""),
+              ("Universal Soil Loss Equation (USLE)", (
+                ("Rainfall Erosivity (R)", "Rainfall Erosivity (R)", "self.OnMenuCmd", "r.usler"),
+                ("Soil Erodibility (K)", "Soil Erodibility (K)", "self.OnMenuCmd", "r.uslek"),
+                ("Length Slope and Slope (LS)", "Length Slope and Slope (LS)", "self.OnMenuCmd", "r.watershed"),
+                )),
+              ("Hydrologic modeling", (
+                ("CASC2D", "CASC2D hydrological model", "self.OnMenuCmd", "r.CASC2D"),
+                ("Carve stream channels", "Carve stream channels into elevation map using vector streams map", "self.OnMenuCmd", "r.carve"),
+                ("Fill lake", "Fill lake from seed point to specified level", "self.OnMenuCmd", "r.lake"),
+                ("","","", ""),
+                ("Depressionless map and flowlines", "Depressionless elevation map and flowline map", "self.OnMenuCmd", "r.fill.dir"),
+                ("Flow accumulation", "Flow accumulation for massive grids", "self.OnMenuCmd", "r.terraflow"),
+                ("Flow lines", "Generate flow lines for raster map", "self.OnMenuCmd", "r.flow"),
+                ("","","", ""),
+                ("SIMWE Overland flow modeling", "SIMWE overland flow modeling", "self.OnMenuCmd", "r.sim.water"),
+                ("SIMWE Sediment flux modeling", "SIMWE sediment erosion, transport, deposition modeling", "self.OnMenuCmd", "r.sim.sediment"),
+                ("","","", ""),
+                ("Topographic index map", "Topographic index map", "self.OnMenuCmd", "r.topidx"),
+                ("TOPMODEL simulation", "TOPMODEL simulation", "self.OnMenuCmd", "r.topmodel"),
+                ("","","", ""),
+                ("Watershed subbasins", "Watershed subbasins", "self.OnMenuCmd", "r.basins.fill"),
+                ("Watershed analysis", "Watershed analysis", "self.OnMenuCmd", "r.watershed"),
+                ("Watershed basin creation", "Watershed basin creation", "self.OnMenuCmd", "r.water.outlet"),
+                )),
+              ("Landscape structure modeling", (
+                ("Set up (requires XTerm)", "Set up sampling and analysis framework", "self.OnXTerm", "r.le.setup"),
+                ("","","", ""),
+                ("Analyze landscape", "Analyze landscape characteristics", "self.OnMenuCmd", "r.le.pixel"),
+                ("Analyze patches", "Analyze landscape patch characteristics", "self.OnMenuCmd", "r.le.patch"),
+                ("Output", "Output landscape patch information", "self.OnMenuCmd", "r.le.trace"),
+                )),
+              ("Landscape patch analysis", (
+                ("Set up sampling and analysis framework", "Configure and create patch map for analysis", "self.OnMenuCmd", "r.li.setup"),
+                ("","","", ""),
+                ("Edge density", "Calculate edge density index using a 4 neighbour algorithm", "self.OnMenuCmd", "r.li.edgedensity"),
+                ("Contrast weighted edge density", "Calculate contrast weighted edge density index", "self.OnMenuCmd", "r.li.cwed"),
+                ("","","", ""),
+                ("Patch area mean", "Calculate mean patch size index using a 4 neighbour algorithm", "self.OnMenuCmd", "r.li.mps"),
+                ("Patch area range", "Calculate range of patch area size", "self.OnMenuCmd", "r.li.padrange"),
+                ("Patch area Std Dev", "Calculate standard deviation of patch area", "self.OnMenuCmd", "r.li.padsd"),
+                ("Patch area Coeff Var", "Calculate coefficient of variation of patch area", "self.OnMenuCmd", "r.li.padcv"),
+                ("Patch density", "Calculate patch density index using a 4 neighbour algorithm", "self.OnMenuCmd", "r.li.patchdensity"),
+                ("Patch number", "Calculate patch number index using a 4 neighbour algorithm", "self.OnMenuCmd", "r.li.patchnum"),
+                ("","","", ""),
+                ("Dominance's diversity", "Calculate Dominance's diversity index", "self.OnMenuCmd", "r.li.dominance"),
+                ("Shannon's diversity", "Calculate Shannon's diversity index", "self.OnMenuCmd", "r.li.shannon"),
+                ("Simpson's diversity", "Calculate Simpson's diversity index", "self.OnMenuCmd", "r.li.simpson"),
+                ("","","", ""),
+                ("Richness", "Calculate richness index", "self.OnMenuCmd", "r.li.richness"),
+                ("Shape index", "Calculate shape index", "self.OnMenuCmd", "r.li.shape"),
+                )),
+              ("Wildfire modeling", (
+                ("Rate of spread", "Generate rate of spread (ROS) maps", "self.OnMenuCmd", "r.ros"),
+                ("Least-cost spread paths", "Generate least-cost spread paths", "self.OnMenuCmd", "r.spreadpath"),
+                ("Anisotropic spread simulation", "Simulate anisotropic spread phenomena", "self.OnMenuCmd", "r.spread"),
+                )),
+              ("","","", ""),
+              ("Change category values and labels", (
+                ("Interactively edit category values", "Edit category values of individual cells for displayed raster map", "self.OnMenuCmd", "d.rast.edit"),
+                ("","","", ""),
+                ("Reclassify by size", "Reclassify categories for areas of specified sizes", "self.OnMenuCmd", "r.reclass.area"),
+                ("Reclassify interactively", "Reclassify categories interactively by entering reclass rules", "self.RulesCmd", "r.reclass"),
+                ("Reclassify using rules file", "Reclassify categories by inputting reclass rules from a text file", "self.OnMenuCmd", "r.reclass"),
+                ("","","", ""),
+                ("Recode interactively", "Recode categories interactively by entering recode rules (create new map)", "self.RulesCmd", "r.recode"),
+                ("Recode using rules file", "Recode categories by inputting recode rules from a text file (create new map)", "self.OnMenuCmd", "r.recode.file"),
+                ("","","", ""),
+                ("Rescale", "Rescale categories (create new map)", "self.OnMenuCmd", "r.rescale"),
+                ("Rescale with histogram", "Rescale categories with equalized histogram (create new map)", "self.OnMenuCmd", "r.rescale.eq"),
+                )),
+              ("","","", ""),
+              ("Concentric circles", "Generate concentric circles around points", "self.OnMenuCmd", "r.circle"),
+              ("Generate random cells", (
+                ("Random cells", "Generate random cells", "self.OnMenuCmd", "r.random.cells"),
+                ("Random cells and vector points ", "Generate random cells and vector points from raster map", "self.OnMenuCmd", "r.random"),
+                )),
+              ("Generate surfaces", (
+                ("Fractal surface", "Generate fractal surface", "self.OnMenuCmd", "r.surf.fractal"),
+                ("","","", ""),
+                ("Gaussian kernel density surface", "Generate density surface using moving Gaussian kernel", "self.OnMenuCmd", "v.kernel"),
+                ("Gaussian deviates surface", "Generate gaussian deviates surface", "self.OnMenuCmd", "r.surf.gauss"),
+                ("","","", ""),
+                ("Plane", "Generate plane", "self.OnMenuCmd", "r.plane"),
+                ("","","", ""),
+                ("Random deviates surface", "Generate random deviates surface", "self.OnMenuCmd", "r.surf.random"),
+                ("Random surface with spatial dependence", "Generate random surface with spatial dependence", "self.OnMenuCmd", "r.random.surface"),
+                )),
+              ("Generate contour lines", "Generate vector contour lines", "self.OnMenuCmd", "r.contour"),
+              ("Interpolate surfaces", (
+                ("Bilinear from raster points", "Bilinear interpolation from raster points", "self.OnMenuCmd", "r.bilinear"),
+                ("Bilinear and bicubic from vector points", "Bicubic and bilinear interpolation with Tykhonov regularization from vector points", "self.OnMenuCmd", "v.surf.bspline"),
+                ("","","", ""),
+                ("IDW from raster points", "Inverse distance weighted interpolation from raster points", "self.OnMenuCmd", "r.surf.idw"),
+                ("IDW from vector points", "Inverse distance weighted interpolation from vector points", "self.OnMenuCmd", "v.surf.idw"),
+                ("","","", ""),
+                ("Raster contours", "Interpolation from raster contour", "self.OnMenuCmd", "r.surf.contour"),
+                ("Regularized spline tension ", "Regularized spline tension interpolation from vector points or contours", "self.OnMenuCmd", "v.surf.rst"),
+                ("","","", ""),
+                ("Fill NULL cells", "Fill NULL cells by interpolation using regularized spline tension", "self.OnMenuCmd", "r.fillnulls"),
+                )),
+              ("","","", ""),
+              ("Report and statistics", (
+                ("Basic raster information", "Report basic file information", "self.OnMenuCmd", "r.info"),
+                ("Manage category information", "Manage category labels and values", "self.OnMenuCmd", "r.category"),
+                ("","","", ""),
+                ("General statistics", "General statistics", "self.OnMenuCmd", "r.stats"),
+                ("Range of category values", "Range of all category values", "self.OnMenuCmd", "r.describe"),
+                ("Sum cell category values", "Sum all cell category values", "self.OnMenuCmd", "r.sum"),
+                ("Sum area by map and category", "Sum area by map and category", "self.OnMenuCmd", "r.report"),
+                ("Statistics for clumped cells", "Summary statistics for clumped cells (work with r.clump)", "self.OnMenuCmd", "r.volume"),
+                ("Total corrected area", "Total surface area corrected for topography", "self.OnMenuCmd", "r.surf.area"),
+                ("Univariate raster statistics", "Calculate univariate statistics for raster categories", "self.OnMenuCmd", "r.univar"),
+                ("","","", ""),
+                ("Sample transects", "Sample values along transects", "self.OnMenuCmd", "r.profile"),
+                ("Sample transects (bearing/distance)", "Sample values along transects (use azimuth, distance)", "self.OnMenuCmd", "r.transect"),
+                ("","","", ""),
+                ("Covariance/correlation", "Covariance/correlation", "self.OnMenuCmd", "r.covar"),
+                ("Linear regression", "Linear regression between 2 maps", "self.OnMenuCmd", "r.regression.line"),
+                ("Mutual category occurrences", "Mutual category occurrences (coincidence)", "self.OnMenuCmd", "r.coin"),
+                )),
+              )),
+          ("Vector", (
+              ("Develop vector map", (
+                ("Create empty vector map", "Create new empty vector map", "self.OnMenuCmd", "v.edit tool=create"),
+                ("Digitize vector map", "Digitize/edit vector map", "self.OnMenuCmd", "v.digit"),
+                ("","","", ""),
+                ("Create/rebuild topology", "Create or rebuild topology of vector objects", "self.OnMenuCmd", "v.build"),
+                ("Clean vector map", "Clean vector objects", "self.OnMenuCmd", "v.clean"),
+                ("Generalization", "Smooth, simplify, displace, or generalize a vector map", "self.OnMenuCmd", "v.generalize"),
+                ("","","", ""),
+                ("Convert object types", "Convert vector objects from one feature type to another", "self.OnMenuCmd", "v.type.sh"),
+                ("","","", ""),
+                ("Add centroids", "Add centroids to closed boundaries to create areas", "self.OnMenuCmd", "v.centroids"),
+                ("","","", ""),
+                ("Build polylines", "Build polylines from adjacent segments", "self.OnMenuCmd", "v.build.polylines"),
+                ("Split polylines", "Split polylines into points and segments", "self.OnMenuCmd", "v.segment"),
+                ("Parallel lines", "Create lines parallel to existing lines", "self.OnMenuCmd", "v.parallel"),
+                ("","","", ""),
+                ("Dissolve boundaries", "Dissolve common boundaries of areas", "self.OnMenuCmd", "v.dissolve"),
+                ("","","", ""),
+                ("Create 3D vector map over raster", "Create 3D objects by sampling raster with 2D vector", "self.OnMenuCmd", "v.drape"),
+                ("Extrude 3D vector map", "Extrude 3D objects from 2D vector", "self.OnMenuCmd", "v.extrude"),
+                ("","","", ""),
+                ("Link to OGR", "Create new vector as link to external OGR layer", "self.OnMenuCmd", "v.external"),
+                ("","","", ""),
+                ("Create labels", "Create text label file for vector features", "self.OnMenuCmd", "v.label"),
+                ("","","", ""),
+                ("Reposition vector map", "Reposition (shift, rotate, skew) vector file in coordinate space", "self.OnMenuCmd", "v.transform"),
+                ("Reproject vector map", "Reproject vector from other location", "self.OnMenuCmd", "v.proj"),
+                )),
+              ("","","", ""),
+              ("Query with attributes", "Query vector objects by attribute values", "self.OnMenuCmd", "v.extract"),
+              ("Query with coordinate(s)", "Query vector objects by coordinate(s)", "self.OnMenuCmd", "v.what"),
+              ("Query with another vector map", "Query objects using objects from a second map", "self.OnMenuCmd", "v.select"),
+              ("","","", ""),
+              ("Buffer vectors", "Create vector buffers around vector objects", "self.OnMenuCmd", "v.buffer"),
+              ("Lidar analysis", (
+                ("Detect edges", "Detect object edges in Lidar data", "self.OnMenuCmd", "v.lidar.edgedetection"),
+                ("Detect interiors", "Detect interiors of objects in Lidar data", "self.OnMenuCmd", "v.lidar.growing"),
+                ("Correct and reclassify objects", "Correct and reclassify objects detected in Lidar data", "self.OnMenuCmd", "v.lidar.correction"),
+                )),
+              ("Linear referencing", (
+                ("Create LRS", "Create linear reference system", "self.OnMenuCmd", "v.lrs.create"),
+                ("Create stationing", "Create stationing from input lines, and linear reference system", "self.OnMenuCmd", "v.lrs.label"),
+                ("Create points/segments", "Create points/segments from input lines, linear reference system and positions read from stdin", "self.OnMenuCmd", "v.lrs.segment"),
+                ("Find line id and offset", "Find line id and real km+offset for given points in vector map using linear reference system", "self.OnMenuCmd", "v.lrs.where"),
+                )),
+              ("Nearest features", "Locate nearest feature to points or centroids", "self.OnMenuCmd", "v.distance"),
+              ("Network analysis", (
+                ("Allocate subnets", "Allocate subnets for nearest centers", "self.OnMenuCmd", "v.net.alloc"),
+                ("Network maintenance", "Network maintenance", "self.OnMenuCmd", "v.net"),
+                ("Visibility network", "Create and maintain a visibility network", "self.OnMenuCmd", "v.net.visibility"),
+                ("Shortest route", "Calculate shortest route along network between 2 nodes", "self.OnMenuCmd", "v.net.path"),
+                ("Display shortest route (requires XTerm)", " Display shortest route along network between 2 nodes (visualization only)", "self.OnXTerm", "d.path"),
+                ("Split net", "Split net into bands between cost isolines", "self.OnMenuCmd", "v.net.iso"),
+                ("Steiner tree", "Create Steiner tree for network and given terminals", "self.OnMenuCmd", "v.net.steiner"),
+                ("Traveling salesman analysis", "Calculate shortest route connecting given set of nodes (Traveling salesman analysis)", "self.OnMenuCmd", "v.net.salesman"),
+                )),
+              ("Overlay vector maps", (
+                ("Overlay vector maps", "Boolean overlay of 2 vector maps", "self.OnMenuCmd", "v.overlay"),
+                ("Patch vector maps", "Patch/combine multiple maps (Boolean OR)", "self.OnMenuCmd", "v.patch"),
+                )),
+              ("","","", ""),
+              ("Change attributes", (
+                ("Manage or report categories", "Attach/delete, or report categories", "self.OnMenuCmd", "v.category"),
+                ("Reclassify objects interactively", "Reclassify vector objects interactively by entering SQL rules", "self.RulesCmd", "v.reclass"),
+                ("Reclassify objects using rules file", "Reclassify vector objects by inputting SQL rules from a text file", "self.OnMenuCmd", "v.reclass"),
+                )),
+              ("","","", ""),
+              ("Generate area for current region", "Generate area object for extent of current region", "self.OnMenuCmd", "v.in.region"),
+              ("Generate areas from points", (
+                  ("Convex hull", "Generate convex hull for point set", "self.OnMenuCmd", "v.hull"),
+                  ("Delaunay triangles", "Generate Delaunay triangles for point set", "self.OnMenuCmd", "v.delaunay"),
+                  ("Voronoi diagram/Thiessen polygons", "Generate Voronoi diagram/Thiessen polygons for point set", "self.OnMenuCmd", "v.voronoi"),
                   )),
+              ("Generate grid", "Generate rectangular vector grid", "self.OnMenuCmd", "v.mkgrid"),
+              ("Generate points", (
+                  ("Generate from database", "Generate points from database with x/y coordinates", "self.OnMenuCmd", "v.in.db"),
+                  ("Generate points along lines", "Generate points along vector lines/boundaries", "self.OnMenuCmd", "v.to.points"),
+                  ("Generate random points", "Generate random points", "self.OnMenuCmd", "v.random"),
+                  ("Perturb points", "Random perturbations of point locations", "self.OnMenuCmd", "v.perturb"),
+                  )),
               ("","","", ""),
+              ("Remove outliers in point sets", "Remove outliers from vector point set", "self.OnMenuCmd", "v.outlier"),
+              ("Test/training point sets", "Partition points into test/training sets for k-fold cross validation", "self.OnMenuCmd", "v.kcv"),
+              ("","","", ""),
+              ("Update area attributes from raster", "Update area attribute data from univariate statistics on raster map", "self.OnMenuCmd", "v.rast.stats"),
+              ("Update point attributes from areas", "Update point attribute data from vector area map", "self.OnMenuCmd", "v.what.vect"),
+              ("Update point attributes from raster", (
+                  ("Sample raster maps at point locations", "Sample raster maps at point locations", "self.OnMenuCmd", "v.what.rast"),
+                  ("Sample raster neighborhood around points", "Sample raster neighborhood around points", "self.OnMenuCmd", "v.sample"),
+                  )),
+              ("","","", ""),
+              ("Reports and statistics", (
+                ("Basic vector information", "Basic vector information", "self.OnMenuCmd", "v.info"),
+                ("","","", ""),
+                ("Report topology by category", "Report areas for vector attribute categories", "self.OnMenuCmd", "v.report"),
+                ("Upload or report topology", "Update database fields or create reports from vector topology", "self.OnMenuCmd", "v.to.db"),
+                ("","","", ""),
+                ("Univariate attribute statistics", "Calculate univariate statistics for vector attributes", "self.OnMenuCmd", "v.univar"),
+                ("","","", ""),
+                ("Quadrat indices", "Indices of point counts in quadrats", "self.OnMenuCmd", "v.qcount"),
+                ("Test normality", "Test normality of point distribution", "self.OnMenuCmd", "v.normal"),
+                )),
+              )),
+          ("Imagery", (
+              ("Develop images and groups", (
+                ("Create/edit group", "Create/edit imagery group", "self.OnMenuCmd", "i.group"),
+                ("Target group", "Target imagery group", "self.OnMenuCmd", "i.target"),
+                ("","","", ""),
+                ("Mosaic images", "Mosaic up to 4 adjacent images", "self.OnMenuCmd", "i.image.mosaic"),
+                )),
+              ("Manage image colors", (
+                ("Color balance for RGB", "Color balance and enhance color tables of multiband imagery for rgb display", "self.OnMenuCmd", "i.landsat.rgb"),
+                ("HIS to RGB", "Transform HIS (Hue/Intensity/Saturation) color image to RGB (Red/Green/Blue)", "self.OnMenuCmd", "i.his.rgb"),
+                ("RGB to HIS", "Transform RGB (Red/Green/Blue) color image to HIS (Hue/Intensity/Saturation)", "self.OnMenuCmd", "i.rgb.his"),
+                )),
+              ("Rectify image or raster", "Rectifies raster using information in previously created POINTS file", "self.OnMenuCmd", "i.rectify"),
+              ("Ortho photo rectification (requires Xterm)", "Ortho Photo rectification", "self.OnXTerm", "i.ortho.photo"),
+              ("","","", ""),
+              ("Brovey sharpening", "Brovey transformation and pan sharpening", "self.OnMenuCmd", "i.fusion.brovey"),
+              ("Classify image", (
+                ("Clustering input for unsupervised classification", "Clustering input for unsupervised classification", "self.OnMenuCmd", "i.cluster"),
+                ("","","", ""),
+                ("Maximum likelihood classification (MLC)", "Maximum likelihood Classification", "self.OnMenuCmd", "i.maxlik"),
+                ("Sequential maximum a posteriori classification (SMAP)", "Sequential maximum a posteriori classification (SMAP)", "self.OnMenuCmd", "i.smap"),
+                ("","","", ""),
+                ("Interactive input for supervised classification (requires Xterm)", "Interactive input for supervised classification", "self.OnXTerm", "i.class"),
+                ("Input for supervised MLC", "Non-interactive input for supervised classification (MLC)", "self.OnMenuCmd", "i.gensig"),
+                ("Input for supervised SMAP", "Non-interactive input for supervised classification (SMAP)", "self.OnMenuCmd", "i.gensigset"),
+                )),
+              ("","","", ""),
               ("RS Pre-Processing (DN->Rad->Ref)", (
@@ -322,6 +502,7 @@
                 ("Emissivity (generic from NDVI)", "Emissivity (generic from NDVI)", "self.RunMenuCmd", "i.emissivity"),
                 ("","","", ""),
                 ("Latitude map", "Latitude map", "self.RunMenuCmd", "i.latitude"),
+                ("Longitude map", "Longitude map", "self.RunMenuCmd", "i.longitude"),
                 ("Sunshine hours (potential)", "Sunshine hours (potential)", "self.RunMenuCmd", "i.sunhours"), 
                 ("Satellite overpass time", "Satellite overpass time", "self.RunMenuCmd", "i.sattime"),
                 )),
@@ -354,6 +535,7 @@
                   ("Soil heat flux", "soil heat flux", "self.RunMenuCmd", "i.eb.g0"),
                   ("Sensible heat flux", "sensible heat flux", "self.RunMenuCmd", "i.eb.h0"),
                   ("Sensible heat flux iteration (fixed delta T)", "sensible heat flux iteration (fixed delta T)", "self.RunMenuCmd", "i.eb.h_iter"),
+                  ("Sensible heat flux iteration (SEBAL95)", "sensible heat flux iteration (SEBAL95)", "self.RunMenuCmd", "i.eb.h_SEBAL95"),
                   ("","","", ""),
                   ("Evaporative fraction", "evaporative fraction", "self.RunMenuCmd", "i.eb.evapfr"),
                   )),
@@ -361,42 +543,76 @@
                 ("Biomass growth", "Biomass growth", "self.RunMenuCmd", "i.biomass"),
                 )),
               ("","","", ""),
-	    ("Filter image", (
-		("Zero edge crossing detection", "Zero edge crossing detection", "self.runMenuCmd", "i.zc"),
-		("User defined matrix/convolving filter", "User defined matrix/convolving filter", "self.runMenuCmd", "r.mfilter"),
-		)),
-	    ("Spectral response", "Spectral response", "self.runMenuCmd", "i.spectral"),
-	    ("Tasseled cap vegetation index", "Tasseled cap vegetation index", "self.runMenuCmd", "i.tasscap"),
-	    ("Transform image", (
-	        ("Brovey transformation and pan sharpening", "Brovey transformation and pan sharpening", "self.runMenuCmd", "i.fusion.brovey"),
+              ("Filter image", (
+                ("Edge detection", "Zero edge crossing detection", "self.OnMenuCmd", "i.zc"),
+                ("Matrix/convolving filter", "User defined matrix/convolving filter", "self.OnMenuCmd", "r.mfilter"),
+                )),
+              ("Histogram image", "Histogram image", "self.DispHistogram", ""),
+              ("Spectral response", "Spectral response", "self.OnMenuCmd", "i.spectral"),
+              ("Tasseled cap vegetation index", "Tasseled cap vegetation index", "self.OnMenuCmd", "i.tasscap"),
+              ("Transform image", (
+                ("Canonical correlation", "Canonical correlation (discriminant analysis)", "self.OnMenuCmd", "i.cca"),
+                ("Principal components", "Principal components analysis", "self.OnMenuCmd", "i.pca"),
+                ("Fast Fourier", "Fast Fourier Transform", "self.OnMenuCmd", "i.fft"),
+                ("Inverse Fast Fourier", "Inverse Fast Fourier Transform", "self.OnMenuCmd", "i.ifft"),
+                )),
+              ("","","", ""),
+              ("Report and statistics", (
+                ("Bit pattern comparison ", "Bit pattern comparison for ID of low quality pixels", "self.OnMenuCmd", "r.bitpattern"),
+                ("Kappa analysis", "Kappa classification accuracy assessment", "self.OnMenuCmd", "r.kappa"),
+                ("OIF for LandSat TM", "Optimum index factor for LandSat TM", "self.OnMenuCmd", "i.oif"),
+                )),
+              )),
+          ("Volumes", (
+              ("Develop grid3D volumes", (
+                ("Manage 3d NULL values", "Manage NULL values for grid3D volume", "self.OnMenuCmd", "r3.null"),
+                ("Manage timestamp", "Manage timestamp for grid3D volume", "self.OnMenuCmd", "r3.timestamp"),
+                )),
+              ("","","", ""),
+              ("3D MASK", "Create 3D mask for grid3D operations", "self.OnMenuCmd", "r3.mask"),
+              ("3D map calculator", "Map calculator for volumetric map algebra", "self.Disp3DMapCalculator", ""),
+              ("Cross section", "Create 2D raster cross section from grid3d volume", "self.OnMenuCmd", "r3.cross.rast"),
+              ("Interpolate volume from points", "Interpolate volume from vector points using splines", "self.OnMenuCmd", "v.vol.rst"),
+              ("","","", ""),
+              ("Report and Statistics", (
+                ("Basic volume information", "Report basic information about grid3D volume", "self.OnMenuCmd", "r3.info"),
+                )),
+              )),
+          ("Database", (
+              ("Database information", (
+                ("Describe table", "Describe table structure and attributes", "self.OnMenuCmd", "db.describe"),
+                ("List columns", "List columns for selected table", "self.OnMenuCmd", "db.columns"),
+                ("List drivers", "List available database drivers", "self.OnMenuCmd", "db.drivers"),
+                ("List tables", "List tables in database", "self.OnMenuCmd", "db.tables"),
+                )),
+              ("","","", ""),
+              ("Manage databases", (
+                ("Connect", "Connect to database", "self.OnMenuCmd", "db.connect"),
+                ("Login", "Login to database", "self.OnMenuCmd", "db.login"),
                 ("","","", ""),
-		("Canonical component", "Canonical component", "self.runMenuCmd", "i.cca"),
-		("Principal component", "Principal component", "self.runMenuCmd", "i.pca"),
-		("Fast Fourier Transform", "Fast Fourier Transform", "self.runMenuCmd", "i.fft"),
-		("Inverse Fast Fourier Transform", "Inverse Fast Fourier Transform", "self.runMenuCmd", "i.ifft"),
-		)),
-	    ("","","", ""),
-	    ("Report and statistics", (
-		("Report basic file information", "Report basic file information", "self.runMenuCmd", "r.info"),
-		("Range of image values", "Range of image values", "self.runMenuCmd", "r.describe"),
-		("","","", ""),
-		("Bit pattern comparison for ID of low quality pixels", "Bit pattern comparison for ID of low quality pixels", "self.runMenuCmd", "r.bitpattern"),
-		("Kappa classification accuracy assessment", "Kappa classification accuracy assessment", "self.runMenuCmd", "r.kappa"),
-		("Optimum index factor for LandSat TM", "Optimum index factor for LandSat TM", "self.runMenuCmd", "i.oif"),
-		)),
-	    ("","","", "")
-	    )),
-	("Database", (
-	    ("Query", "Query database", "self.Nomethod", ""),
-	    ("","","", "")
-	    )))]
-
-
-
-
-
-
-
-
-
-
+                ("Copy table", "Copy attribute table", "self.OnMenuCmd", "db.copy"),
+                ("New table", "Create and connect new attribute table to vector map", "self.OnMenuCmd", "v.db.addtable"),
+                ("Remove table", "Remove existing attribute table for vector map", "self.OnMenuCmd", "db.login"),
+                ("","","", ""),
+                ("Add columns", "Add columns to table", "self.OnMenuCmd", "v.db.addcol"),
+                ("Change values", "Change values in a column", "self.OnMenuCmd", "v.db.update"),
+                ("Rename column", "Rename a column", "self.OnMenuCmd", "v.db.renamecol"),
+                ("","","", ""),
+                ("Test", "Test database", "self.OnMenuCmd", "db.test"),
+                )),
+              ("Query", (
+                ("Query any table", "Query data in any table", "self.OnMenuCmd", "db.select"),
+                ("Query vector attribute table", "Query vector attribute data", "self.OnMenuCmd", "v.db.select"),
+                ("SQL statement", "Execute SQL statement", "self.OnMenuCmd", "db.execute"),
+                )),
+              ("","","", ""),
+              ("Vector<->database connections", (
+                ("Reconnect vector to database", "Reconnect vector map to attribute database", "self.OnMenuCmd", "v.db.reconnect.all"),
+                ("Set vector - database connection", "Set database connection for vector attributes", "self.OnMenuCmd", "v.db.connect"),
+                )),
+              )),
+          ("Help", (
+              ("GRASS GIS help", "GRASS GIS Reference Manual", "self.RunMenuCmd", "g.manual -i"),
+              ("GRASS GIS GUI help", "GUI-related Reference Manual", "self.RunMenuCmd", "g.manual wxGUI"),
+              ("About GRASS GIS", "About GRASS GIS", "self.OnAboutGRASS", ""),
+              )))]



More information about the grass-commit mailing list