[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
structures, driving me crazy
- Subject: structures, driving me crazy
- From: "Luis Alonso" <drimer(at)retemail.es>
- Date: Fri, 24 Nov 2000 16:49:29 +0100
- Newsgroups: comp.lang.idl-pvwave
- Organization: Universitat de Valencia
- Xref: news.doit.wisc.edu comp.lang.idl-pvwave:22329
I have a dataset of images with corresponding header files.
The header files (which i want to read) consist of three float numbers, and
then 9 rows of data with 8 elements each. Each row corresponds to a spectal
band of the image.
i've got 138 images all related, so i want to have all the headers open and
I thought about creating a structure for each band:
and then create an array of structures
then create a header structure
and then replicate it for the whole set:
of course i found several problems. First, i didn't know how to initialize
the tag band as a structure array of the type band in the structure
definition of header.
second, i tryed to use concatenation of structures, of the kind:
p = CREATE_STRUCT('A', 1, 'B', 'xxx')
p = CREATE_STRUCT('FIRST', 0, p, 'LAST', 3)
so i tried:
i know there are workarounds, as using separate structures for bands and the
rest of the header... but i thought there MUST be a way of putting it all
together, and being able to access data as:
as well as
So, what am i missing?
David, i guess this is somehow explained in your book, and i'm getting it
for christmass. But i'd like to have the answer a bit sooner ;)