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

Home » Public Forums » archive » Re: memory issues redux
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 issues redux [message #41576 is a reply to message #41575] Tue, 16 November 2004 09:49 Go to previous messageGo to previous message
Paolo Grigis is currently offline  Paolo Grigis
Messages: 171
Registered: December 2003
Senior Member
Actually, you can put a smaller number of, say, floats in
an array than bytes

IDL> a=fltarr(1024L*1024*511) ;this is ok
IDL> a=fltarr(1024L*1024*512)
% Array has too many elements.
% Execution halted at: $MAIN$

So it looks like IDL internally adresses the memory in byte sized
units, indipendently from the type of data stored, and therefore
you can get up to 2 gigaelements for a byte array, but just 512
megaelements for a float array, 256 megaelements for a double
array etc.

Therefore the real limit for a single array is at 2GB, no matter
the array type.

Cheers,
Paolo

R.G.Stockwell wrote:
> Marc, Paolo,
> thanks for the responses.
>
> Wow, that is much much better ram management under linux.
>
> I'll be using complex arrays actually, so the "not enough elements"
> should not be a problem (in principle, who knows what goes on in
> the bowels of idl).
>
> Looks like the thing to do would be to dual boot my computer
> and move idl over to the linux part. (too bad, because I am a
> big fan of idlde under windows, and I'm not a emacs guy. But
> i guess a scientist's gotta do what a scientist's gotta do).
>
> thanks,
> bob
>
>

--
____________________________________________________________ ________

Paolo Grigis
ETHZ - Institute of Astronomy email: pgrigis@astro.phys.ethz.ch
Scheuchzerstrasse 7
ETH Zentrum phone: ++41 1 632 42 20
8092 Zurich fax : ++41 1 632 12 05
Switzerland http://www.astro.phys.ethz.ch/
____________________________________________________________ ________
------------ And now a word from our sponsor ------------------
For a quality usenet news server, try DNEWS, easy to install,
fast, efficient and reliable. For home servers or carrier class
installations with millions of users it will allow you to grow!
---- See http://netwinsite.com/sponsor/sponsor_dnews.htm ----
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: using idl over the web
Next Topic: Spectral subsetting of HDF files

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

Current Time: Fri Dec 05 19:15:59 PST 2025

Total time taken to generate the page: 0.01644 seconds