Re: [GRASS-user] Compiling addons from svn repository
I've clean up a little bit r.roughset and I've write some explanation note. In the next weeks I'll improve documentation (and the English !) Thanks Gianluca Moritz Lennert ha scritto: On 04/08/08 14:52, gianluca massei wrote: Thanks Moritz , great tip! I'm working in a module that implemented ELECTRE algorithm. I've just finisced a module named /r.roughset/ for knowledg discovery with rough set based on rough set library. You can download the source code from grass wiki (http://grass.osgeo.org/wiki/GRASS_AddOns#r.roughset) and I'm happy if sameone caould try it and report me tips or bugs. It would be easier to test if the module description was a bit more elaborate. You should add a description.html with at least a 'Notes' section to explain the module and its parameters. [BTW, you might want to clean up the source tar ball a bit and delete the temporary files it includes, i.e. r.roughset.tmp.html and the ~ files.] Moritz Database dei virus interno non c aggiornato. Controllato da AVG - http://www.avg.com Versione: 8.0.138 / Database dei virus: 270.5.10/1584 - Data di rilascio: 31/07/2008 12.00 ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Compiling addons from svn repository
On 04/08/08 14:52, gianluca massei wrote: Thanks Moritz , great tip! I'm working in a module that implemented ELECTRE algorithm. I've just finisced a module named /r.roughset/ for knowledg discovery with rough set based on rough set library. You can download the source code from grass wiki (http://grass.osgeo.org/wiki/GRASS_AddOns#r.roughset) and I'm happy if sameone caould try it and report me tips or bugs. It would be easier to test if the module description was a bit more elaborate. You should add a description.html with at least a 'Notes' section to explain the module and its parameters. [BTW, you might want to clean up the source tar ball a bit and delete the temporary files it includes, i.e. r.roughset.tmp.html and the ~ files.] Moritz ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Compiling addons from svn repository
Thanks Moritz , great tip! I'm working in a module that implemented ELECTRE algorithm. I've just finisced a module named /r.roughset/ for knowledg discovery with rough set based on rough set library. You can download the source code from grass wiki (http://grass.osgeo.org/wiki/GRASS_AddOns#r.roughset) and I'm happy if sameone caould try it and report me tips or bugs. Gianluca Moritz Lennert ha scritto: On 04/08/08 13:39, gianluca massei wrote: Hy list, I'm writing a C module for multiciriteria decision analysis in GRASS. Great news ! I'm very interested in this. If you haven't already, you might want to have a look at the old r.infer and r.weight modules in grass5.4. Also see the GRASS news article by Peter Löwe: http://grass.itc.it/newsletter/grassnews3.html. Just one suggestion: it might be worthwhile thinking about error handling/propagation in such a module... I've a problem with doublevalue multiple answers processing. The code is like that: " /weight = G_define_option(); weight->key= "weight"; weight->type = TYPE_DOUBLE; weight->required = YES; weight->multiple = YES; weight->description = _("Criteria weight(s) (w1,w2,..)");/ " I'd like extract single value so, I tried this: " /for(i=0;ianswers[i]); }/ " Not sure, but I think the ->answers are always string, so you have to transform to float with atof: G_message(_("Peso %d : %lf"),i,atof(weight->answers[i])); Moritz Database dei virus interno non c aggiornato. Controllato da AVG - http://www.avg.com Versione: 8.0.138 / Database dei virus: 270.5.10/1584 - Data di rilascio: 31/07/2008 12.00 ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Compiling addons from svn repository
On 04/08/08 13:39, gianluca massei wrote: Hy list, I'm writing a C module for multiciriteria decision analysis in GRASS. Great news ! I'm very interested in this. If you haven't already, you might want to have a look at the old r.infer and r.weight modules in grass5.4. Also see the GRASS news article by Peter Löwe: http://grass.itc.it/newsletter/grassnews3.html. Just one suggestion: it might be worthwhile thinking about error handling/propagation in such a module... I've a problem with doublevalue multiple answers processing. The code is like that: " /weight = G_define_option(); weight->key= "weight"; weight->type = TYPE_DOUBLE; weight->required = YES; weight->multiple = YES; weight->description = _("Criteria weight(s) (w1,w2,..)");/ " I'd like extract single value so, I tried this: " /for(i=0;ianswers[i]); }/ " Not sure, but I think the ->answers are always string, so you have to transform to float with atof: G_message(_("Peso %d : %lf"),i,atof(weight->answers[i])); Moritz ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Compiling addons from svn repository
Hy list, I'm writing a C module for multiciriteria decision analysis in GRASS. I've a problem with doublevalue multiple answers processing. The code is like that: " /weight = G_define_option(); weight->key= "weight"; weight->type = TYPE_DOUBLE; weight->required = YES; weight->multiple = YES; weight->description = _("Criteria weight(s) (w1,w2,..)");/ " I'd like extract single value so, I tried this: " /for(i=0;ianswers[i]); }/ " but the value is always 0.. I'm not a guru. Is there anybody so patient to help me? Thanks Gianluca P.S. I'm afraid this is the second message posted to list. Exuse me! ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Compiling addons from svn repository
If you install GRASS with "sudo apt-get install grass" this does everything for you and you don't need to compile anything. Although you could get also the source with apt-get (don't know exactly how right now and where it will be placed), you can decide to create a source directory for all of your "geo-source codes" (e.g. /home/nik/source or /usr/local/src --- it doesn't matter I think where it is but you have to give full read-write-execute access to your login) and "draw" the source codes with svn as it is described in [1]: svn checkout https://svn.osgeo.org/grass/grass-addons grass-addons Another "svn" example is: svn checkout https://svn.osgeo.org/grass/grass/trunk grass_trunk This will get the trunk(=grass7) source code and put it in a directory called "grass_trunk" (look at last argument of the above command) within the directory from where you execute the command. So if you are currently in /home/eduardo the "grass_trunk" directory will be created in /home/eduardo. More "linux" examples in [2] Greetings, Nikos [1] http://grass.osgeo.org/download/index.php [2] http://grass.osgeo.org/wiki/Compile_and_Install ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Compiling addons from svn repository
On Fri, 2008-08-01 at 13:05 +0300, Nikos Alexandris wrote: > Next you have to point "make" to the GRASS installation directory (not > the source!), something like: > make MODULE_TOPDIR=usr/local/grass-6.4.svn Sorry. Details are important. make MODULE_TOPDIR=/usr/local/grass-6.4.svn > Finally you have to re-run "sudo make install" from within the > GRASS-source directory. ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Compiling addons from svn repository
On Fri, 2008-08-01 at 11:58 +0200, Eduardo corbelle wrote: > Dear all: > > I would like to install an add-on for GRASS 6.3.1 called i.pr that > appears to be available on the svn repository. I never used the svn > repository so I find it a bit challenging (I cannot fully understand > the instructions on > http://www.hpcc.nectec.or.th/grass/download/addons.php). Could anyone > tell me which code should I write at the bash in order to download and > compile the add-on? (any detailed link would do). [...] Assuming you have a working grass installation and you have downloaded the grass-addons, enter the grass-addon directory of you interest (for example if you want to install i.pr): cd /your-path/grass-addons/imagery/i.pr/ Next you have to point "make" to the GRASS installation directory (not the source!), something like: make MODULE_TOPDIR=usr/local/grass-6.4.svn Finally you have to re-run "sudo make install" from within the GRASS-source directory. That should do it. Greets, Nikos P.S. I can't get i.pr working. I've read the help files and the tried the example commands but I always get a Black image when I run i.pr_training. If you have any success could you please post an example? ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] Compiling addons from svn repository
Dear all: I would like to install an add-on for GRASS 6.3.1 called i.pr that appears to be available on the svn repository. I never used the svn repository so I find it a bit challenging (I cannot fully understand the instructions on http://www.hpcc.nectec.or.th/grass/download/addons.php). Could anyone tell me which code should I write at the bash in order to download and compile the add-on? (any detailed link would do). Thank you very much Eduardo Corbelle PS: I'm not sure whether it is relevant, but I'm running grass on Debian Lenny and I have the Subversion client installed. ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user