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:
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
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
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)
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:
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:
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
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.
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
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
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.
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 --
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;
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
14 matches
Mail list logo