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

Markus Metz markus.metz.giswork at googlemail.com
Sun Mar 25 07:48:10 EDT 2012


On Sun, Mar 25, 2012 at 12:57 PM, Daniel Lee <lee at isi-solutions.org> wrote:
> Does GRASS 7 use a different algorithm, or why is it only possible on 7?
> Doesn't the -m option work in 6.4 too?

Yes, the -m option works in 6.4 too. But I guess that for the curent
region some of the temporary files will be larger than 2 GB and Large
File Support is needed, which is for wingrass only available in GRASS
7, not in 6.x.

Markus M

>
> Daniel
>
> --
>
> B.Sc. Daniel Lee
> Geschäftsführung für Forschung und Entwicklung
> ISIS - International Solar Information Solutions GbR
> Vertreten durch: Daniel Lee, Nepomuk Reinhard und Nils Räder
>
> Deutschhausstr. 10
> 35037 Marburg
> Festnetz: +49 6421 379 6256
> Mobil: +49 176 6127 7269
> E-Mail: Lee at isi-solutions.org
> Web: http://www.isi-solutions.org
>
> ISIS wird gefördert durch die Bundesrepublik Deutschland, Zuwendungsgeber:
> Bundesministerium für Wirtschaft und Technologie aufgrund eines Beschlusses
> des Deutschen Bundestages, sowie durch die Europäische Union,
> Zuwendungsgeber: Europäischer Sozialfonds.
> Zusätzliche Unterstützung erhält ISIS von dem Entrepreneurship Cluster
> Mittelhessen, der Universität Marburg, dem Laboratory for Climatology and
> Remote Sensing und dem GIS-Lab Marburg.
>
>
>
>
> Am 25. März 2012 12:49 schrieb Markus Metz
> <markus.metz.giswork at googlemail.com>:
>>
>> 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
>> _______________________________________________
>> grass-user mailing list
>> grass-user at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/grass-user
>
>


More information about the grass-user mailing list