[GRASS-SVN] r33762 - grass/trunk/raster/r.univar

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Oct 8 08:58:10 EDT 2008


Author: neteler
Date: 2008-10-08 08:58:10 -0400 (Wed, 08 Oct 2008)
New Revision: 33762

Modified:
   grass/trunk/raster/r.univar/stats.c
Log:
increased output precision for -g flag

Modified: grass/trunk/raster/r.univar/stats.c
===================================================================
--- grass/trunk/raster/r.univar/stats.c	2008-10-08 12:55:49 UTC (rev 33761)
+++ grass/trunk/raster/r.univar/stats.c	2008-10-08 12:58:10 UTC (rev 33762)
@@ -110,14 +110,14 @@
     if (param.shell_style->answer) {
 	fprintf(stdout, "n=%d\n", stats->n);
 	fprintf(stdout, "null_cells=%d\n", stats->size - stats->n);
-	fprintf(stdout, "min=%g\n", stats->min);
-	fprintf(stdout, "max=%g\n", stats->max);
-	fprintf(stdout, "range=%g\n", stats->max - stats->min);
-	fprintf(stdout, "mean=%g\n", mean);
-	fprintf(stdout, "mean_of_abs=%g\n", stats->sum_abs / stats->n);
-	fprintf(stdout, "stddev=%g\n", stdev);
-	fprintf(stdout, "variance=%g\n", variance);
-	fprintf(stdout, "coeff_var=%g\n", var_coef);
+	fprintf(stdout, "min=%.15g\n", stats->min);
+	fprintf(stdout, "max=%.15g\n", stats->max);
+	fprintf(stdout, "range=%.15g\n", stats->max - stats->min);
+	fprintf(stdout, "mean=%.15g\n", mean);
+	fprintf(stdout, "mean_of_abs=%.15g\n", stats->sum_abs / stats->n);
+	fprintf(stdout, "stddev=%.15g\n", stdev);
+	fprintf(stdout, "variance=%.15g\n", variance);
+	fprintf(stdout, "coeff_var=%.15g\n", var_coef);
 	fprintf(stdout, "sum=%s\n", sum_str);
     }
     else {



More information about the grass-commit mailing list