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 #64616] Wed, 07 January 2009 07:46
pgrigis is currently offline  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.")
Re: creating dynamic array [message #64618 is a reply to message #64616] Wed, 07 January 2009 05:32 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
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. :-(

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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Documentation time
Next Topic: Filename variable from device?

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

Current Time: Fri Oct 10 10:20:29 PDT 2025

Total time taken to generate the page: 0.56550 seconds