assoc and arrayas/structures [message #3777] |
Fri, 10 March 1995 13:02 |
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
|
|
|