Article View: comp.graphics.explorer
Article #77Datascribe: inputting multiple sets of non-homogeneous data
From: Riel Smit
Date: Tue, 15 Sep 1992 07:56
Date: Tue, 15 Sep 1992 07:56
37 lines
1952 bytes
1952 bytes
How do one do it? I am new to explorer and can't find the answer either in
the manual or by experimenting (at least not within the time I have
available :-)
Can someone point me in the right direction as to how to read the follwoing
data into one or more latices (the data is in binary form, but that has not
been the problem):
id1 (char[11] string of ASCII characters identifying data set 1)
nobs1 (int: number of observations>
junk (real[20]: data I don't care about)
data1 (int[5,nobs]: five data values I'm interested in with
data[1,i], the x-coordinate; y-coordinates
can be taken to be 1,2,3,4...)
id2 (data set 2)
nobs2
junk2
data2
id3
nobs3
...
It was fairly straightforward to create a map that reads the first set of
data into a lattice, but how do I tell it now to repeat that until it finds
an end of file? The only way I can see is to define an array, but array
elements cannot be non-homogeneous (used here to indicate "consisting of
different types")
If I could define an array of structs, no problem ... :-) (Even though the
data file does not say how many data sets there are, I can always find out
off-line).
Do I have to write my own input module rather than use datascribe?
Any help would be much appreciated.
--
Riel Smit, Computer Science gds@cs.uct.ac.za
University of Cape Town gds%cs.uct.ac.za@rain.psg.com
Technical Details
Message-ID:
<BuM0pE.LAE@casper.cs.uct.ac.za>Path:
arc1-ca.pugleaf.net!sparky!uunet!psgrain!hippo!ucthpx!casper.cs.uct.ac.za!gdsShow Full Headers
Complete Article Headers
Newsgroups: comp.graphics.explorer Path: arc1-ca.pugleaf.net!sparky!uunet!psgrain!hippo!ucthpx!casper.cs.uct.ac.za!gds From: gds@casper.cs.uct.ac.za (Riel Smit) Subject: Datascribe: inputting multiple sets of non-homogeneous data Message-ID: <BuM0pE.LAE@casper.cs.uct.ac.za> Reply-To: gds@cs.uct.ac.za Organization: Computer Science Department, University of Cape Town Date: Tue, 15 Sep 1992 07:56:02 GMT Lines: 37