[GRASS-SVN] r44486 - grass/branches/develbranch_6/imagery/i.pca

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Nov 29 15:18:22 EST 2010


Author: martinl
Date: 2010-11-29 12:18:22 -0800 (Mon, 29 Nov 2010)
New Revision: 44486

Modified:
   grass/branches/develbranch_6/imagery/i.pca/main.c
Log:
i.pca: output->output_prefix


Modified: grass/branches/develbranch_6/imagery/i.pca/main.c
===================================================================
--- grass/branches/develbranch_6/imagery/i.pca/main.c	2010-11-29 17:36:14 UTC (rev 44485)
+++ grass/branches/develbranch_6/imagery/i.pca/main.c	2010-11-29 20:18:22 UTC (rev 44486)
@@ -61,17 +61,21 @@
 
     module = G_define_module();
     module->keywords = _("imagery, image transformation, PCA");
-    module->description = _("Principal components analysis (pca) program "
+    module->description = _("Principal components analysis (PCA) "
 			    "for image processing.");
 
     /* Define options */
     opt_in = G_define_standard_option(G_OPT_R_INPUTS);
     opt_in->description = _("Name of two or more input raster maps");
 
-    opt_out = G_define_standard_option(G_OPT_R_OUTPUT);
+    opt_out = G_define_option();
     opt_out->label = _("Base name for output raster maps");
     opt_out->description =
 	_("A numerical suffix will be added for each component map");
+    opt_out->key = "output_prefix";
+    opt_out->type = TYPE_STRING;
+    opt_out->key_desc = "string";
+    opt_out->required = YES;
 
     opt_scale = G_define_option();
     opt_scale->key = "rescale";
@@ -79,9 +83,12 @@
     opt_scale->key_desc = "min,max";
     opt_scale->required = NO;
     opt_scale->answer = "0,255";
+    opt_scale->label =
+	_("Rescaling range for output maps");
     opt_scale->description =
-	_("Rescaling range for output maps (for no rescaling use 0,0)");
-
+	_("For no rescaling use 0,0");
+    opt_scale->guisection = _("Rescale");
+    
     if (G_parser(argc, argv))
 	exit(EXIT_FAILURE);
 



More information about the grass-commit mailing list