[GRASS-user] Re: problem using r.watershed

Markus Metz markus.metz.giswork at googlemail.com
Sun Mar 25 06:49:34 EDT 2012


On Sun, Mar 25, 2012 at 12:30 PM, Filipe Silva Dias
<filipesdias at gmail.com> wrote:
> I switched the resolution from 30x30 to 100x100 and now it works. Problem
> solved.
>
>
> On Sun, Mar 25, 2012 at 11:12 AM, Filipe Silva Dias <filipesdias at gmail.com>
> wrote:
>>
>> I'm using GRASS 6.4.2 and I'm on Windows 7
>>
>>
>> On Sun, Mar 25, 2012 at 11:11 AM, Filipe Silva Dias
>> <filipesdias at gmail.com> wrote:
>>>
>>> Dear all
>>>
>>> I'm trying to run r.watershed on a ASTER DEM (with the size of Portugal)
>>> but I'm getting this error:
>>>
>>> r.watershed elevation=DemPt at ETRS89 stream=stream
>>> threshold=10000
>>> SECTION 1a (of 5): Initiating Memory.
>>> ERROR: G_malloc: unable to allocate 1515173064 bytes at init_vars.c:134
>>> Subprocess failed with exit code 1
>>> category information for [stream] in [ETRS89] missing or invalid
>>>
>>> What am I doing wrong?
>>>
As you figured out already, the region, i.e. number of cells was too
large. In order to run r.watershed with that region (Portugal at 30m
resolution) on Windows, you would need GRASS 7 and run r.watershed
with the -m option.

Markus M


More information about the grass-user mailing list