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

Home » Public Forums » archive » structure-array-structure-array
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
structure-array-structure-array [message #1136] Sat, 24 July 1993 08:46
hatay is currently offline  hatay
Messages: 11
Registered: June 1992
Junior Member
I am trying to read a messy data through structures.
Right now, my difficulty is with the definition
of the structures.

Basically, I could not figure out how
to define a structure which has an array of structures
in the declaration.

In other words: Is there a better way of achieving the below
operation?

header = {trace, idum: 0L, ntrace: 0L, u: 0., v: 0., jdum: 0L}

chunk = {record,idum1: 0L, ncnt: 0L, idum2: 0L,
data1: {trace}, $
data2: {trace}, $
data3: {trace}, $
data4: {trace}, $
data5: {trace}, $
data6: {trace}, $
data7: {trace}, $
data8: {trace}, $
data9: {trace}}

wholefile = replicate({record},50000)


I want to be able declare data1 to data9 fields in a
array.

Thanks for your insight and time on this matter.


Ferhat F. Hatay


Newsgroups: comp.lang.idl-pvwave
Subject: structure-array-structure-array
Summary:
Expires:
References:
Sender:
Followup-To:
Distribution:
Organization: University of Colorado, Boulder
Keywords:

I am trying to read a messy data through structures.
Right now, my difficulty is with the definition
of the structures.

Basically, I could not figure out how
to define a structure which has an array of structures
in the declaration.

In other words: Is there a better way of achieving the below
operation?

header = {trace, idum: 0L, ntrace: 0L, u: 0., v: 0., jdum: 0L}

chunk = {record,idum1: 0L, ncnt: 0L, idum2: 0L,
data1: {trace}, $
data2: {trace}, $
data3: {trace}, $
data4: {trace}, $
data5: {trace}, $
data6: {trace}, $
data7: {trace}, $
data8: {trace}, $
data9: {trace}}

wholefile = replicate({record},50000)


I want to be able declare data1 to data9 fields in a
array.

Thanks for your insight and time on this matter.


Ferhat F. Hatay
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Boxplots?
Next Topic: Volume Rendering with CL4.01-Help Needed

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

Current Time: Wed Oct 08 17:46:37 PDT 2025

Total time taken to generate the page: 0.00490 seconds