Re: [GRASS-user] v.to.rast shell script

2008-09-19 Thread Hamish
John: > Ok, applying my little grey cells (as Poirot would say) to the problem > at hand, I believe I have resolved this as follows: > > for LAYER in `v.category -g option=report in=vect | awk '{print $1}' | > uniq` ; do > v.to.rast in=vect layer="$LAYER" out=vect_$LAYER use=val > done An

Re: [GRASS-user] v.to.rast shell script

2008-09-19 Thread Hamish
John Tull wrote: > >> I was wondering if anyone could suggest a simple shell script to > >> automate the process of running v.to.rast on all layers in > >> a single vector in GRASS? HB: > > sure, just a bash for loop + g.mlist will do it: > > > > for MAP in `g.mlist vect` ; do > > echo v.to.rast

Re: [GRASS-user] v.to.rast shell script

2008-09-19 Thread John C. Tull
On Sep 19, 2008, at 7:07 PM, John C. Tull wrote: Hamish: On Sep 19, 2008, at 6:45 PM, Hamish wrote: John Tull wrote: I was wondering if anyone could suggest a simple shell script to automate the process of running v.to.rast on all layers in a single vector in GRASS? sure, just a bash for

Re: [GRASS-user] v.to.rast shell script

2008-09-19 Thread John C. Tull
Hamish: On Sep 19, 2008, at 6:45 PM, Hamish wrote: John Tull wrote: I was wondering if anyone could suggest a simple shell script to automate the process of running v.to.rast on all layers in a single vector in GRASS? sure, just a bash for loop + g.mlist will do it: for MAP in `g.mlist vec

Re: [GRASS-user] Grass Videos for FOSS4G

2008-09-19 Thread Tim Bowden
Thanks Hamish, slurping it now. Regards, Tim On Fri, 2008-09-19 at 11:29 -0700, Hamish wrote: > Tim Bowden wrote: > > I'm looking for content for the OSGeo booth at FOSS4G. > > Are there any grass videos anyone can point me to that I could > > run along with other content I have? > > there is o

Re: [GRASS-user] v.to.rast shell script

2008-09-19 Thread Hamish
John Tull wrote: > I was wondering if anyone could suggest a simple shell script to > automate the process of running v.to.rast on all layers in > a single vector in GRASS? sure, just a bash for loop + g.mlist will do it: for MAP in `g.mlist vect` ; do echo v.to.rast in="$MAP" out="`echo $M

[GRASS-user] v.to.rast shell script

2008-09-19 Thread John C. Tull
I was wondering if anyone could suggest a simple shell script to automate the process of running v.to.rast on all layers in a single vector in GRASS? Thank you, John ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailm

Re: [GRASS-user] readline completion under bash

2008-09-19 Thread Florian Kindl
On Sep 19 [15:41], Craig Leat wrote: > Thanks for the info, I needed to check my facts before announcing that > tapping out long map names in the GRASS console is a pain, especially > when you have to do it three times to combine the rgb bands. > I have a little workaround for that: I put the name

RE: [GRASS-user] install grass with new wxPython user interface in Ubuntu (Solved)

2008-09-19 Thread Jhon Ortiz
> [cc list] > > Jhon Ortiz wrote: But with this errors: ** Errors in: /usr/local/src/grass-6.3.0/visualization/nviz ** > >> When I type >> cd /usr/local/src/grass-6.3.0/visualization/nviz >> make >> >> Give me a lot erros, but

[GRASS-user] hydrologic modeling

2008-09-19 Thread Edmondo Elisei
Dear All, I have some truobles (a lot of troubles) with r.water.outlet command. I've create a drainage map already (with r.watershed). Trying to create a basin reported to a specific outlet the output map shows all region by a unique color. Thanks regards Edmondo ___

Re: [GRASS-user] Grass Videos for FOSS4G

2008-09-19 Thread Hamish
Tim Bowden wrote: > I'm looking for content for the OSGeo booth at FOSS4G. > Are there any grass videos anyone can point me to that I could > run along with other content I have? there is of course the classic William Shatner narrated promo: http://mpa.itc.it/markus/grass_movie_video_CERL/grass_

[GRASS-user] Grass Videos for FOSS4G

2008-09-19 Thread Tim Bowden
I'm looking for content for the OSGeo booth at FOSS4G. Are there any grass videos anyone can point me to that I could run along with other content I have? Thanks, Tim Bowden -- Experience is that marvelous thing that enables you recognize a mistake when you make it again. __

