Hello Grass Users
Last week I posted a query about being able to access
the eigenvectors/eigenvalues for my principal
components. I then followed Agus' suggestion to use
m.eigensystem on the output of r.covar. However, I
whenever I try to pipe the r.covar output file into
the eigensystem module using
m.eigensystem < inputfile
I get the error message "This command must be run
interactively". I also get the same error message
when I try to pipe directly from r.covar to
m.eigensystem using
(echo 3: r.covar map.1,map.2,map.3) | m.eigensystem
Is there some way of being able to input the (often
long) covariance matrix into m.eigensystem, without
having to type in all of the values manually?
Thanks
Lesley-Ann Dupigny.
In info.grass.user you write:
Hello Grass Users
Last week I posted a query about being able to access
the eigenvectors/eigenvalues for my principal
components. I then followed Agus' suggestion to use
m.eigensystem on the output of r.covar. However, I
whenever I try to pipe the r.covar output file into
the eigensystem module using
m.eigensystem < inputfile
I get the error message "This command must be run
interactively". I also get the same error message
when I try to pipe directly from r.covar to
m.eigensystem using
(echo 3: r.covar map.1,map.2,map.3) | m.eigensystem
Is there some way of being able to input the (often
long) covariance matrix into m.eigensystem, without
having to type in all of the values manually?
Thanks
Lesley-Ann Dupigny.
Go to src/imagery/i.pca/cmd
in file main.c
delete lines 216 and 226 (i.e. uncomment lines 217-225, which
print out eigen values and eigen vectors)
then run gmake4.1 in this directory
Olga