[GRASS-user] Calculating eigen values and%varianceexplainedafter PCA analysis

Wesley Roberts wroberts at csir.co.za
Tue Mar 3 01:48:27 EST 2009


Wesley Roberts MSc.
Researcher: Earth Observation (Ecosystems)
Natural Resources and the Environment
CSIR
Tel: +27 (21) 888-2490
Fax: +27 (21) 888-2693

"To know the road ahead, ask those coming back."
- Chinese proverb

>>> Nikos Alexandris <nikos.alexandris at felis.uni-freiburg.de> 03/02/09
5:02 PM >>>
On Mon, 2009-03-02 at 16:33 +0200, Wesley Roberts wrote:
> I would like to check out the new i.pca module described below in the
> svn repository. Where can I find devbr6 (6.5svn)? So far I have only
> been able to find 6.4svn.
> 
> Many thanks,
> Wesley

Wesley,

you can grab the grass6_devel source code (now ="6.5") for example with
the following command:
svn checkout https://svn.osgeo.org/grass/grass/branches/develbranch_6
grass6_devel

Kind regards, Nikos


Hi Nikos,

I got the svn grass6_devel code from the location you suggested and have
now installed but with lots of errors. Here is the output from the
'make' command (see below the lapack.h error). I understand that I need
to cd into the directory where the error occurred and run make inside
that directory. I do this for the gmath directory and I once again
receive an error message related to the lapack.h file. The same error
occurs when running make in other error locations.


/usr/local/src/grass6_devel/dist.i686-pc-linux-gnu/include/grass/lapack.h:5144:
error: expected declaration specifiers or ‘...’ before ‘ftnlen’
make: *** [OBJ.i686-pc-linux-gnu/del2g.o] Error 1

I dont have much more time to spend on this so would ideally just like
to get the i.pca working in development installation so that I can use
i.pca and get the variance and eigen values. In my tests run so far I
have seen that i.pca produces more realistic results, based on
qualitative assessment. As such, I will use i.pca instead of the
'by-hand-method'

Thanks for all your help wrt running pca in grass.
Wesley


make error installing below

Following modules are missing the 'description.html' file in src code:
----------------------------------------------------------------------
GRASS GIS compilation log
-------------------------
Started compilation: Tue Mar  3 08:37:25 SAST 2009
--
Errors in:
/usr/local/src/grass6_devel/lib/gmath
/usr/local/src/grass6_devel/lib/imagery
/usr/local/src/grass6_devel/lib/cluster
/usr/local/src/grass6_devel/lib/rst/interp_float
/usr/local/src/grass6_devel/lib/nviz
/usr/local/src/grass6_devel/general/g.transform
/usr/local/src/grass6_devel/imagery/i.cluster
/usr/local/src/grass6_devel/imagery/i.gensig
/usr/local/src/grass6_devel/imagery/i.gensigset
/usr/local/src/grass6_devel/imagery/i.group
/usr/local/src/grass6_devel/imagery/i.his.rgb
/usr/local/src/grass6_devel/imagery/i.maxlik
/usr/local/src/grass6_devel/imagery/i.rectify
/usr/local/src/grass6_devel/imagery/i.rgb.his
/usr/local/src/grass6_devel/imagery/i.smap/shapiro
/usr/local/src/grass6_devel/imagery/i.target
/usr/local/src/grass6_devel/imagery/i.pca
/usr/local/src/grass6_devel/imagery/i.cca
/usr/local/src/grass6_devel/imagery/i.fft
/usr/local/src/grass6_devel/imagery/i.ifft
/usr/local/src/grass6_devel/imagery/i.zc
/usr/local/src/grass6_devel/imagery/i.class
/usr/local/src/grass6_devel/imagery/i.ortho.photo/libes
/usr/local/src/grass6_devel/imagery/i.ortho.photo/menu
/usr/local/src/grass6_devel/imagery/i.ortho.photo/photo.2image
/usr/local/src/grass6_devel/imagery/i.ortho.photo/photo.2target
/usr/local/src/grass6_devel/imagery/i.ortho.photo/photo.camera
/usr/local/src/grass6_devel/imagery/i.ortho.photo/photo.elev
/usr/local/src/grass6_devel/imagery/i.ortho.photo/photo.init
/usr/local/src/grass6_devel/imagery/i.ortho.photo/photo.rectify
/usr/local/src/grass6_devel/imagery/i.ortho.photo/photo.target
/usr/local/src/grass6_devel/imagery/i.points
/usr/local/src/grass6_devel/imagery/i.vpoints
/usr/local/src/grass6_devel/ps/ps.map
/usr/local/src/grass6_devel/raster/r.external
/usr/local/src/grass6_devel/raster/r.param.scale
/usr/local/src/grass6_devel/raster/r.resamp.rst
/usr/local/src/grass6_devel/raster/r.sur/usr/local/src/grass6_devel/raster/simwe/simlib
/usr/local/src/grass6_devel/raster/simwe/r.sim.water
/usr/local/src/grass6_devel/raster/simwe/r.sim.sediment
/usr/local/src/grass6_devel/raster/r.in.gdal
/usr/local/src/grass6_devel/raster/r.out.gdal
/usr/local/src/grass6_devel/raster/r.surf.fractal
/usr/local/src/grass6_devel/vector/v.extract
/usr/local/src/grass6_devel/vector/v.kernel
/usr/local/src/grass6_devel/vector/v.surf.rst
/usr/local/src/grass6_devel/vector/lidar/lidarlib
/usr/local/src/grass6_devel/vector/lidar/v.surf.bspline
/usr/local/src/grass6_devel/vector/lidar/v.outlier
/usr/local/src/grass6_devel/vector/lidar/v.lidar.correction
/usr/local/src/grass6_devel/vector/lidar/v.lidar.edgedetection
/usr/local/src/grass6_devel/vector/lidar/v.lidar.growing
/usr/local/src/grass6_devel/visualization/nviz
/usr/local/src/grass6_devel/visualization/nviz2/cmd
--
In case of errors please change into the directory with error and run
'make'.
If you get multiple errors, you need to deal with them in the order they
appear in the error log. If you get an error building a library, you
will
also get errors from anything which uses the library.
--
Finished compilation: Tue Mar  3 08:38:02 SAST 2009
make: *** [default] Error 1













-- 
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. 
The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.

This message has been scanned for viruses and dangerous content by MailScanner, 
and is believed to be clean.  MailScanner thanks Transtec Computers for their support.



More information about the grass-user mailing list