浏览代码

i.pca: output->output_prefix
(merge https://trac.osgeo.org/grass/changeset/44486 from devbr6)


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@44488 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa 14 年之前
父节点
当前提交
9a143746ea
共有 1 个文件被更改,包括 11 次插入4 次删除
  1. 11 4
      imagery/i.pca/main.c

+ 11 - 4
imagery/i.pca/main.c

@@ -64,17 +64,21 @@ int main(int argc, char *argv[])
     G_add_keyword(_("imagery"));
     G_add_keyword(_("imagery"));
     G_add_keyword(_("image transformation"));
     G_add_keyword(_("image transformation"));
     G_add_keyword(_("PCA"));
     G_add_keyword(_("PCA"));
-    module->description = _("Principal components analysis (pca) program "
+    module->description = _("Principal components analysis (PCA) "
 			    "for image processing.");
 			    "for image processing.");
 
 
     /* Define options */
     /* Define options */
     opt_in = G_define_standard_option(G_OPT_R_INPUTS);
     opt_in = G_define_standard_option(G_OPT_R_INPUTS);
     opt_in->description = _("Name of two or more input raster maps");
     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->label = _("Base name for output raster maps");
     opt_out->description =
     opt_out->description =
 	_("A numerical suffix will be added for each component map");
 	_("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 = G_define_option();
     opt_scale->key = "rescale";
     opt_scale->key = "rescale";
@@ -82,9 +86,12 @@ int main(int argc, char *argv[])
     opt_scale->key_desc = "min,max";
     opt_scale->key_desc = "min,max";
     opt_scale->required = NO;
     opt_scale->required = NO;
     opt_scale->answer = "0,255";
     opt_scale->answer = "0,255";
+    opt_scale->label =
+	_("Rescaling range for output maps");
     opt_scale->description =
     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))
     if (G_parser(argc, argv))
 	exit(EXIT_FAILURE);
 	exit(EXIT_FAILURE);