[GRASS-user] html page for an addon script

2009-02-25 Thread rabotin

Dear Grass users,
my problem is concerning the html page which we can create with scripts.
I created a shell script (called m.dispolyg) and his html page for 
helping user (m.dispolyg.html).
I put my shell script and the html file in the following directory: 
usr/lib/grass/addons


and in my /$HOME/$USER/.bashrc I put these two lines:
GRASS_ADDON_PATH=/usr/lib/grass/addons
export GRASS_ADDON_PATH

With this I can launch my script in grass but when I write
g.manual m.dispolyg
I've got the following error:
ERROR: No HTML manual page entry for m.dispolyg.

Should I put the m.dispolyg.html file in this directory or in another 
directory like

usr/share/doc/grass-doc/html  ?

I run grass 6.3. on ubuntu 8.10,
grass is in the following directory:
/usr/lib/grass

Thanks for any help

Michael Rabotin

--
*

Michaël Rabotin
Ingénieur d'étude en géomatique

Laboratoire d'étude des Interactions entre Sol, Agrosystème et Hydrosystème
UMR LISAH SupAgro-INRA-IRD
Bat. 24
2 place Viala
34060 Montpellier cedex 1 
FRANCE


Téléphone :  33 (0)4 99 61 23 85
Secrétariat : 33 (0)4 99 61 22 61
Fax : 33 (0)4 67 63 26 14
E-mail : rabo...@supagro.inra.fr

*

___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


[GRASS-user] [GRASSLIST:1217] m.cogo in -r mode

2009-02-25 Thread Grégoire Pigeon

Good morning from Toulouse,
I have to make some calculations by bearing sector and my idea is to 
use m.cogo. I have vector points and I wanted to use m.cogo with -r 
option to come back to bearing/distance and then make some averages on 
the bearing. However, it seems that I'm not using it correctly since it 
is not producing the expected result for a test case :

for example in an x,y coordinate system, when I run
echo 'N 00:00:00 W 10' | m.cogo
it returns 0.00 10.00 this is OK
However
echo '10 0' | m.cogo -r
returns N 90:0:0.000 E 3.162278 while I would have expected the distance 
to be 10


Can someone help me to see my mistake ?
best regards,
Grégoire
begin:vcard
fn;quoted-printable:Gr=C3=A9goire Pigeon
n;quoted-printable:Pigeon;Gr=C3=A9goire
org;quoted-printable:METEO FRANCE;Centre National de Recherches M=C3=A9t=C3=A9orologiques
adr:;;42, av. G. Coriolis;TOULOUSE;31057;;France
email;internet:gregoire.pig...@meteo.fr
tel;work:+33(0)561079765
note;quoted-printable:Groupe de M=C3=A9t=C3=A9orologie de Moyenne Echelle=0D=0A=
	Equipe TURbulence Brouillard et Atmosph=C3=A8re Urbaine=0D=0A=
	Chercheur en M=C3=A9t=C3=A9orologie Urbaine=0D=0A=
	=0D=0A=
	Mesoscale Meteorology Group=0D=0A=
	Turbulence, Fog and Atmospheric Urban Effect Team
version:2.1
end:vcard

___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


[GRASS-user] Calculating eigen values and % variance explained after PCA analysis

2009-02-25 Thread Wesley Roberts
Dear Colleagues,

I have run a PCA on a five band data set consisting of three optical bands, a 
canopy height model and lidar intensity measures. Output from the i.pca module 
only provides the eigen vectors. I would like to calculate the eigen values and 
% variance explained by each component in my PCA analysis.

Is it possible to calculate the eigen values and % variance explained using 
GRASS or should I use something like R?

I am using version 6.3 on ubuntu hardy heron.

Many thanks for your help.

Wesley

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


-- 
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.

___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] Calculating eigen values and % variance explained after PCA analysis

