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

Home » Public Forums » archive » Re: plot_3dbox : array has too many elements
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: plot_3dbox : array has too many elements [message #42570 is a reply to message #42568] Wed, 16 February 2005 07:47 Go to previous messageGo to previous message
Paolo Grigis is currently offline  Paolo Grigis
Messages: 171
Registered: December 2003
Senior Member
Ralf Schaa wrote:
> Dear All,
>
> I like to use the plot_3dbox procedure to plot a satellite orbit. The
> cartesian positionvectors consists each of 27292 elements. I tried
> 27292L and 27292LL when initializing, but I keep getting the same error
> message : 'array has too many elements'.
>

Well, it looks like the program is trying to build an array (assuming
of float type) of 27292 by 27292 elements, which you just can't do in
idl on 32 bit systems:

IDL> a=fltarr(27292L,27292L)
% Array has too many elements.

To estimate the maximum size of an IDL array one can use the formula:

maxsize = (2L^31-1) / typesize

where typesize is the size of your datatype in byte (4 bytes
for float, 2 bytes for integers, 8 bytes for doubles etc.).
This means that the maximum size in bytes of a single array should
not be larger than 2GB.


Cheers,
Paolo


> What to do?
>
> Thanks already
>
> -Ralf
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: plot_3dbox : array has too many elements
Next Topic: widget_base aligntment question

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

Current Time: Sat Oct 11 07:36:27 PDT 2025

Total time taken to generate the page: 0.96151 seconds