Dear all,
I have a DEM with dimensions 10,000 x 6,000. Now I need to
extract all the stream or drainage, as well as generated some
other stream/flow related features like flow direction,
stream lenght, etc.
I work on a computer with 6Gb under Vista, and the grass
version is the OSGeo4W one. But when I try to run the command
below I get one error relate to r.watershed.seg.exe:
r.watershed elevation=aster_dem stream=aster_dem_stream threshold=150 -m memory=2048
Any idea of how to solve that?
cheers
milton
brazil=toronto
Milton Cezar Ribeiro wrote:
Dear all,
I have a DEM with dimensions 10,000 x 6,000. Now I need to
extract all the stream or drainage, as well as generated some
other stream/flow related features like flow direction,
stream lenght, etc.
I work on a computer with 6Gb under Vista, and the grass
version is the OSGeo4W one. But when I try to run the command
below I get one error relate to r.watershed.seg.exe:
r.watershed elevation=aster_dem stream=aster_dem_stream threshold=150 -m memory=2048
Any idea of how to solve that?
Maybe it is the Vista UAC problem, there were recently other posts related to this.
Just a guess,
Markus M
Hi Hamish,
I will try without the memory saving flag…
Computer with more memory? The mine is 6Gb (!), and I tryed with 1/4 of the image (5000x3000) but still get error. Any other hint are welcome.
cheers
milton
2009/9/28 Hamish <hamish_b@yahoo.com>
try a smaller region
(or try on a computer with more memory)
(yes, I saw the seg part, hey try without that memory saving flag too!)
H
— On Mon, 28/9/09, Markus Metz <markus.metz.giswork@googlemail.com> wrote:
From: Markus Metz <markus.metz.giswork@googlemail.com>
Subject: Re: [GRASS-user] stream extraction from ASTER dem
To: “Milton Cezar Ribeiro” <miltinho.astronauta@gmail.com>
Cc: “grass-user grass-user” <grass-user@lists.osgeo.org>
Received: Monday, 28 September, 2009, 7:14 PM
Milton Cezar Ribeiro wrote:
Dear all,
I have a DEM with dimensions 10,000 x 6,000. Now
I need to
extract all the stream or drainage, as well as
generated some
other stream/flow related features like flow
direction,
stream lenght, etc.
I work on a computer with 6Gb under Vista, and
the grass
version is the OSGeo4W one. But when I try to run the
command
below I get one error relate to r.watershed.seg.exe:
r.watershed elevation=aster_dem
stream=aster_dem_stream threshold=150 -m memory=2048
Any idea of how to solve that?
Maybe it is the Vista UAC problem, there were recently
other posts related to this.
Just a guess,
Markus M
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user
Hi Markus,
May be you are right (Vista issue!). Two month ago I was trying to run the same steps on grass, but I was expecting that new OSGeo4W release included some fix for that. 
Anyway, thanks for your time.
Any colleague that could suggest a way of I extract some geomorphometry features (sensu Tom Hengl!) from “large” DEM (10,000x6,000), please let me know.
bests
milton
2009/9/28 Markus Metz <markus.metz.giswork@googlemail.com>
Milton Cezar Ribeiro wrote:
Dear all,
I have a DEM with dimensions 10,000 x 6,000. Now I need to
extract all the stream or drainage, as well as generated some
other stream/flow related features like flow direction,
stream lenght, etc.
I work on a computer with 6Gb under Vista, and the grass
version is the OSGeo4W one. But when I try to run the command
below I get one error relate to r.watershed.seg.exe:
r.watershed elevation=aster_dem stream=aster_dem_stream threshold=150 -m memory=2048
Any idea of how to solve that?
Maybe it is the Vista UAC problem, there were recently other posts related to this.
Just a guess,
Markus M
Milton Cezar Ribeiro wrote:
Hi Markus,
May be you are right (Vista issue!). Two month ago I was trying to run the same steps on grass, but I was expecting that new OSGeo4W release included some fix for that. 
That problem of r.watershed on Vista 64bit (I assume you use Vista 64bit because of 6GB RAM) showed up before. I guess the basic problem is that wingrass is 32bit because msys and gcc coming with msys and OS-specific include files are all 32 bit. A 32bit application can't use all 6GB. It would be interesting to see if other modules with huge RAM requirements also fail on Vista 64bit. Anyway, valgrind and gdb did not show me anything on Linux. Try GRASS on XP or Linux if possible, there it should work.
Good luck,
Markus M
Anyway, thanks for your time.
Any colleague that could suggest a way of I extract some geomorphometry features (sensu Tom Hengl!) from "large" DEM (10,000x6,000), please let me know.
bests
milton
2009/9/28 Markus Metz <markus.metz.giswork@googlemail.com <mailto:markus.metz.giswork@googlemail.com>>
Milton Cezar Ribeiro wrote:
Dear all,
I have a DEM with dimensions 10,000 x 6,000. Now I need to
extract all the stream or drainage, as well as generated some
other stream/flow related features like flow direction,
stream lenght, etc.
I work on a computer with 6Gb under Vista, and the grass
version is the OSGeo4W one. But when I try to run the command
below I get one error relate to r.watershed.seg.exe:
r.watershed elevation=aster_dem stream=aster_dem_stream
threshold=150 -m memory=2048
Any idea of how to solve that?
Maybe it is the Vista UAC problem, there were recently other posts
related to this.
Just a guess,
Markus M
Milton Cezar Ribeiro wrote:
Any colleague that could suggest a way of I extract some geomorphometry features (sensu Tom Hengl!) from "large" DEM (10,000x6,000), please let me know.
Maybe r.watershed in grass 6.5? The A* Search section of r.watershed in 6.5 needs only about 40% of the memory needed in 6.4 and is about 30% faster than in 6.4. Both the reduced memory consumption and increased speed are more noticeable on larger maps with > 50 million non-NULL cells. In 6.5, r.watershed also supports floating point DEMs and MFD, each of which and particularly the combination of both produce more realistic results.
r.terraflow was designed particularly for massive datasets and should have no problems with a map of 60 million cells.
Lastly, an environment where GRASS (and SAGA rev Tom Hengl) can be compiled as 64bit application helps processing large datasets.
Best wishes,
Markus M
bests
milton
2009/9/28 Markus Metz <markus.metz.giswork@googlemail.com <mailto:markus.metz.giswork@googlemail.com>>
Milton Cezar Ribeiro wrote:
Dear all,
I have a DEM with dimensions 10,000 x 6,000. Now I need to
extract all the stream or drainage, as well as generated some
other stream/flow related features like flow direction,
stream lenght, etc.
I work on a computer with 6Gb under Vista, and the grass
version is the OSGeo4W one. But when I try to run the command
below I get one error relate to r.watershed.seg.exe:
r.watershed elevation=aster_dem stream=aster_dem_stream
threshold=150 -m memory=2048
Any idea of how to solve that?
Maybe it is the Vista UAC problem, there were recently other posts
related to this.
Just a guess,
Markus M