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

Home » Public Forums » archive » Re: creating dynamic array
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: creating dynamic array [message #64537] Tue, 06 January 2009 14:55 Go to next message
David Fanning is currently offline  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 Go to previous message
Juggernaut is currently offline  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.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: ENVI ROI colors
Next Topic: Documentation time

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

Current Time: Sat Oct 11 03:55:42 PDT 2025

Total time taken to generate the page: 1.92569 seconds