Re: The continuing saga of WHERE and 2D [message #34235 is a reply to message #34231] |
Thu, 27 February 2003 14:47   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Sean Raffuse (sean@me.wustl.edu) writes:
> No, that's it. Although here is the error
>
> Tau[x_mask,y_mask,*] = default_BelowDetLimit
> % Array has too many elements.
>
> Is this a memory problem?
Humm. A memory problem? I don't know. 1.4 million
array elements seems like a lot, but I can
easily do this:
IDL> a=FltArr(3660, 1680)
IDL> b = randomu(seed, 1407735L) * 3600L * 1680L
IDL> a[b] = 5
I have a problem, however, when I add a third
dimension:
IDL> DelVar, a
IDL> a = FltArr(3660, 1680, 8)
IDL> a[b,b, *] = 5
% Array has too many elements.
IDL> a[b,b, 0] = 5
% Array has too many elements.
I don't know what that is. I think you are going to have
to ask RSI.
I do notice that if I do this:
IDL> c= b[0:4999]
IDL> a[c,c,*] = 5
That my computer gets very, VERY unhappy. :-(
I had to reboot to get some response back.
I think this means there is something going on here
that I don't understand. :-)
Cheers,
David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|