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

Home » Public Forums » archive » Re: about memory
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: about memory [message #25149 is a reply to message #25148] Mon, 21 May 2001 15:01 Go to previous messageGo to previous message
thompson is currently offline  thompson
Messages: 584
Registered: August 1991
Senior Member
Hong Gang <honggang@uni-bremen.de> writes:

> Hallo all,

> The following is the error given by my program.
> % Unable to allocate memory: to make array.
> Cannot allocate memory

> I have some large arrays as Tb(632*664, 880). I do not know what is the
> matter with the program. Can anyone give me some idea?

IDL is telling you that the operating system is not allowing it to allocate
enough memory to create the array. It's not surprising; a floating point array
of that size would take well over a gigabyte of memory. Generally speaking,
you'd need several times that much memory to manipulate such an array.

You don't mention what operating system you're using. If Unix, then you can
find out how much memory the operating system will allow you to have by
entering in the command "limit" (before calling IDL). You can also type
"limit -h" to find the hard limits. The relevant number is "datasize". You
can increase this, e.g. "limit datasize 200000" would give you 200 megabytes of
memory.

Probably, you should rewrite your software to manipulate your data in pieces,
instead of all at once. One way to do this is to write your data to a file,
and then use the ASSOC() function to address parts of the file.

William Thompson
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [Newbie]writing JPEG or GIF file with plot?
Next Topic: Checkbox Starting Checked

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

Current Time: Wed Oct 08 15:13:45 PDT 2025

Total time taken to generate the page: 0.00394 seconds