Re: [GRASS-user] Cartografia

2011-07-06 Thread Ricardo Filipe Soares Garcia da
Hi Nuno This list is in english and mostly about GRASS related issues. Your question is neither. Since you are posing a very specific question about availability of geological data charts in a portuguese district, It'd be better to ask about it at a more appropriate place. Maybe try the local

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

2011-05-18 Thread Ricardo Filipe Soares Garcia da
Hi António I usually start all my python scripts with the following two lines: #!/usr/bin/env python # -*- coding: utf-8 -*- The first line is nice for linux users. The second line ensures that I can write non-ASCII characters in my code. In your case, just add this second line to your script

Re: [GRASS-user] GRASS'c Python core function to use as g.mlist

2011-03-14 Thread Ricardo Filipe Soares Garcia da
'mapset'. If I avoid using mapset I get a dictionary variable in which, each entry is the list of rasters for each MAPSET. Am I doing something wrong? Thanks Jenny On Fri, Mar 11, 2011 at 2:29 PM, Ricardo Filipe Soares Garcia da ricardo.garcia.si...@gmail.com wrote: Hi Jenny Long story short

Re: [GRASS-user] GRASS'c Python core function to use as g.mlist

2011-03-11 Thread Ricardo Filipe Soares Garcia da
Hi Jenny Long story short: use your command like this (note the asterisk on the 'pattern' variable): # python code p=grass.mlist_grouped ('rast', pattern='output*', mapset='Mapping') I am using the Ipython shell to script grass. It has a cool feature, that if you type the name of a function

Re: [GRASS-user] Running an external executable file from a Python Script

2011-03-10 Thread Ricardo Filipe Soares Garcia da
Hi (Olá) in order to figure out what is your current working folder (or active folder) you can do # python code import os os.getcwd() # end of code This will return a string with your current working folder. As Glyn is stating, if you are going to call this external binary from within a

Re: [GRASS-user] WinGRASS: Error when importing GRIB files

2010-11-29 Thread Ricardo Filipe Soares Garcia da
Olá António On my windows VM, I have an older osgeo4w install, that hasn't got GRIB support available. Maybe thats your problem as well? Run the command gdalinfo --formats through the osgeo4w shell. Look for the GRIB format at the output. If you cannot find a line that says GRIB there, your

Re: [GRASS-user] elevation profile

2010-07-15 Thread Ricardo Filipe Soares Garcia da
Hi I think r.profile[1] can probably help you get to the output you want. In the past I had looked into doing the exact same thing as you. I ended up using SAGA GIS[2], as it has a predefined module that does exactly this task, and I was in a hurry ;) Good luck [1] -

Re: [GRASS-user] grass 6.4 rc5 and python scripting

2009-07-01 Thread Ricardo Filipe Soares Garcia da
how/where do you set the variable? it needs to be set before GRASS begins. I have set the GRASS_ADDON_PATH variable in my ~/.bashrc, like this export GRASS_ADDON_PATH=/home/ricardo/gisProjectos/grassAddons in the gnome menu entry prefs do you have start in terminal ticked? Yep, it

[GRASS-user] network analysis: cost columns and v.net.alloc problem

2009-07-01 Thread Ricardo Filipe Soares Garcia da
Hello list I have a problem with the setting up of a vector map for network analysis: - I have two cost columns associated with the cost of traveling on each direction of arcs (so the afcol and abcol). - It happens that on some arcs (representing streets) sometimes it is not allowed to travel in

[GRASS-user] grass 6.4 rc5 and python scripting

2009-06-30 Thread Ricardo Filipe Soares Garcia da
Hello list I compiled grass-6.4.0RC5 (downloaded a tarball from the main site). I'd like to learn about scripting grass with python. Following the first sample script at the GRASS Python scripting library (http://download.osgeo.org/grass/grass6_progman/pythonlib.html) I created a test file

Re: [GRASS-user] grass 6.4 rc5 and python scripting

2009-06-30 Thread Ricardo Filipe Soares Garcia da
Filipe Soares Garcia da ricardo.garcia.si...@gmail.com: Following the first sample script at the GRASS Python scripting library (http://download.osgeo.org/grass/grass6_progman/pythonlib.html) I created a test file called teste.py, and placed it on the Desktop. When I try to run it inside a GRASS

Re: [GRASS-user] grass 6.4 rc5 and python scripting

2009-06-30 Thread Ricardo Filipe Soares Garcia da
Hello all Thanks for your good advice. I decided to go with the option of EXPORTing the grass addon path and put my scripts there, which works ok, well... kind of. It happens that when I launch GRASS from the terminal, the GRASS_ADDON_PATH gets correctly added to the PATH and I can load my test