Re: [GRASS-user] mapcalc problem in python script!!

2011-02-03 Thread Johannes Radinger
Hello again, just to give you some more information on my problem: I am running exactly following script: --- import sys import os import atexit import grass.script as grass import grass.script.setup as gsetup # set

Re: [GRASS-user] Remove duplicate points

2011-02-03 Thread Maciej Sieczka
W dniu 02.02.2011 23:07, Zem LeRoi pisze: Hello, I have GPS data where multiple points have the same coordinates. I would like to simplify the file and erase any duplicates. I have tried using v.clean: v.clean input=kpr1 output=clean1 type=point tool=rmdupl The command completes ok, but when

Re: [GRASS-user] 2 questions about usage of g.region

2011-02-03 Thread katrin eggert
Thanks Micha and Hermann for your feedback. Just one very last question: in a Python script how can I make an variabel to equal to an image spatial resolution? (I mean, How can I retrieve an image spatial resolution)? THanks Best regards, Kat 2011/2/3 Micha Silver mi...@arava.co.il katrin

Re: [GRASS-user] 2 questions about usage of g.region

2011-02-03 Thread Mark Seibel
There is some very good documentation on Python and GRASS. I hope this helps. http://grass.osgeo.org/wiki/GRASS_and_Python Mark On Thu, Feb 3, 2011 at 9:57 AM, katrin eggert katrineggert1...@gmail.com wrote: Thanks Micha and Hermann for your feedback. Just one very last question: in a Python

Re: [GRASS-user] 2 questions about usage of g.region

2011-02-03 Thread Martin Landa
2011/2/3 katrin eggert katrineggert1...@gmail.com: Thanks Micha and Hermann for your feedback. Just one very last question: in a Python script how can I make an variabel to equal to an image spatial resolution? (I mean, How can I retrieve an image spatial resolution)? raster_info() [1] e.g.

[GRASS-user] Re: mapcalc/mapcalculator in python script

2011-02-03 Thread Johannes Radinger
Hello Glynn, Somehow I didn't your answer via email, I just found it at http://permalink.gmane.org/gmane.comp.gis.grass.user/38530 I attached the text below. Yes, I am sure, that I want to do the if(B,C) not e.g. if(B,B,C), but anyhow...it doesn't work I tried the **options version, but

Re: [GRASS-user] 2 questions about usage of g.region

2011-02-03 Thread Thibault Lemaitre
Le 03/02/2011 00:20, katrin eggert a écrit : 1- Is it possible to define active region spatial resolution by selecting an image instead of putting values? You can also use your mouse. Load your image in the Layer manager, right click on this map and select Set computational region from

[GRASS-user] Re: mapcalc problem in python script!!

2011-02-03 Thread Joshua Arnott
Johannes, Looking at your Python code and the error, I expect the issue is with the way you are calling the script, rather than it's content. From the documentation, g.parser returns a Python dictionary. The options command is a variable, rather than a function.

Re: [GRASS-user] Re: mapcalc problem in python script!!

2011-02-03 Thread Joshua Arnott
On 3 Feb 2011, at 16:55, Johannes Radinger jradin...@gmx.at wrote: Original-Nachricht Datum: Thu, 3 Feb 2011 16:26:47 + Von: Joshua Arnott j...@snorfalorpagus.net An: grass-user@lists.osgeo.org grass-user@lists.osgeo.org Betreff: [GRASS-user] Re: mapcalc problem in

Re: [GRASS-user] mapcalc problem in python script!!

2011-02-03 Thread Glynn Clements
Johannes Radinger wrote: Somehow I didn't your answer via email, I just found it at http://permalink.gmane.org/gmane.comp.gis.grass.user/38530 For whatever reason, GMX doesn't like my IP address, and bounces my emails. The problem is compounded by a feature of the mailing list software which