[GRASS-SVN] r30994 - grass/trunk/raster/r.walk

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Apr 14 20:24:43 EDT 2008


Author: hamish
Date: 2008-04-14 20:24:43 -0400 (Mon, 14 Apr 2008)
New Revision: 30994

Modified:
   grass/trunk/raster/r.walk/main.c
Log:
don't abuse key_desc; set a default lambda of 1.0 (** is that appropriate?? **)

Modified: grass/trunk/raster/r.walk/main.c
===================================================================
--- grass/trunk/raster/r.walk/main.c	2008-04-15 00:16:09 UTC (rev 30993)
+++ grass/trunk/raster/r.walk/main.c	2008-04-15 00:24:43 UTC (rev 30994)
@@ -233,7 +233,6 @@
     opt5 = G_define_option();
     opt5->key = "max_cost";
     opt5->type = TYPE_INTEGER;
-    opt5->key_desc = "cost";
     opt5->required = NO;
     opt5->multiple = NO;
     opt5->answer = "0";
@@ -242,7 +241,6 @@
     opt6 = G_define_option();
     opt6->key = "null_cost";
     opt6->type = TYPE_DOUBLE;
-    opt6->key_desc = "null cost";
     opt6->required = NO;
     opt6->multiple = NO;
     opt6->description =
@@ -251,7 +249,6 @@
     opt9 = G_define_option();
     opt9->key = "percent_memory";
     opt9->type = TYPE_INTEGER;
-    opt9->key_desc = "percent memory";
     opt9->required = NO;
     opt9->multiple = NO;
     opt9->answer = "100";
@@ -260,7 +257,6 @@
     opt14 = G_define_option();
     opt14->key = "nseg";
     opt14->type = TYPE_INTEGER;
-    opt14->key_desc = "nseg";
     opt14->required = NO;
     opt14->multiple = NO;
     opt14->answer = "4";
@@ -279,16 +275,15 @@
     opt11 = G_define_option();
     opt11->key = "lambda";
     opt11->type = TYPE_DOUBLE;
-    opt11->key_desc = "lambda";
-    opt11->required = YES;
+    opt11->required = NO;
     opt11->multiple = NO;
+    opt11->answer = "1.0";
     opt11->description =
 	_("Lambda coefficients for combining walking energy and friction cost");
 
     opt13 = G_define_option();
     opt13->key = "slope_factor";
     opt13->type = TYPE_DOUBLE;
-    opt13->key_desc = "slope_factor";
     opt13->required = NO;
     opt13->multiple = NO;
     opt13->answer = "-0.2125";



More information about the grass-commit mailing list