Re: creating dynamic array [message #64537] |
Tue, 06 January 2009 14:55  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
nakisa writes:
> I have a file of data of
> x,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 L ,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
--
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.")
|
|
|
Re: creating dynamic array [message #64620 is a reply to message #64537] |
Wed, 07 January 2009 05:22  |
Juggernaut
Messages: 83 Registered: June 2008
|
Member |
|
|
On Jan 6, 5:55 pm, David Fanning <n...@dfanning.com> wrote:
> nakisa writes:
>> I have a file of data of
>> x,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 L ,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
>
> --
> 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.")
And pointers could be useful for dynamic arrays.
|
|
|