RE: [GRASS-user] readline completion under bash

2008-09-19 Thread Patton, Eric
>Alas, it seems grass-complete doesn't work: >GRASS 6.3.1svn (msunduzi_lo31):~/GIS/scripts/grass-complete > . bash/Init.sh >Unable to initialize bash completions: bash is too old or too new: >BASH_VERSION= 3.2.25(1)-release (needed = 2.05) I had contacted the author of Grass completions a few year

Re: [GRASS-user] readline completion under bash

2008-09-19 Thread Craig Leat
Hamish wrote: > http://grass.osgeo.org/wiki/GRASS_AddOns#Readline_completion > http://www.sorokine.info/grass-complete/ > http://grass.osgeo.org/download/addons.php > > compiled-in readline support is only used with r.mapcalc. > > I don't know if it will work with GRASS 6, maybe a keen user > might

[GRASS-user] Problem converting sites and vectors

2008-09-19 Thread Kurt Springs
Hi folks I have a small problem. I am running GRASS 6.3 on OS X 10.5.5. When I started with these maps I was use GRASS 5.0.2. As things evolved I converted them over. Now one map set is giving me grief. My sites and some vectors haven't been displaying on this map. I tried reconvert

Re: [GRASS-user] readline completion under bash

2008-09-19 Thread Hamish
Craig Leat wrote: > I'm working on my paper for FOSS4G2008 and was about to say something > about the lack of command completion in GRASS http://grass.osgeo.org/wiki/GRASS_AddOns#Readline_completion http://www.sorokine.info/grass-complete/ http://grass.osgeo.org/download/addons.php > when I remem

[GRASS-user] readline completion under bash

2008-09-19 Thread Craig Leat
Hi I'm working on my paper for FOSS4G2008 and was about to say something about the lack of command completion in GRASS when I remembered seeing the option "--with-readline" in the configure script. I can't find anything on readline (besides the configure option) in the html docs and I'm left wonde

[GRASS-user] Cell limitation for raster maps; Out of memory

2008-09-19 Thread JHartert
Hello Grass Users! My question concerns the water modules: r.flow, r.watershed, r.terraflow,... etc. But it's also interesting for other modules The rastermap from which I'm running the analysis modules has the following r.info:

Re: Re[GRASS-user] sampling categorical data with r.resamp.stats

2008-09-19 Thread Glynn Clements
Jana K. wrote: > I want to resample my categorical raster data from higher resolution to > lower, using mode method. Looking at the syntax, I can't figure out where I > tell the command the new resolution. I am confused, as I had expected that > the command would be implemented at the location wi

Re: [GRASS-user] return value of modules?

2008-09-19 Thread Rainer M Krug
On Fri, Sep 19, 2008 at 11:42 AM, Hamish <[EMAIL PROTECTED]> wrote: > Rainer Krug wrote: >> do the modules of R (e.g. r.stats, ...) have return values >> which I can evaluate to find out if the execution was successful? > > Yes. GRASS modules all return 0 on success and 1 on failure. Good to know

Re: [GRASS-user] return value of modules?

2008-09-19 Thread Hamish
Rainer Krug wrote: > do the modules of R (e.g. r.stats, ...) have return values > which I can evaluate to find out if the execution was successful? Yes. GRASS modules all return 0 on success and 1 on failure. > I would like to use these "return values on error" to evaluate the > success of the c

Re[GRASS-user] sampling categorical data with r.resamp.stats

2008-09-19 Thread Jana K.
Hello, I want to resample my categorical raster data from higher resolution to lower, using mode method. Looking at the syntax, I can't figure out where I tell the command the new resolution. I am confused, as I had expected that the command would be implemented at the location with crude resolut

[GRASS-user] Suggestions for a bit more complex network analysis

2008-09-19 Thread Miha Staut
Dear GRASS-users, v.net.path is able to compute the nearest path from the starting point to the ending point on an network. I would, however, like to find the nearest end point (out of an array of end points) on a network from my starting point. Is this possible? How? My final task is to compu

[GRASS-user] return value of modules?

2008-09-19 Thread Rainer M Krug
Hi do the modules of R (e.g. r.stats, ...) have return values which I can evaluate to find out if the execution was successful? E.g. returning -1 when an error occurred? I would like to use these "return values on error" to evaluate the success of the command when called from R. Thanks, Rainer