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

Home » Public Forums » archive » assoc and arrayas/structures
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
assoc and arrayas/structures [message #3777] Fri, 10 March 1995 13:02
wart is currently offline  wart
Messages: 8
Registered: March 1995
Junior Member
IDL wizards, I ask for your guidance:

I am working with IDL on a system with a small amount of RAM.
Unfortuantely, I'm doing image processing on this system. Instead of
reading in an entire image into an array using:

openr, funit, filename, /get_lun
img = bytarr(1000, 1000)
readu, funit, img

I am using an associative array:

openr, funit, filename, /get_lun
img = assoc(funit, bytarr(1000, 1000))

However, I have found that you can not use associative arrays as
elements of a structure or part of an array. I have tried doing the
following with no success (img1, img2, img3 are all associative arrays):

data1 = [img1, img2, img3]
data2 = {red: img1, grn: img2, blu: img3}

I would like to be able to group the three associative arrays together
somehow and be able to pass them to other procedures as one unit, or set
the uvalue of a widget to an array of all three. Can anyone offer some
suggestions on how I could do this?

--Wart
wart@ugcs.caltech.edu
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: PRINT needs minor improvement
Next Topic: Re: Wanted: Hough transform

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

Current Time: Sat Oct 11 09:13:16 PDT 2025

Total time taken to generate the page: 0.47956 seconds