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

Home » Public Forums » archive » HASH question
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
HASH question [message #75367] Sat, 05 March 2011 05:41 Go to previous message
Gray is currently offline  Gray
Messages: 253
Registered: February 2010
Senior Member
Hi all,

I have a bunch of information which I'd like to store in an organized
fashion:
~IDs of some stars
~Stellar types
~Magnitudes and fluxes in different images

One way I could store the information would be as an array of
structures, with each element being a single star, but I don't a
priori know how many stars I have, and to find a particular star I'd
have to search on the ID element. So, I could use a HASH of
structures so I could index by ID, which would be ideal, but then
assigning values to the individual tags of the structures is much more
complicated. I could instead have a bunch of hashes, one for each type
of information, but that would get pretty unwieldy.

So, IDL gurus, anyone have a suggestion for how to organize this most
efficiently and elegantly? Thanks!

--Gray
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL 8.0 image() scaling
Next Topic: Floating illegal operand error when reach end of for loop

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

Current Time: Wed Oct 08 15:57:38 PDT 2025

Total time taken to generate the page: 0.00485 seconds