[GRASS-user] nviz_cmd problem winGrass6.5 - 7.0

M.Onur Kurum mokurum at ncsu.edu
Sun Oct 24 14:15:41 EDT 2010


the machine has only 4GB Ram but I don't think that's the issue

GRASS 7.0.svn> g.region -p
projection: 99 (Lambert Conformal Conic)
zone:       0
datum:      nad83
ellipsoid:  a=6378137 es=0.006694380022900787
north:      250670
south:      249730
west:       913366
east:       914342
nsres:      5
ewres:      5.00512821
rows:       188
cols:       195
cells:      36660
GRASS 7.0.svn>

this is the region after I changed to 5m resolution - previously it was 
at 1m. It is not a big region. I also tried changing the resolutions in 
the nviz_command - the error message is the same. So, changing the 
resolution, setting a smaller region, trying with another DEM does not 
change the error.

GRASS 7.0.svn> nviz_cmd NH_1999_1m zexag=3.5 height=1000 
position=0.50,0.9 resolution_fine=5 resolution_coarse=5 persp=10 
out=NH_1999def format=tif size=500,500 --o
Loading raster map <NH_1999_1m at NagsHead_series>...
  100%
Loading raster map <NH_1999_1m at NagsHead_series>...
  100%
Translating colors from raster map <NH_1999_1m at NagsHead_series>...
  100%
ERROR: G_malloc: unable to allocate 3659235904 bytes of memory at
        gsd_prim.c:913

On 10/24/2010 5:58 AM, Markus Neteler wrote:
> On Thu, Oct 21, 2010 at 11:12 PM, M.Onur Kurum<mokurum at ncsu.edu>  wrote:
>> nviz_cmd.exe stops working in Grass6.5 and does not create the image - is this a known issue?
>   ....
>
> see below...
>
>> Also, in Grass 7.0, here is what I get:
>>
>> GRASS 7.0.svn>  nviz_cmd out0 color_map=out0 out=out0 zexag=0.00140 height=141.8
>> 0 position=0.464,0.68 resolution_fine=1 resolution_coarse=1 persp=40 format=tif
>>   size=500,500
>> Loading raster map<out0 at FORT63>...
>>   100%
>> Loading raster map<out0 at FORT63>...
>>   100%
>> Translating colors from raster map<out0 at FORT63>...
>>   100%
>> ERROR: G_malloc: unable to allocate 3659235904 bytes of memory at
>>         gsd_prim.c:913
> It tries to allocate 3.4GB of RAM. Does the machine offer this?
>
>> GRASS 7.0.svn>
>>
>> regions are set to my raster file in both cases - changing the region (zoom in or out) does not change the bytes of memory needed in GRASS7.0 case.
>>
> It depends on the resolution. You may need to decrease the resolution
> with g.region
> to make stuff fit into the memory of your computer. Remember that also
> the operating
> system consumes memory (the GRASS overhead is pretty low).
>
> cheers
> Markus

-- 

M.Onur Kurum
Graduate Research Assistant
Dept. of Civil, Construction, and Environmental Engineering
North Carolina State University
Campus Box 7908
2501 Stinson Drive, 428 Mann Hall
Raleigh, NC  27695-7908
Office: (919) 515-1340
Mobile: (919) 200-0665
Email: mokurum at ncsu.edu
Email: m.onur.kurum at gmail.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20101024/37fc86fa/attachment-0001.html


More information about the grass-user mailing list