- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
grass/branches/releasebranch_7_2/raster/r.in.xyz/main.c
r70188 r70291 165 165 _("Creates a raster map from an assemblage of many coordinates using univariate statistics."); 166 166 167 input_opt = G_define_standard_option(G_OPT_F_ INPUT);167 input_opt = G_define_standard_option(G_OPT_F_BIN_INPUT); 168 168 input_opt->description = 169 169 _("ASCII file containing input data (or \"-\" to read from stdin)"); 170 170 171 171 output_opt = G_define_standard_option(G_OPT_R_OUTPUT); 172 172 173 173 method_opt = G_define_option(); 174 174 method_opt->key = "method"; … … 180 180 method_opt->answer = "mean"; 181 181 method_opt->guisection = _("Statistic"); 182 183 type_opt = G_define_standard_option(G_OPT_R_TYPE); 184 type_opt->required = NO; 185 type_opt->answer = "FCELL"; 182 G_asprintf((char **)&(method_opt->descriptions), 183 "n;%s;" 184 "min;%s;" 185 "max;%s;" 186 "range;%s;" 187 "sum;%s;" 188 "mean;%s;" 189 "stddev;%s;" 190 "variance;%s;" 191 "coeff_var;%s;" 192 "median;%s;" 193 "percentile;%s;" 194 "skewness;%s;" 195 "trimmean;%s", 196 _("Number of points in cell"), 197 _("Minimum value of point values in cell"), 198 _("Maximum value of point values in cell"), 199 _("Range of point values in cell"), 200 _("Sum of point values in cell"), 201 _("Mean (average) value of point values in cell"), 202 _("Standard deviation of point values in cell"), 203 _("Variance of point values in cell"), 204 _("Coefficient of variance of point values in cell"), 205 _("Median value of point values in cell"), 206 _("Pth (nth) percentile of point values in cell"), 207 _("Skewness of point values in cell"), 208 _("Trimmed mean of point values in cell")); 186 209 187 210 delim_opt = G_define_standard_option(G_OPT_F_SEP); … … 267 290 vscale_opt->guisection = _("Advanced Input"); 268 291 292 type_opt = G_define_standard_option(G_OPT_R_TYPE); 293 type_opt->required = NO; 294 type_opt->answer = "FCELL"; 295 type_opt->guisection = _("Output"); 296 269 297 percent_opt = G_define_option(); 270 298 percent_opt->key = "percent"; … … 282 310 pth_opt->required = NO; 283 311 pth_opt->options = "1-100"; 284 pth_opt->description = _(" pth percentile of the values");312 pth_opt->description = _("Pth percentile of the values"); 285 313 pth_opt->guisection = _("Statistic"); 286 314 … … 297 325 scan_flag->key = 's'; 298 326 scan_flag->description = _("Scan data file for extent then exit"); 299 327 scan_flag->guisection = _("Scan"); 328 scan_flag->suppress_required = YES; 329 300 330 shell_style = G_define_flag(); 301 331 shell_style->key = 'g'; 302 332 shell_style->description = 303 333 _("In scan mode, print using shell script style"); 304 334 shell_style->guisection = _("Scan"); 335 shell_style->suppress_required = YES; 336 305 337 skipline = G_define_flag(); 306 338 skipline->key = 'i'; 307 339 skipline->description = _("Ignore broken lines"); 308 340 341 G_option_required(output_opt, scan_flag, shell_style, NULL); 342 G_option_requires(scan_flag, input_opt, NULL); 343 G_option_requires(shell_style, input_opt, NULL); 344 309 345 if (G_parser(argc, argv)) 310 346 exit(EXIT_FAILURE);
Note:
See TracChangeset
for help on using the changeset viewer.