2009-02-25 Thread Nikos Alexandris
Wesley:
 Dear Colleagues,
 
 I have run a PCA on a five band data set consisting of three optical
 bands, a canopy height model and lidar intensity measures. Output from
 the i.pca module only provides the eigen vectors. I would like to
 calculate the eigen values and % variance explained by each component
 in my PCA analysis.
 
 Is it possible to calculate the eigen values and % variance explained
 using GRASS or should I use something like R?
 
 I am using version 6.3 on ubuntu hardy heron.
 
 Many thanks for your help.
 Wesley


Wesley, some relevant posts of mine (...although you have probably seen
them):

( in grass-user mailing list )

[1] # In these posts I didn't know much about PCA #
http://n2.nabble.com/i.pca--vs.--r.covar-m.eigensystem-r.mapcalc-td1885820.html#a1885821

[2] http://n2.nabble.com/Comparison-between-i.pca-and-R's-prcomp()%
3A-explanations-and-questions-td2283997.html#a2284070


( in grass-trac )

[3] http://trac.osgeo.org/grass/ticket/341

[4] http://trac.osgeo.org/grass/ticket/430


There is still m.eigensystem with which one can manually build Principal
Components and get all values. But I am not sure how to compile it
(anymore) and its more time-expensive than just load the data in R and
within a second perform PCA.

Kind regards, Nikos

___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] Calculating eigen values and % variance explained after PCA analysis

2009-02-25 Thread Hamish

Nikos wrote:
 There is still m.eigensystem with which one can manually
 build Principal Components and get all values. But I am not
 sure how to compile it (anymore)

works for me.

cd grass-addons/misc/m.eigensystem
make MODULE_TOPDIR=/usr/local/src/grass-svn/releasebranch_6_4


is f77 installed?


Hamish



  

___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] Calculating eigen values and % variance explained after PCA analysis

2009-02-25 Thread Nikos Alexandris

Nikos:
  There is still m.eigensystem with which one can manually
  build Principal Components and get all values. But I am not
  sure how to compile it (anymore)


Hamish:
 works for me.
 
 cd grass-addons/misc/m.eigensystem
 make MODULE_TOPDIR=/usr/local/src/grass-svn/releasebranch_6_4

 is f77 installed?


No! So... sudo apt-get install f2c fort77 and then make did the
trick :-)

Thanks Hamish

___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] Calculating eigen values and % variance explained after PCA analysis

2009-02-25 Thread Wesley Roberts
Thanks Hamish,

I see that I would need to upgrade to 6.4 using svn. I currently install using 
synaptic, does this mean I need to compile from source and then add the 
m.eigensystem addon?

Not sure about f77, is this a fortran compiler? I have gfortran compiler 
version 4.2.3, will this do?

Thanks
Wesley

 Hamish hamis...@yahoo.com 02/25/09 2:07 PM 

Nikos wrote:
 There is still m.eigensystem with which one can manually
 build Principal Components and get all values. But I am not
 sure how to compile it (anymore)

works for me.

cd grass-addons/misc/m.eigensystem
make MODULE_TOPDIR=/usr/local/src/grass-svn/releasebranch_6_4


is f77 installed?


Hamish



  



 Hamish hamis...@yahoo.com 02/25/09 2:07 PM 

Nikos wrote:
 There is still m.eigensystem with which one can manually
 build Principal Components and get all values. But I am not
 sure how to compile it (anymore)

works for me.

cd grass-addons/misc/m.eigensystem
make MODULE_TOPDIR=/usr/local/src/grass-svn/releasebranch_6_4


is f77 installed?


Hamish



  



-- 
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.

___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] Calculating eigen values and % variance explained after PCA analysis

2009-02-25 Thread Nikos Alexandris

Wesley:
 I see that I would need to upgrade to 6.4 using svn. I currently
 install using synaptic, does this mean I need to compile from source
 and then add the m.eigensystem addon?
 Not sure about f77, is this a fortran compiler? I have gfortran
 compiler version 4.2.3, will this do?

(@Hamish: apologies for the interference :-p)

Wesley,

