what is the upper limit for IDL array? [message #66471] |
Thu, 21 May 2009 08:09  |
Hu
Messages: 35 Registered: January 2009
|
Member |
|
|
Hi,there
I want to know the upper limit number of a 1-D/2-D array (say, Array),
Is there anybody knows the answer?
I mean, how many elements that I can write into this 1-D/2-D array?
Thanks
|
|
|
Re: what is the upper limit for IDL array? [message #66560 is a reply to message #66471] |
Thu, 21 May 2009 11:03  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
nata writes:
> On May 21, 11:19 am, David Fanning <n...@dfanning.com> wrote:
>>> I want to know the upper limit number of a 1-D/2-D array (say, Array),
>>> Is there anybody knows the answer?
>>
>>> I mean, how many elements that I can write into this 1-D/2-D array?
>>
>> Do you want this as a number (probably not possible),
>> or do you want the novella version (probably about the
>> size of War and Peace by now)?
>>
>
> COYOTE'S HUMOR
This was actually a poor translation. When I finally
found the Coyote to English dictionary under the
pile of dirty tennis clothes, and cleaned the note up for
distribution in a public forum, it read more like this:
Do you want this as a number (a bald-faced lie!) or do
you want the Coyote version (total gibberish, but
the gospel truth)?
Cheers,
David
--
David Fanning, Ph.D.
Coyote's Guide to IDL Programming (www.dfanning.com)
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
Re: what is the upper limit for IDL array? [message #66563 is a reply to message #66471] |
Thu, 21 May 2009 10:32  |
natha
Messages: 482 Registered: October 2007
|
Senior Member |
|
|
On May 21, 11:19 am, David Fanning <n...@dfanning.com> wrote:
> Hu writes:
>> I want to know the upper limit number of a 1-D/2-D array (say, Array),
>> Is there anybody knows the answer?
>
>> I mean, how many elements that I can write into this 1-D/2-D array?
>
> Do you want this as a number (probably not possible),
> or do you want the novella version (probably about the
> size of War and Peace by now)?
>
COYOTE'S HUMOR
|
|
|
Re: what is the upper limit for IDL array? [message #66567 is a reply to message #66471] |
Thu, 21 May 2009 08:52  |
Jean H.
Messages: 472 Registered: July 2006
|
Senior Member |
|
|
Hu wrote:
> Hi,there
>
> I want to know the upper limit number of a 1-D/2-D array (say, Array),
> Is there anybody knows the answer?
>
> I mean, how many elements that I can write into this 1-D/2-D array?
>
> Thanks
here is an answer from Paolo he sent on this topic a few years ago.
Jean
Jean H. wrote:
> Hi all,
>
> I can't remember this... what is the type of the variable used to
index an array? ... in other words, what is the max number of elements
an array can hold, provided the memory is available? Is there a way to
change that, so I can use, let's say, an unsigned long 64?
In the 32-bits version, signed longs are used.
Thus the max number of elements of a byte array is (2^31-offset),
where offset is a small number (around 10).
IDL 64 bit uses signed double precision longs, and the max number
of elements in a byte array is (2^63-offset) [here the offset seems
to be around 512].
For other numeric types, divide the above numbers by the size in
bytes of one element.
Ciao,
Paolo
>
> Thanks,
>
> Jean
|
|
|
Re: what is the upper limit for IDL array? [message #66570 is a reply to message #66471] |
Thu, 21 May 2009 08:19  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Hu writes:
> I want to know the upper limit number of a 1-D/2-D array (say, Array),
> Is there anybody knows the answer?
>
> I mean, how many elements that I can write into this 1-D/2-D array?
Do you want this as a number (probably not possible),
or do you want the novella version (probably about the
size of War and Peace by now)?
Cheers,
David
--
David Fanning, Ph.D.
Coyote's Guide to IDL Programming (www.dfanning.com)
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|