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

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Mar 1 06:26:20 EST 2009


Author: hamish
Date: 2009-03-01 06:26:20 -0500 (Sun, 01 Mar 2009)
New Revision: 36158

Modified:
   grass/branches/develbranch_6/imagery/i.pca/support.c
Log:
Eigenvalue back `n` back to PC`n`

Modified: grass/branches/develbranch_6/imagery/i.pca/support.c
===================================================================
--- grass/branches/develbranch_6/imagery/i.pca/support.c	2009-03-01 10:28:39 UTC (rev 36157)
+++ grass/branches/develbranch_6/imagery/i.pca/support.c	2009-03-01 11:26:20 UTC (rev 36158)
@@ -49,7 +49,7 @@
     for (i = 0; i < bands; i++) {
 	char tmpeigen[256], tmpa[80];
 
-	sprintf(tmpeigen, "Eigenvalue %d: %.2f ( ", i+1, eigval[i]);
+	sprintf(tmpeigen, "PC%d: %.2f ( ", i+1, eigval[i]);
 	for (j = 0; j < bands; j++) {
 	    sprintf(tmpa, "%.2f ", eigmat[i][j]);
 	    G_strcat(tmpeigen, tmpa);



More information about the grass-commit mailing list