[GRASS-user] multiple points for r.water.outlet

Hi GRASS folks!

Is there a way to use multiple points as input for r.water.outlet? I have a textfile with 49 pairs of coordinates (points). For each of these 49 points I want to calculate the corrosponding watershed.

I thought about a shellscript which reads every line of the textfile and uses them as input for r.water.outlet. But I wonder if there's a smarter way to do this.

Cheers
Malte

Dear Grass Users

I'm using the grass native on windows (qgis 0.8 with grass) but I have an
error when I use r.watershead.
This is the error I have:

r.watershead elevation=dem_20 threshold=4000 drainage=drain

Warning category information for [drain] in [tagliamento150] is missing or
invalid.

Thanks
Pierluigi De Rosa

Pierluigi De Rosa wrote:

I'm using the grass native on windows (qgis 0.8 with grass) but I have
an error when I use r.watershead.
This is the error I have:

r.watershead elevation=dem_20 threshold=4000 drainage=drain

Warning category information for [drain] in [tagliamento150] is
missing or invalid.

can you reproduce this with the spearfish dataset?

does it work with the Cygwin 6.2.1 install for windows?

Hamish

Hi Hamish

Yes, I have exactly tha same problem also with the spearfish dataset...
I don`t know if on Cygwin it works!
sorry
Pierluigi

Pierluigi De Rosa wrote:

I'm using the grass native on windows (qgis 0.8 with grass) but I have
an error when I use r.watershead.
This is the error I have:

r.watershead elevation=dem_20 threshold=4000 drainage=drain

Warning category information for [drain] in [tagliamento150] is
missing or invalid.

can you reproduce this with the spearfish dataset?

does it work with the Cygwin 6.2.1 install for windows?

Hamish

On Wed, 7 Mar 2007, Pierluigi De Rosa wrote:

Hi Hamish

Yes, I have exactly tha same problem also with the spearfish dataset...
I don`t know if on Cygwin it works!

It works for me on native Windows, current CVS (note I'm not using QGIS):
GRASS 6.3.cvs (spearfish):C:\Documents and Settings\Paul >r.watershed \
elev=elevation.dem thresh=4000 drainage=drain
SECTION 1a (of 5): Initiating Memory.
SECTION 1b (of 5): Determining Offmap Flow.
  100%
SECTION 2: A * Search.
  100%
SECTION 3: Accumulating Surface Flow.
  100%
SECTION 4: Watershed determination.
SECTION 5: Closing Maps.

GRASS 6.3.cvs (spearfish):C:\Documents and Settings\Paul >

Something worth looking at might be whether it is line-ending related. In my local copy of lib/gis/getl.c I have the body of G_getl() replaced by a call to G_getl2() {G_getl2() copes with Windows line endings when reading text files}. BUT I just changed it back and tried r.watershed again and it still works. But that could just be because my spearfish has Unix line endings on the raster cat files - it could still be a problem. Or I could be totally on the wrong track. There might be some other native Windows changes that have "accidentally" fixed it.

Paul

This is the error I have:

r.watershead elevation=dem_20 threshold=4000 drainage=drain

Warning category information for [drain] in [tagliamento150] is
missing or invalid.

can you reproduce this with the spearfish dataset?

does it work with the Cygwin 6.2.1 install for windows?

Hamish

_______________________________________________
grassuser mailing list
grassuser@grass.itc.it
http://grass.itc.it/mailman/listinfo/grassuser

Pierluigi De Rosa wrote:

I'm using the grass native on windows (qgis 0.8 with grass) but I have
an error when I use r.watershead.
This is the error I have:

r.watershead elevation=dem_20 threshold=4000 drainage=drain

Warning category information for [drain] in [tagliamento150] is
missing or invalid.

..

Yes, I have exactly tha same problem also with the spearfish
dataset...

with what command line? and what are the region settings?
I'd like to try and reproduce it here.

I don`t know if on Cygwin it works!

ok, but be aware that Cygwin GRASS for MS Windows is the stable version,
and native MS Windows versions are still highly experimental.

Hamish