[GRASS-user] r.watershed G_malloc error
Michael Spencer
michael_spencer at live.co.uk
Wed Apr 13 12:00:20 EDT 2011
Thanks Mark, and others.
I found a pc with a bit more ram, reduced the region to the dtm and it was fine.
Cheers,
Michael
> Date: Wed, 13 Apr 2011 16:12:22 +0200
> Subject: Re: [GRASS-user] r.watershed G_malloc error
> From: markus.metz.giswork at googlemail.com
> To: michael_spencer at live.co.uk
> CC: grass-user at lists.osgeo.org
>
> On Wed, Apr 13, 2011 at 3:37 PM, Michael Spencer
> <michael_spencer at live.co.uk> wrote:
> > Hi All,
> >
> > I'm on windows xp using GRASS 6.4 and 7 and I'm getting the following error
> > running r.watershed:
> >
> > ERROR: G_malloc: unable to allocate 2521456396 bytes of memory at
> > init_vars.c:137
> >
> > I've 2Gb of ram and the dtm I'm using is 185Mb in (pre import) ascii grid
> > format, so not massive. Is the above error because I'm short on ram for the
> > above process, or is it something else?
> >
>
> 1. make sure the current region settings are ok, i.e. not extending
> beyond the extents of the dtm and aligned to the dtm (g.region
> align=dtm)
>
> 2. use the disk swap mode with r.watershed -m
>
> Markus M
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20110413/154fb2d8/attachment.html
More information about the grass-user
mailing list