Re: creating dynamic array [message #64616] |
Wed, 07 January 2009 07:46  |
pgrigis
Messages: 436 Registered: September 2007
|
Senior Member |
|
|
David Fanning wrote:
> Bennett writes:
>
>> On Jan 6, 5:55=A0pm, David Fanning <n...@dfanning.com> wrote:
>>> nakisa writes:
>>>> I have a file of data of
>>>> =A0x,y,L .
>>>
>>>> I need to compare of L with a fix value and plot (x,y) with less " L "
>>>> with one color and the other (x,y ) with other color.
>>>
>>>> The problem is I need to compare =A0L ,then store the x and y s in new
>>>> variable , for example new_1 and new2 ,then plot them.
>>>
>>>> Fro this plot, I think the only way is to store data in array. but I
>>>> need dynamic array and I don't know how can I create dynamic array ?
>>>
>>> I'm guessing the WHERE function might be your friend.
>>>
>>> IDL> ? where
>>>
>>> Cheers,
>>>
>>> David
>>
>> And pointers could be useful for dynamic arrays.
>
> Except this didn't sound like much of a dynamic array
> problem. :-(
Now we're going a bit off topic...
But I would argue that nothing(1) is *static* in IDL,
and everything is *dynamic* in IDL : variables, arrays,
(even memory leaks ;-) , so you can redefine anything
to anything else at runtime...
Ciao,
Paolo
(1) well, of course, with the exception of named
structures, structure tags, common blocks
variables, etc. etc. etc. ;-)
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming: http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|