Re: [GRASS-user] Python placeholder (%d) in stdin statement of db.execute

2013-04-11 Thread Markus Metz
On Thu, Apr 11, 2013 at 8:58 AM, Hamish hamis...@yahoo.com wrote: Johannes wrote: I just tested it again and realized this problem is not related to the placeholder in the python code, but probably an other issue of my pythoncode line nothing is update when use:

[GRASS-user] confused by the GRASS Programmer's topology examples...

2013-04-11 Thread G. Allegri
Hi all, I'm reading the GRASS7 programmer's manual, to update my experience with GRASS (I'm going to use it for some network analysis, and probably I will need to extend it) Looking at the topology examples [1] I fill a bit confused by the types of nodes and lines, which vary between the different

Re: [GRASS-user] Python placeholder (%d) in stdin statement of db.execute

2013-04-11 Thread Johannes Radinger
Hi all, Thank you Hamish, including the option input=- in the python line (for GRASS7) solved the problem. Now I get an update/entry in my attribute table. This is a different behavior from grass65 where this additional option is not needed. /johannes On Thu, Apr 11, 2013 at 11:15 AM, Markus

[GRASS-user] GRASS-Python Script: Check if output already exists, overwrite

2013-04-11 Thread Johannes Radinger
Hi, I would like to check if the file defined as output in a python script already exists and fire an error when it exists and the overwrite flag is not set. Furhtermore I'd like to check this already in the beginning before all calculations in the script are executed. I thought about something

Re: [GRASS-user] confused by the GRASS Programmer's topology examples...

2013-04-11 Thread G. Allegri
Going on grasping the data structures... - Point example: a point doesn't have nodes but have a line (P_LINE), with type GV_POINT. It's enough for me to get confused :) A P_LINE structure has a void * topo opaque element [2], which will point to the relative topology structure depending

Re: [GRASS-user] Python placeholder (%d) in stdin statement of db.execute

2013-04-11 Thread Glynn Clements
Johannes Radinger wrote: Thank you Hamish, including the option input=- in the python line (for GRASS7) solved the problem. Why read the command from stdin rather than using sql=...? E.g.: grass.write_command(db.execute, sql = UPDATE my points SET prob=100) -- Glynn Clements

Re: [GRASS-user] GRASS-Python Script: Check if output already exists, overwrite

2013-04-11 Thread Glynn Clements
Johannes Radinger wrote: I would like to check if the file defined as output in a python script already exists and fire an error when it exists and the overwrite flag is not set. Furhtermore I'd like to check this already in the beginning before all calculations in the script are executed.

[GRASS-user] How to start GRASS 6.4 command line on linux

2013-04-11 Thread BLANDENIER Lucien
Dear all, I recently switched to linux (Mint KDE) and I simply don't find how to start the command line terminal of grass. Could someone help me? thanks Lucien ___ grass-user mailing list grass-user@lists.osgeo.org

Re: [GRASS-user] How to start GRASS 6.4 command line on linux

2013-04-11 Thread José Miguel Barrios
Hey Lucien, If you start a new terminal and start grass (by typing grass), you will be able to execute grass commands from the terminal. Success! Miguel 2013/4/11 BLANDENIER Lucien lucien.blanden...@unine.ch Dear all, I recently switched to linux (Mint KDE) and I simply don't find how to

[GRASS-user] red square around node topology information?

2013-04-11 Thread G. Allegri
I apologize for the naive question but I haven't been able to find an explanation for the meaning of the square boxes that appear around my lines layer's nodes, when I display topological informations on the map. I thought they could indicate errors, but my layer appear to be topologically ok.

Re: [GRASS-user] red square around node topology information?

2013-04-11 Thread Markus Metz
On Thu, Apr 11, 2013 at 3:21 PM, G. Allegri gioha...@gmail.com wrote: I apologize for the naive question but I haven't been able to find an explanation for the meaning of the square boxes that appear around my lines layer's nodes, when I display topological informations on the map. These

Re: [GRASS-user] GRASS-Python Script: Check if output already exists, overwrite

2013-04-11 Thread Johannes Radinger
Thank you! The grass.script.overwrite() function was the one I was looking for. :) On Thu, Apr 11, 2013 at 1:00 PM, Glynn Clements gl...@gclements.plus.comwrote: Johannes Radinger wrote: I would like to check if the file defined as output in a python script already exists and fire an

Re: [GRASS-user] Python placeholder (%d) in stdin statement of db.execute

2013-04-11 Thread Johannes Radinger
Oh yes, of course I could use the sql= option... I just overlooked that after moving from GRASS6.5 where this option is not yet existing. Thank you ... /Johannes On Thu, Apr 11, 2013 at 12:47 PM, Glynn Clements gl...@gclements.plus.comwrote: Johannes Radinger wrote: Thank you Hamish,

Re: [GRASS-user] How to start GRASS 6.4 command line on linux

2013-04-11 Thread Marco Lechner - FOSSGIS e.V.
grass --help tells you to use grass -text Marco Am 11.04.2013 14:30, schrieb José Miguel Barrios: Hey Lucien, If you start a new terminal and start grass (by typing grass), you will be able to execute grass commands from the terminal. Success! Miguel 2013/4/11 BLANDENIER Lucien

[GRASS-user] Fuzzy K-mean

2013-04-11 Thread Robert A Brown
Hello All, I am trying to find a way to process a fuzzy K-mean cluster using multiple rasters/grids in GRASS. Is anyone aware of a grass add-on or another simple process I can use to accomplish this? Thanks, Robert Brown PhD Student Purdue University Department of Agronomy

Re: [GRASS-user] Fuzzy K-mean

2013-04-11 Thread Thomas Adams
Robert I would recommend a combination of GRASS and R (http://cran.r-project.org/). R has fuzzy K-mean cluster capability, using the R addon package spgrass6 to read/write to/from GRASS and R. Also, see this: http://www.r-bloggers.com/fuzzy-clustering-with-fanny/ and this:

Re: [GRASS-user] Exercises and Tutorials for GRASS GIS

2013-04-11 Thread Markus Neteler
On Wed, Apr 10, 2013 at 1:06 PM, Adrian Kirilov kirilov.adr...@gmail.com wrote: Hello to all GRASS GIS users, My name is Adrian Kirilov. I'm currently student and I'm making my thesis this semester. I have to use GIS software for it and I decided to use GRASS GIS. I have to work with

Re: [GRASS-user] Fuzzy K-mean

2013-04-11 Thread Robert A Brown
Hi Tom, I am an avid R user and forgot about the spgrass6 addon. I have linked to grass through R and read in my rasters with the following script. The process worked beautifully and I appreciate you reminding me of the package and process!!! Script for reading the rasters ###

Re: [GRASS-user] red square around node topology information?

2013-04-11 Thread Hamish
Giovanni wrote: I haven't been able to find an explanation for the meaning of the square boxes that appear around my lines layer's nodes, when I display topological informations on the map. I thought they could indicate errors, but my layer appear to be topologically ok. they are just

Re: [GRASS-user] Fuzzy K-mean

2013-04-11 Thread Hamish
Tom wrote: I would recommend a combination of GRASS and R (http://cran.r- project.org/). R has fuzzy K-mean cluster capability, using the R addon package spgrass6 to read/write to/from GRASS and R. see Roger's tutorial here: http://grasswiki.osgeo.org/wiki/R_statistics Hamish