[GRASS-dev] Re: [GRASS GIS] #430: i.pca's output and history logged "Comments" disagree

Dylan Beaudette debeaudette at ucdavis.edu
Mon Mar 16 12:13:45 EDT 2009


On Monday 16 March 2009, Markus Neteler wrote:
> On Mon, Mar 16, 2009 at 11:46 AM, Hamish <hamish_b at yahoo.com> wrote:
> > Nikos:
> >>  Now that I look again at the results (meaning the tests I have sent in
> >> the ML and in the wiki as well [1]) I think that your thought about
> >> increasing the decimals printed in i.pca's output is not a bad idea.
> >>  Perhaps adding one more digit to make it look like
> >
> > I would like to increase it to %.4f, and add a comma between numbers.
> > I am away from the office and not able to do anything in svn or any code
> > testing for the next few weeks. I'm just a few minutes a day with webmail
> > access right now.
> > (that's an invitation for someone else to make the change)
>
> Patch attached (maybe there is a better way to write it):
>
> NC:
> g.region rast=lsat7_2002_pca.5  -p
> i.pca
> in=lsat7_2002_10,lsat7_2002_20,lsat7_2002_30,lsat7_2002_40,lsat7_2002_50,ls
>at7_2002_70 out=lsat7_2002_pca
> ...
> Eigen values, (vectors), and [percent importance]:
> PC1 4712.17 (-0.2798,-0.3332,-0.5054,-0.0015,-0.5341,-0.5196) [ 84.0537% ]
> PC2 595.40 (-0.2528,-0.1877,-0.2969, 0.7494, 0.5002, 0.0289) [ 10.6206% ]
> PC3 240.56 ( 0.3864, 0.3842, 0.2670, 0.6147,-0.4058,-0.2987) [ 4.2910% ]
> PC4 33.01 (-0.1768, 0.0165, 0.4083,-0.1576, 0.4396,-0.7640) [ 0.5888% ]
> PC5 20.75 (-0.6063,-0.2610, 0.6087, 0.1795,-0.3255, 0.2357) [ 0.3701% ]
> PC6 4.25 ( 0.5565,-0.7986, 0.2186, 0.0583, 0.0255,-0.0265) [ 0.0759% ]
>
> Markus

That seems like a nice concise approach, I like it.

Dylan

-- 
Dylan Beaudette
Soil Resource Laboratory
http://casoilresource.lawr.ucdavis.edu/
University of California at Davis
530.754.7341


More information about the grass-dev mailing list