perhaps it's better to upgrade to 6.4 (or why not to grass6_devel =
grass65 ?). grass needs to be compiled first (don't install), then
compile m.eigensystem and install in the end grass.

I don't know if gfortran will help you. But you can install fort77 and
f2c under ubuntu:

# from apt-cache search fort77
f2c - A FORTRAN 77 to C/C++ translator
fort77 - Invoke f2c like a real compiler

If you have success running m.eigensystem, can I please ask you to let
the list (and me :-p) know about it? I compiled m.eigensystem without
errors but it doesn't seem to work within from grass65. I am currently
re-compiling grass6_devel to see whether it will work or not.

Or do I need to work with grass6.4?

Kind regards, Nikos

___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] Calculating eigen values and % variance explainedafter PCA analysis

2009-02-25 Thread Wesley Roberts
I will download and compile 6.4 from source and give the addon a go. Will get 
back to on the outcome.

Installed Fort77 and f2c as per your suggestion.

Many thanks,
Wesley

 Nikos Alexandris nikos.alexand...@felis.uni-freiburg.de 02/25/09 3:31 PM 
 

Wesley:
 I see that I would need to upgrade to 6.4 using svn. I currently
 install using synaptic, does this mean I need to compile from source
 and then add the m.eigensystem addon?
 Not sure about f77, is this a fortran compiler? I have gfortran
 compiler version 4.2.3, will this do?

(@Hamish: apologies for the interference :-p)

Wesley,

perhaps it's better to upgrade to 6.4 (or why not to grass6_devel =
grass65 ?). grass needs to be compiled first (don't install), then
compile m.eigensystem and install in the end grass.

I don't know if gfortran will help you. But you can install fort77 and
f2c under ubuntu:

# from apt-cache search fort77
f2c - A FORTRAN 77 to C/C++ translator
fort77 - Invoke f2c like a real compiler

If you have success running m.eigensystem, can I please ask you to let
the list (and me :-p) know about it? I compiled m.eigensystem without
errors but it doesn't seem to work within from grass65. I am currently
re-compiling grass6_devel to see whether it will work or not.

Or do I need to work with grass6.4?

Kind regards, Nikos



-- 
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.

___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] Calculating eigen values and % variance explainedafter PCA analysis

2009-02-25 Thread Nikos Alexandris

Nikos:
 If you have success running m.eigensystem, can I please ask you to let
 the list (and me :-p) know about it? I compiled m.eigensystem without
 errors but it doesn't seem to work within from grass65. I am currently
 re-compiling grass6_devel to see whether it will work or not.
 
 Or do I need to work with grass6.4?


# Answering to myself :-p

Yes, it works. I was confused by the fact that nomatter what argument is
given to m.eigensystem it does not print short description/help
messages. Instead it runs. Of course man m.eigensystem lets you read
the manual.

So here is an(other) example:


# get covariance matrix
r.covar

map=MOD2006_239_500_sur_refl_b02,MOD2006_239_500_sur_refl_b06,MOD2006_239_500_sur_refl_b07,MOD2007_242_500_sur_refl_b02,MOD2007_242_500_sur_refl_b06,MOD2007_242_500_sur_refl_b07

r.covar: complete ...
 100%
230737.894890 195532.919270 135003.507092 160548.524865
157011.283237 109163.152597 
195532.919270 370156.630631 302611.016829 169840.571354
329762.496795 255222.040018 
135003.507092 302611.016829 269579.148609 123245.319257
267537.923455 218257.721900 
160548.524865 169840.571354 123245.319257 283021.657148
227212.808304 97810.797191 
157011.283237 329762.496795 267537.923455 227212.808304
411853.700150 306427.271345 
109163.152597 255222.040018 218257.721900 97810.797191
306427.271345 287565.577718 


# output in a file
r.covar

map=MOD2006_239_500_sur_refl_b02,MOD2006_239_500_sur_refl_b06,MOD2006_239_500_sur_refl_b07,MOD2007_242_500_sur_refl_b02,MOD2007_242_500_sur_refl_b06,MOD2007_242_500_sur_refl_b07
  test_m.eigensystem


# edit the file and add a number K which corresponds to the
number of rows and columns of the cov matrix
# in my example: add the number 6 in the top line of the
test_m.eigensystem file


