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

Home » Public Forums » archive » Re: use of loops in IDL for hashtable
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: use of loops in IDL for hashtable [message #67904 is a reply to message #67895] Mon, 07 September 2009 01:08 Go to previous message
Wout De Nolf is currently offline  Wout De Nolf
Messages: 194
Registered: October 2008
Senior Member
On Sun, 6 Sep 2009 19:01:06 -0700 (PDT), "b.a" <u4565723@anu.edu.au>
wrote:

> Hi,
>
> I have 2 hashtables in my IDL program. one is called fileList which
> has ( id , data ) as its (key, value) and second one is colorList
> ( id , color ). I want to define a "foreach" loop so that for each id
> of colorList which exists in fileList, it plots the data with the
> "color". I mean for each string "id" get the "data" from fileList and
> get the "color" from colorList and plot the data in that colour.
>
> Can anybody help me with this please.
>
> Thank you

Are you using Craig Markwardt's hash table object? This object has a
method "KEYS" which returns all existing keys in a hash table, so you
can loop over all keys in colorList (or fileList), use "ISCONTAINED"
to check whether the key is in fileList (or colorList) and do your
plotting when it is (employing the Get method to get data and color).
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Help, no improvement in FFT speed on a multiprocessor system
Next Topic: checking the data type in IDL

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

Current Time: Thu Oct 09 16:44:27 PDT 2025

Total time taken to generate the page: 0.63961 seconds