[GRASS-user] Question on memory allocation and use

Moritz Lennert mlennert at club.worldonline.be
Sat Oct 1 04:46:19 PDT 2016


On 23/09/16 20:51, Rich Shepard wrote:
> On Fri, 23 Sep 2016, Markus Metz wrote:
>
>> Apparently there are less than 52 MB of free memory left. The resulting
>> vector contours must be quite large. Try to export GRASS_VECTOR_LOWMEM=1
>> before running r.contour.
>>
>> Maybe also use a larger step or less levels.
>
>   Took a different approach by reducing the size of the source DEMs (which
> cover a very large area compared to the area of interest).
>
>   Using v.to.rast I converted the project boundary vector to a raster file,
> then made it into a mask with r.mask. The mask then limited the area of the
> source DEMs with g.copy.

FYI: In grass7, r.mask has a 'vector' parameter which allows you create 
a mask directly from a vector map.

And AFAIK, no need to g.copy. Just run your analysis with the mask set 
(and the region also correctly set to only the area of interest).

Moritz


More information about the grass-user mailing list