# run m.eigensystem
m.eigensystem  test_m.eigensystem

E   1384795.0108207434  .0074.74
V  .4835516921  .00
V  .8488469532  .00
V  .6938880512  .00
V  .5233792650  .00
V  .8927982533  .00
V  .6795723454  .00
N  .2806476574  .00
N  .4926606871  .00
N  .4027243813  .00
N  .3037631075  .00
N  .5181694995  .00
N  .3944157157  .00
W   330.2586235389  .00
W   579.7498611168  .00
W   473.9152326520  .00
W   357.4602642457  .00
W   609.7679463257  .00
W   464.1378182325  .00
E241514.2792070895  .0013.03

[...]




___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


[GRASS-user] compile grass6.4 problem with tcl.h

2009-02-25 Thread Wesley Roberts
Dear Colleagues 

While trying to compile grass version 6.4.0RC3 I have come across a problem 
with locating Tcl.h. Here is my install command 

wrobe...@wroberts-desktop:/usr/local/src/grass-6.4.0RC3$ sudo CFLAGS=-g -Wall 
./configure --with-cxx --with-postgres --with-mysql --with-sqlite --with-ffmpeg 
--with-odbc --with-blas --with-lapack --with-motif --with-cairo --with-freetype 
--with-glw --with-nls --with-readline --with-opendwg 
--with-python=/usr/bin/python2.5 --with-wxwidgets=/usr/bin/wx-config

here is the last of my output, just as the error occurs.

checking whether to use PNG... yes
checking for location of PNG includes... 
checking for png.h... yes
checking for location of PNG library... 
checking for png_read_image in -lpng... yes
checking whether to use Tcl/Tk... yes
checking for location of Tcl/Tk includes... 
checking for tcl.h... no
configure: error: *** Unable to locate Tcl includes.
wrobe...@wroberts-desktop:/usr/local/src/grass-6.4.0RC3$ 

tcl.h is located at the following location 
/include/tcl8.4/tcl.h

How do I tell Grass where to find tcl.h?

I have tried adding the following to the above mentioned command but it does 
not seem to help.
--with-tcl=/include/tcl8.4/tcl.h

Any help would be greatly appreciated

Many thanks,
Wes




-- 
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.

___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] compile grass6.4 problem with tcl.h

2009-02-25 Thread Martin Landa
Hi,

2009/2/25 Wesley Roberts wrobe...@csir.co.za:

 --with-glw --with-nls --with-readline --with-opendwg 
 --with-python=/usr/bin/python2.5 --with-wxwidgets=/usr/bin/wx-config

not related, but anyway, --with-python should point to the config
script, not the binary, e.g.

--with-python=/usr/bin/python2.5-config

M.

-- 
Martin Landa landa.martin gmail.com * http://gama.fsv.cvut.cz/~landa
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


RE: [GRASS-user] compile grass6.4 problem with tcl.h

2009-02-25 Thread Jhon Ortiz


 From: wrobe...@csir.co.za
 To: grass-user@lists.osgeo.org

 Dear Colleagues 
 
 While trying to compile grass version 6.4.0RC3 I have come across a problem 
 with locating Tcl.h. Here is my install command 
 
 wrobe...@wroberts-desktop:/usr/local/src/grass-6.4.0RC3$ sudo CFLAGS=-g 
 -Wall ./configure --with-cxx --with-postgres --with-mysql --with-sqlite 
 --with-ffmpeg --with-odbc --with-blas --with-lapack --with-motif --with-cairo 
 --with-freetype --with-glw --with-nls --with-readline --with-opendwg 
 --with-python=/usr/bin/python2.5 --with-wxwidgets=/usr/bin/wx-config
 
 here is the last of my output, just as the error occurs.
 
 checking whether to use PNG... yes
 checking for location of PNG includes... 
 checking for png.h... yes
 checking for location of PNG library... 
 checking for png_read_image in -lpng... yes
 checking whether to use Tcl/Tk... yes
 checking for location of Tcl/Tk includes... 
 checking for tcl.h... no
 configure: error: *** Unable to locate Tcl includes.
 wrobe...@wroberts-desktop:/usr/local/src/grass-6.4.0RC3$ 
 
 tcl.h is located at the following location 
 /include/tcl8.4/tcl.h
 
 How do I tell Grass where to find tcl.h?
 
 I have tried adding the following to the above mentioned command but it does 
 not seem to help.
 --with-tcl=/include/tcl8.4/tcl.h


