[GRASS-SVN] r31804 - grass/trunk/lib/imagery
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Jun 22 15:23:24 EDT 2008
Author: neteler
Date: 2008-06-22 15:23:24 -0400 (Sun, 22 Jun 2008)
New Revision: 31804
Modified:
grass/trunk/lib/imagery/sigset.c
Log:
signature file precision enhanced for i.gensigset
Modified: grass/trunk/lib/imagery/sigset.c
===================================================================
--- grass/trunk/lib/imagery/sigset.c 2008-06-22 15:40:54 UTC (rev 31803)
+++ grass/trunk/lib/imagery/sigset.c 2008-06-22 19:23:24 UTC (rev 31804)
@@ -340,17 +340,17 @@
{
Sp = &Cp->SubSig[j];
fprintf (fd, " subclass:\n");
- fprintf (fd, " pi: %f\n", Sp->pi);
+ fprintf (fd, " pi: %g\n", Sp->pi);
fprintf (fd, " means:");
for (b1 = 0; b1 < S->nbands; b1++)
- fprintf (fd, " %f", Sp->means[b1]);
+ fprintf (fd, " %g", Sp->means[b1]);
fprintf (fd, "\n");
fprintf (fd, " covar:\n");
for (b1 = 0; b1 < S->nbands; b1++)
{
fprintf (fd, " ");
for (b2 = 0; b2 < S->nbands; b2++)
- fprintf (fd, " %f", Sp->R[b1][b2]);
+ fprintf (fd, " %g", Sp->R[b1][b2]);
fprintf (fd, "\n");
}
fprintf (fd, " endsubclass:\n");
More information about the grass-commit
mailing list