Fwd: [GRASS-user] Spgrass6 and R using GRASS Bash Scripts

2010-04-22 Thread Gilbert Ferrara
Greetings Thanks Markus and Milton for your help But... Imagine that I'm running a GRASS Script with Module, and all GRASS functions. How can I integrate it in there? I mean, the user selects a raster and How can i use that input to run a Script that calls R? That is my question. Because I can

[GRASS-user] Compare GRASS versions

2010-04-22 Thread Jenny Turner
Greetings I'm preparing a small GIS tool to High School students to do some image processing, image vizualization etc and I'm thinking of using GRASS since is free and pretty much do what I need. But I realized that 6.4, 6.5 and 7 have different characteristics, functionalities. What I need to

Re: [GRASS-user] ps.output installation error

2010-04-22 Thread Francesco Mirabella
Hi Markus, now ps.output installation works fine! thank you as always! Francesco Markus Neteler wrote: On Tue, Apr 20, 2010 at 3:15 PM, Francesco Mirabella mirab...@unipg.it wrote: Hi all, I am trying to compile ps.output from the addons. I've tried both the make MODULE_TOPDIR= etcc

[GRASS-user] Call an external function from GRASS-Pythons Scripts

2010-04-22 Thread Kim Besson
Hi I'm developing a small GRASS Python script but I will need to call an external executive. I already know where to put it (at $PATH) but i don't know how to call it from Python GRASS Script. How can I do this? (as an example it's helloWorld :) ) Thanks Best regards Kim

Re: [GRASS-user] Call an external function from GRASS-Pythons Scripts

2010-04-22 Thread Martin Landa
Hi, 2010/4/22 Kim Besson kimbesson1...@gmail.com: I'm developing a small GRASS Python script but I will need to call an external executive. I already know where to put it (at $PATH) but i don't know how to call it from Python GRASS Script. How can I do this? (as an example it's helloWorld :)

Re: [GRASS-user] Compare GRASS versions

2010-04-22 Thread Markus Neteler
On Thu, Apr 22, 2010 at 10:38 AM, Jenny Turner jennyturner1...@gmail.com wrote: Greetings I'm preparing a small GIS tool to High School students to do some image processing, image vizualization etc and I'm thinking of using GRASS since is free and pretty much do what I need. But I realized

Re: [GRASS-user] Call an external function from GRASS-Pythons Scripts

2010-04-22 Thread Martin Landa
Hi, 2010/4/22 Kim Besson kimbesson1...@gmail.com: From http://download.osgeo.org/grass/grass6_progman/core_8py_source.html I see that besides the main argument there is **kwargs. What is this? all defined arguments from Popen

[GRASS-user] Call an external function from GRASS-Pythons Scripts

2010-04-22 Thread Martin Landa
Hi, {please keep discussion on ML} 2010/4/22 Kim Besson kimbesson1...@gmail.com: Bur for instance you separated two argument inside [ ]. This means that for instance If I need to call a external function and inser input and output I would have to do this: grass.call(['whoami', 'input_file',

Re: [GRASS-user] Call an external function from GRASS-Pythons Scripts

2010-04-22 Thread Kim Besson
Here now at the ML for everyone :) But which one of the two options is correct? The first one or the second one? Or both are ok? (at least the second one is correct I suppose) 2010/4/22 Martin Landa landa.mar...@gmail.com Hi, {please keep discussion on ML} 2010/4/22 Kim Besson

[GRASS-user] Re: algorithm used in i.cluster

2010-04-22 Thread Georg Kaspar
Markus Neteler wrote: Luckily it is open source :) and also quite well documented (at least it is possible to understand what's going on without being a C-guru) does anybody know which exact algorithm is used (k-means probably...)? I'm afraid that you need to compare it to a k-means

Re: [GRASS-user] Call an external function from GRASS-Pythons Scripts

2010-04-22 Thread Martin Landa
Hi, 2010/4/22 Kim Besson kimbesson1...@gmail.com: would have to do this: grass.call(['whoami', 'input_file', 'output_file']) or grass.call(['whoami input output_file']) if the syntax is 'cmd input output' then grass.call(['cmd', 'input', 'output']) see

Re: [GRASS-user] Call an external function from GRASS-Pythons Scripts

2010-04-22 Thread Martin Landa
Hi, 2010/4/22 Martin Landa landa.mar...@gmail.com: would have to do this: grass.call(['whoami', 'input_file', 'output_file']) or grass.call(['whoami input output_file']) if the syntax is 'cmd input output' then grass.call(['cmd', 'input', 'output']) see

Re: [GRASS-user] Call an external function from GRASS-Pythons Scripts

2010-04-22 Thread Markus Neteler
On Thu, Apr 22, 2010 at 1:52 PM, Martin Landa landa.mar...@gmail.com wrote: ... PS: Probably it would be reasonable to change configuration of ML (send replay to the list instead to 'from') to avoid this mistake. Hi Martin, I would strongly advise against that (see '90s archive for some

[GRASS-user] Problem with digitization and NVIZ

2010-04-22 Thread Sramkova, Anna
Hi, I'm working on spatial modeling in population genomics and I'd like to use GRASS for processing displaying of the world map (in attachment). Unfortunately, I have been unable to accomplish two out of the three things I would like to do: 1. (this one I mentioned in an earlier email, but

[GRASS-user] DIRECTION

2010-04-22 Thread Sofina Natalia
Hello everybody ! I would like to compare values for raster and vector points at positions of vector points. Raster is filtered with edge detection function. And as compared value is “direction”. I've created points along input lines in new vector (v.to.points). How can I get now the

[GRASS-user] TopoFlow and GRASS (or any continuous distributed hydrologic model)

2010-04-22 Thread stephen sefick
I would like to simulate the hydrology of a watershed. Does anyone have guidance for this particular endeavor- especially with the help of GRASS GIS as a raster processor, or engine for model analysis? -- Stephen Sefick Let's not spend our time and resources thinking about things that are so

Re: [GRASS-user] DIRECTION

2010-04-22 Thread M S
How about v.what.rast ? Mark On Thu, Apr 22, 2010 at 9:39 AM, Sofina Natalia nsof...@gmx.de wrote: Hello everybody !  I would like to compare values for raster and vector points at positions of  vector points. Raster is filtered with edge detection function. And as  compared value is

Re: [GRASS-user] TopoFlow and GRASS (or any continuous distributed hydrologic model)

2010-04-22 Thread Rich Shepard
On Thu, 22 Apr 2010, stephen sefick wrote: I would like to simulate the hydrology of a watershed. Does anyone have guidance for this particular endeavor- especially with the help of GRASS GIS as a raster processor, or engine for model analysis? There are several hydrologic modules

Re: [GRASS-user] TopoFlow and GRASS (or any continuous distributed hydrologic model)

2010-04-22 Thread M S
For a simulation of a rain event, r.sim.water is pretty advanced. To extract hydrologic features from a raster DEM, there are quite a few tools under Raster--Hydrologic Modeling. The Watershed Analysis (r.watershed) provides a lot of useful outputs. Also, the r.streams.* suite of tools are

[GRASS-user] Re: algorithm used in i.cluster

2010-04-22 Thread Georg Kaspar
Sorry for flooding the list, but i found an interesting note in Schowengerdt (2007), p. 400: The ISODATA algorithm (Ball and Hall, 1967) is a common modification of the K-means algorithm and includes merging of clusters if their separation is below a threshold, and splitting of a single

Re: [GRASS-user] Re: algorithm used in i.cluster

2010-04-22 Thread Markus Metz
On Thu, Apr 22, 2010 at 5:35 PM, Georg Kaspar ge...@muenster.de wrote: Sorry for flooding the list, but i found an interesting note in Schowengerdt (2007), p. 400: IMHO, you're welcome:-) Would you mind assembling all this info in a nice little paragraph including full references so that the

Re: [GRASS-user] Problem with digitization and NVIZ

2010-04-22 Thread Martin Landa
Hi, 2010/4/22 Sramkova, Anna anna.sramk...@iee.unibe.ch: 1. (this one I mentioned in an earlier email, but have not gotten an answer yet) I would like to use the digitizing tool to define regions (represented by different numbers) on the map. However, when I choose a layer and then click

Re: [GRASS-user] Problem with digitization and NVIZ

2010-04-22 Thread Martin Landa
Hi, {please keep discussion in ML} 2010/4/22 Sramkova, Anna anna.sramk...@iee.unibe.ch: GRASS version: 6.4.ORC6 installed from Debian repository (apt-get...) Tcl/Tk GUI leaving that to TCL/TK GUI developers... Martin -- Martin Landa landa.martin gmail.com * http://gama.fsv.cvut.cz/~landa

Re: [GRASS-user] Why does v.split convert 3D vector to 2D?

2010-04-22 Thread Markus Metz
On Tue, Mar 9, 2010 at 9:52 AM, Markus Neteler nete...@osgeo.org wrote: On Sun, Mar 7, 2010 at 8:50 PM, Dwight Needels need...@translucida.com wrote: On Mar 7, 2010, at 2:10 PM, Markus Neteler wrote: On Sun, Mar 7, 2010 at 7:13 PM, Dwight Needels need...@translucida.com wrote: I have

AW: [GRASS-user] Problem with digitization and NVIZ

2010-04-22 Thread Sramkova, Anna
Hi, thank you, using vector instead of a raster actually helped in both cases :-) As for the visualization, I get the same problem on a Debian laptop (no VirtualBox)...seems to me something more fundamental is the problem. Is there a special format for elevation map or something? The vectorized

RE: [GRASS-user] Question with Python-SWIG example [SEC=UNCLASSIFIED]

2010-04-22 Thread Andrew MacIntyre
From: Glynn Clements Andrew MacIntyre wrote: That was what I tried first, but it results in Rast_get_c_row() segfaulting. Then it seems to me that there's some problem with the SWIG wrapper for Rast_get_c_row(), if it won't accept a valid SWIG pointer object returned from another