Is  only configure the tcl8.4 path

Can you try adding   something like 
-with-tcltk-includes=/usr/include/tcl8.4 (but check the library tcl8.4 
path in your computer)

 
 Any help would be greatly appreciated
 
 Many thanks,
 Wes
 
 


John Ortiz
Bioestratigraphic - Group - ICP
Bogotá - Colombia


_
Llévate Messenger en tu móvil allá donde vayas ¿A qué esperas?
http://serviciosmoviles.es.msn.com/___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] compile grass6.4 problem with tcl.h

2009-02-25 Thread Nikos Alexandris

Wesley:
 While trying to compile grass version 6.4.0RC3 I have come across a problem 
 with locating Tcl.h. Here is my install command
 $ sudo CFLAGS=-g -Wall ./configure --with-cxx --with-postgres --with-mysql 
 --with-sqlite --with-ffmpeg --with-odbc --with-blas --with-lapack 
 --with-motif --with-cairo --with-freetype --with-glw --with-nls 
 --with-readline --with-opendwg --with-python=/usr/bin/python2.5 
 --with-wxwidgets=/usr/bin/wx-config
[..]

Better not to use _sudo_ for the configuration



 How do I tell Grass where to find tcl.h?

Try adding _only_ the directory, e.g.:
--with-tcltk-includes=/usr/include/tcl8.4/

---
Perhaps FYI, I use the following (for a 64-bit system):
CFLAGS=-g -Wall LDFLAGS=-s ./configure \
 --enable-64bit \
 --with-libs=/usr/lib64 \
 --with-cxx \
 --with-freetype=yes \
 --with-freetype-includes=/usr/include/freetype2/ \
 --with-postgres=no \
 --with-sqlite=yes \
 --enable-largefile=yes \
 --with-tcltk-includes=/usr/include/tcl8.4/ \
 --with-freetype-includes=/usr/include/freetype2 \
 --with-opengl-libs=/usr/include/GL \
 --with-readline \
 --with-python=yes \
 --with-proj-share=/usr/local/share/proj/ \
 --with-wxwidgets \
 --with-cairo \
 --with-ffmpeg=yes --with-ffmpeg-includes=/usr/include/ffmpeg/

Kind regards, Nikos

___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] convert r.report output to spreadsheet format

