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
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
'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
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
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
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
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] -
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
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
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
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
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
12 matches
Mail list logo