comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Memory problem
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Memory problem [message #58750 is a reply to message #3153] Thu, 14 February 2008 06:51 Go to previous messageGo to previous message
Kenneth P. Bowman is currently offline  Kenneth P. Bowman
Messages: 585
Registered: May 2000
Senior Member
In article
<bf8e2253-81b6-4b03-ba46-83848d60d8e3@s19g2000prg.googlegroups.com>,
jujo@argentina.com wrote:

> Hi!
> I'm trying to make a very large array:
>
> a=fltarr(5287, 7707, 8)
>
> Then I got the warning: 'Unable to allocate memory: to make array.'
>
> Is there any way to avoid this message?
>
> Best!
> Jurandir

You are trying to make an array that requires

IDL> print, 5287*7707*8*4
1303901088

about 1.3 GB.

This is doable on a 32-bit system (assuming that you have 2 GB of RAM),
but you will not be able to create two such arrays.

Try

HELP, /MEM

to see how much memory you are using before you try to create the array.

Ken Bowman
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: How to draw legend in draw widget
Next Topic: image statistics without the NaN

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:25:44 PDT 2025

Total time taken to generate the page: 0.00472 seconds