Re: [GRASS-user] Re: Using temp files in Grass Script

2011-05-19 Thread Glynn Clements
Johannes Radinger wrote: Using an exit handler ensures that the temporary map gets removed regardless of how the script terminates (e.g. if it terminates due to an exception). Thank you for your nice examples how to do that with tmp files and the exit handler. Just some questions:

Re: [GRASS-user] Using d.vect in python script

2011-05-19 Thread Glynn Clements
Daniel Victoria wrote: It's my first grass python script using all the bells and whistles (g.parser gui construction and the grass.run_command) so I might be asking something silly. Can I use d.vect and d.rast commands in python script so that the map is displayed in the GUI? I'm running

[GRASS-user] Using grass.run_commmand

2011-05-19 Thread Luisa Peña
Hi there I'm using grass.run_command and I have one question: besides setting flags, parameters can I also get error and output from that function like p=grass.run_command(r.out.xyz, parameters=X, flags=f..., stdout=output, stderr=error) Is this possible? Thanks Luisa

Re: [GRASS-user] using not so common characters in Python Script

2011-05-19 Thread António Rocha
Olá Ricardo :) Thanks for the feedback. Just one last question: is there any known limitation for using this encoding in Grass Python Scripts? ( # -*- coding: utf-8 -*- Thanks Antonio __ Information from ESET NOD32 Antivirus, version of virus signature database 6133 (20110518)

Re: [GRASS-user] Re: Using temp files in Grass Script

2011-05-19 Thread Johannes Radinger
Original-Nachricht Datum: Thu, 19 May 2011 07:11:47 +0100 Von: Glynn Clements gl...@gclements.plus.com An: Johannes Radinger jradin...@gmx.at CC: grass-user@lists.osgeo.org Betreff: Re: [GRASS-user] Re: Using temp files in Grass Script Johannes Radinger wrote:

Re: [GRASS-user] Manual to own python script

2011-05-19 Thread Johannes Radinger
Original-Nachricht Datum: Mon, 16 May 2011 13:56:10 +0200 Von: Markus Neteler nete...@osgeo.org An: Johannes Radinger jradin...@gmx.at CC: GRASS user list grass-user@lists.osgeo.org Betreff: Re: [GRASS-user] Manual to own python script On Mon, May 16, 2011 Markus Neteler:

[GRASS-user] Using a r.mapcalc expression in grass.mapcalc

2011-05-19 Thread Jenny Turner
I need to use this expression output=@input (input has labels and I want to export them so i need to do this). How can I do this in grass.mapcalc in Python? Does it accept @? Thanks ___ grass-user mailing list grass-user@lists.osgeo.org

Re: [GRASS-user] Using grass.run_commmand

2011-05-19 Thread Glynn Clements
Luisa Peña wrote: I'm using grass.run_command and I have one question: besides setting flags, parameters can I also get error and output from that function like p=grass.run_command(r.out.xyz, parameters=X, flags=f..., stdout=output, stderr=error) Use read_command or pipe_command.

Re: [GRASS-user] Installing two versions of grass

2011-05-19 Thread Glynn Clements
Chethan S. wrote: Currently I have two GRASS Versions - 6.4.2 and 6.5 SVN installed. I download the SVN source code to my home folder and install it to the default location, i.e., /usr/local/. Now there are grass-6.4.2svn and grass-6.5.svn in my /usr/local folder and allied executables in

[GRASS-user] Re: Is it possible to export labels in image?

2011-05-19 Thread Luis Lisboa
Hi GIonanni Suggested me to use r.mapcalc new=@old_with_labels but I get a map with Nulls. Is there any way to export Labels? THanks On Fri, May 13, 2011 at 8:44 AM, Luis Lisboa luislisboa1...@gmail.comwrote: Greetings I have an raster file with labels (used r.reclass). Is it possible to

Re: [GRASS-user] Using a r.mapcalc expression in grass.mapcalc

2011-05-19 Thread Glynn Clements
Jenny Turner wrote: I need to use this expression output=@input (input has labels and I want to export them so i need to do this). How can I do this in grass.mapcalc in Python? Does it accept @? grass.mapcalc() is just a wrapper around r.mapcalc, so it supports whatever r.mapcalc supports.

Re: [GRASS-user] Re: Is it possible to export labels in image?

2011-05-19 Thread Giovanni Manghi
Hi Luis, GIonanni Suggested me to use r.mapcalc new=@old_with_labels but I get a map with Nulls. Is there any way to export Labels? sorry, it works for me here. Any place where to download a sample of your rasters and give a try here? Cheers -- Giovanni --

[GRASS-user] RE: grass-user Digest, Vol 61, Issue 42 [SEC=UNCLASSIFIED]

2011-05-19 Thread Andrew MacIntyre
Date: Wed, 18 May 2011 14:53:25 +0200 From: Johannes Radinger jradin...@gmx.at Subject: Re: [GRASS-user] Re: Using temp files in Grass Script To: Glynn Clements gl...@gclements.plus.com Cc: grass-user@lists.osgeo.org Message-ID: 20110518125325.274...@gmx.net Content-Type: text/plain;

[GRASS-user] grass standalone

2011-05-19 Thread Mohammed Rashad
how to run a custom grass viewer outside grass shell eg python gui_modules/render.py but it gives me error Initializing... Traceback (most recent call last): File grass-qt/render.py, line 1308, in module image = map.Render(force = True) File grass-qt/render.py, line 865, in Render