[GRASS-CVS] hamish: grass6/raster/r.coin cmd_parms.c,2.7,2.8

grass at intevation.de grass at intevation.de
Fri Nov 16 04:24:36 EST 2007


Author: hamish

Update of /grassrepository/grass6/raster/r.coin
In directory doto:/tmp/cvs-serv29411

Modified Files:
	cmd_parms.c 
Log Message:
explain unit codes


Index: cmd_parms.c
===================================================================
RCS file: /grassrepository/grass6/raster/r.coin/cmd_parms.c,v
retrieving revision 2.7
retrieving revision 2.8
diff -u -d -r2.7 -r2.8
--- cmd_parms.c	14 Oct 2006 16:55:57 -0000	2.7
+++ cmd_parms.c	16 Nov 2007 09:24:34 -0000	2.8
@@ -38,31 +38,34 @@
     /* please, remove before GRASS 7 released */
     struct Flag *q_flag;
 
-	module = G_define_module();
-	module->keywords = _("raster");
+    module = G_define_module();
+    module->keywords = _("raster");
     module->description =
-			_("Tabulates the mutual occurrence (coincidence) "
-			"of categories for two raster map layers.");
+	_("Tabulates the mutual occurrence (coincidence) "
+	  "of categories for two raster map layers.");
 
     parm.map1 = G_define_option();
-    parm.map1->key = "map1";
-    parm.map1->required = YES;
-    parm.map1->type = TYPE_STRING;
-	parm.map1->gisprompt  = "old,cell,raster" ;
+    parm.map1->key         = "map1";
+    parm.map1->required    = YES;
+    parm.map1->type        = TYPE_STRING;
+    parm.map1->gisprompt   = "old,cell,raster" ;
     parm.map1->description = _("Name of first raster map");
 
     parm.map2 = G_define_option();
-    parm.map2->key = "map2";
-    parm.map2->required = YES;
-    parm.map2->type = TYPE_STRING;
-	parm.map2->gisprompt  = "old,cell,raster" ;
+    parm.map2->key         = "map2";
+    parm.map2->required    = YES;
+    parm.map2->type        = TYPE_STRING;
+    parm.map2->gisprompt   = "old,cell,raster" ;
     parm.map2->description = _("Name of second raster map");
 
     parm.units = G_define_option();
-    parm.units->key = "units";
+    parm.units->key   = "units";
     parm.units->required = YES;
-    parm.units->type = TYPE_STRING;
-    parm.units->description = _("Unit of measure");
+    parm.units->type  = TYPE_STRING;
+    parm.units->label = _("Unit of measure");
+    parm.units->description = _("c(ells), p(ercent), x(percent of category [column]), "
+	"y(percent of category [row]), a(cres), h(ectares), "
+	"k(square kilometers), m(square miles)");
     parm.units->options = "c,p,x,y,a,h,k,m";
 
     flag.w = G_define_flag();




More information about the grass-commit mailing list