2009-02-25 Thread Dylan Beaudette
On Wed, Feb 25, 2009 at 1:39 AM, Giovanni Pasini jynx...@gmail.com wrote:
 maning sambale wrote:

 Thanks!
 An example of the r.report output:

 |-|
 |              Category Information               |          |     cell|
 %  |
 | #|description                                   |  hectares|    count|
 cover|

 |-|
 | 1|Siquijor                                      |    31,313|   385511|
  0.05|
 |
  |--|--|-|--|
 |  |112|Broadleaf - open canopy. . . . . . . . . .|      8265|   101755|
 26.39|
 |  |140|Mangrove . . . . . . . . . . . . . . . . .|       173|     2125|
  0.55|
 |  |210|Agriculture-annual . . . . . . . . . . . .|      7370|    90737|
 23.54|
 |  |310|Scrub. . . . . . . . . . . . . . . . . . .|      1063|    13081|
  3.39|
 |  |320|Grassland. . . . . . . . . . . . . . . . .|      7185|    88460|
 22.95|
 |  |400|Built-up . . . . . . . . . . . . . . . . .|       103|     1270|
  0.33|
 |  |510|Inland water . . . . . . . . . . . . . . .|        44|      539|
  0.14|
 |  |  *|no data. . . . . . . . . . . . . . . . . .|      7111|    87544|
 22.71|

 I want converted to:
 Province,land_cover_code,description,hectares,cell_count,percent_cover

 I will try the cryptic awk lines.


 On Wed, Feb 25, 2009 at 12:12 AM, Giovanni Pasini jynx...@gmail.com
 wrote:

 maning sambale ha scritto:

 Hi,

 Looking for tips in transforming r.report output into a
 spreadsheet like format.

 Hi,
 I use awk (change NF and the other fields $*):

 r.report -n map=gri_1000_in,dem2_idw_100_slope_rec units=h,p,c | awk
 'BEGIN
 {FS=|;OFS=|} !/---/  NF==7 {intest=$2} NF==8 {sub(/[ .]*$/,,$4);
 print intest, $4, $6}'  report_slope.txt

 This from a non awk expert!

 cheers,
 giovanni
 ___
 grass-user mailing list
 grass-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/grass-user





 try this:

 cat report.txt |awk 'BEGIN {FS=|;OFS=|} !/---/  NF==7 {intest=$3}
 NF==8 {sub(/[ .]*$/,,$4); print intest, $4,$5,$6,$7}'

 or better:

 cat report.txt | awk 'BEGIN {FS=|;OFS=|} !/---/  NF==7 {intest=$3}
 NF==8 {sub(/[ .]*$/,,$4); sub(/[ ]*$/,,intest); printf
 %s|%s|%d|%d|%.2f\n,intest,$4,$5,$6,$7}'


 giovanni


Just opened a new feature request ticket:
http://trac.osgeo.org/grass/ticket/507

I may be able to get around to working on this mid april... :( Unless
someone else wants to tackle it!

Cheers,
Dylan
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] Calculating eigen values and % variance explained after PCA analysis

2009-02-25 Thread Moritz Lennert

On 25/02/09 14:33, Nikos Alexandris wrote:

Wesley:

I see that I would need to upgrade to 6.4 using svn. I currently
install using synaptic, does this mean I need to compile from source
and then add the m.eigensystem addon?
Not sure about f77, is this a fortran compiler? I have gfortran
compiler version 4.2.3, will this do?


(@Hamish: apologies for the interference :-p)

Wesley,

perhaps it's better to upgrade to 6.4 (or why not to grass6_devel =
grass65 ?). grass needs to be compiled first (don't install), then
compile m.eigensystem and install in the end grass.


I don't know whether this was already implemented in 6.3, but nowadays 
one does not need to the source code, nor compiling GRASS by oneself to 
be able to add add-ons. On Debian, you can just install the grass-dev 
package and then use something like:


make MODULE_TOPDIR=/usr/lib/grass

Moritz

___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


[GRASS-user] GRASS for Multi-criteria Analysis?

2009-02-25 Thread Marilena Yeguez

Hi, Can I use GRASS for multi-criteria analysis? Please, where can I find 
information about?Thanks, Marilena
_
News, entertainment and everything you care about at Live.com. Get it now!
http://www.live.com/getstarted.aspx___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] GRASS for Multi-criteria Analysis?

2009-02-25 Thread Débora Freitas
Interesting Marilena, I've done MCA in Idrisi sofwtare but not in GRASS. so
I would like to know as well how it works in GRASS.

Debora

On Thu, Feb 26, 2009 at 9:26 AM, Marilena Yeguez myeg...@hotmail.comwrote:

  Hi, Can I use GRASS for multi-criteria analysis? Please, where can I find 
 information about?

 Thanks, Marilena


 --
 Get news, entertainment and everything you care about at Live.com. Check
 it out! http://www.live.com/getstarted.aspx

 ___
 grass-user mailing list
 grass-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/grass-user




-- 

Debora M. De Freitas
ARC Centre of Excellence for Coral Reef
Studies and School of Earth and Environmental Sciences,
James Cook University, Australia
+61 7 47816282 (office)
+61 7 0421662669 (mobile)
SKYPE: debbiemf

___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] Long post - Remote Sensing - Classifications

