<html style="direction: ltr;">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
</head>
<body bidimailui-charset-is-forced="true" style="direction: ltr;"
text="#000000" bgcolor="#FFFFFF">
<br>
<br>
<div class="moz-cite-prefix">On 07/16/2018 09:53 PM, Rich Shepard
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:alpine.LNX.2.20.1807161144290.23050@salmo.appl-ecosys.com">
'less /proc/meminfo' shows:
<br>
<br>
MemTotal: 3874108 kB
<br>
MemFree: 2977416 kB
<br>
MemAvailable: 2972780 kB
<br>
<br>
top tells me that firefox is using ~14% of that. Nothing else is
using
<br>
more than ~1.2%
<br>
<br>
In ~/.bash_profile I 'export GRASS_VECTOR_LOWMEM=1'.
<br>
<br>
When I run r.contour it cannot allocate 671472 bytes of memory.
This seems
<br>
to me to be an amount well within the free or available memory.
What can I
<br>
do to ensure sufficient RAM to run the module?
<br>
<br>
The error (which appears after ~8% of the file has been read)
is:
<br>
<br>
Current region rows: 47371, cols: 83934
<br>
</blockquote>
That means that each raster will have about 4 billion cells. <br>
A raster with integer values takes 32 bits per pixel, (double
precision about the same, float about 1/2 of that), so if the whole
raster needs to be kept in memory, you would require some 16GB of
RAM....<br>
<br>
<blockquote type="cite"
cite="mid:alpine.LNX.2.20.1807161144290.23050@salmo.appl-ecosys.com">ERROR:
G_malloc: unable to allocate 671472 bytes of memory at
<br>
raster/r.contour/main.c:240
<br>
<br>
Rich
<br>
_______________________________________________
<br>
grass-user mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a>
<br>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/grass-user">https://lists.osgeo.org/mailman/listinfo/grass-user</a><br>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Micha Silver
Ben Gurion Univ.
Sde Boker, Remote Sensing Lab
cell: +972-523-665918</pre>
</body>
</html>