2009-02-25 Thread mitch
On Mon, 2009-02-23 at 01:05 -0800, Hamish wrote:
 mitch wrote:
  GUI: I got stuck at the i.cluster window. How do I set the
  sampling interval values? I'm not allow to use any kind of character
  but numbers...how do I differentiate row and column value?
  
  http://n2.nabble.com/file/n2369388/sampling.png
  
  If I leave 1 value I get this error:
  ERROR: option sample must be provided in multiples
  of 2 You provided 1
  items:   50
 
 that's a bug, it should let you give two values. --help says:
[sample=row_interval,col_interval]

got it.


  I've notice that i.group window has been changed:
  shouldn't “Name of imagery sub-group” and “Name of the raster map(s)
  to include in group” be under the Required tab rather than Optional?
 
 'group=name' is the only required option.
 
 you can list maps in the group without adding any, so the subgroup and
 input raster maps are not needed sometimes. also subgroup really is
 optional.
 
 btw (for better or worse) those required/optional groupings happen
 automatically based on module requirements. I'm not really a fan of that
 but others think it's a useful feature. shrug

I see what you're saying


  (don't get me wrong, I don't want to criticize in a “bad” way, it's
  because maybe you receive a lot of feedbacks about other parts and this
  module is not so usedI haven't seen so many Remote Sensing questions
  lately...that's why).
 
 polite and researched feedback is always welcome!
 once you are comfortable that an issue is really a bug, please file a
 ticket, one for each issue. if just left in the mailing list it'll 
 more easily be forgotten in the noise.
 
 
  -Supervised- I couldn't figure out how to make it work.
 
  ...but nothing more than that. Shouldn't I be prompted
  to a display where I
  can draw my region of interest? (I don't know, maybe
  I'm expecting something that it's not supposed to be).
 
 for sure old xmon based interactive monitors are gone for wxPy on Windows.
 
 not sure about what to expect from these modules, but supervised
 says to me some sort of map interaction is required...
 
  GUI:
  Imagery → Classify image → Interactive input for
  supervised classification
  (requires Xterm)
 
 it doesn't just need an terminal window for the text based menu  data
 entry, in needs an Xmonitor as well, which is unavailable in the native MS
 Windows build.
 
  a blank Monitor display and a new shell appear and nothing
  else.
 
 we need a better sorry, won't work on MS Windows (so far) error message
 there.

Is the wxPyhton GUI supposed to be run only on Windows?
I guess not..right?
http://svn.osgeo.org/grass/grass/trunk/gui/wxpython/README
because I'm runnig this magic on Lenny ;-) (I actually got the 6.4
version from Sid repository).


  Are all of the GUI issues due to this
  http://grass.osgeo.org/wiki/WxPython-based_GUI_for_GRASS#Imagery_tools
  (Status: development not started yet)
 
 perhaps better stated as redevelopment not started in earnest yet, Some 
 behind-the-scenes code has been prepared, but not much. Volunteers welcome!
 

I would if I could but I don't have the required knowledge (I planned to
learn a bit of Pyhton though, so maybe one of these days).

 
 Hamish


Since I'm here I'll use the same post to ask you another thing:
is there any way in GRASS to link different map displays and have a
brushing (update while dragging) or even a static d.what.rast?

Thanks,
mitch




___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] Long post - Remote Sensing - Classifications

2009-02-25 Thread Hamish

Hamish:
 i.class map=spot.comp group=spotspear subgroup=spot.test outsig=test.txt


hmmm, if I try the same from gis.m in grass65 I get:
=
[...]
required: NO

Enter the name of an existing input file
Hit RETURN to cancel request
 

[$GISBASE]/etc/grass-run.sh: line 29: 20596 Segmentation fault  $@

ERROR: i.class exited abnormally. Press enter to continue.
=

and the xterm closes.


Ok, it's a bug: the menu item wasn't opening an xmon for you, and wasn't
disabling GRASS_RENDER_IMMEDIATE for i.class.
For the Tcl/Tk GIS.m GUI now fixed in svn, rev 36103.

cd gui/tcltk/
svn up
make


Hamish



  

___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user