🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.graphics.explorer
Article #79

Re: Datascribe: inputting multiple sets of non-homogeneous data

#79
From: John Hwa
Date: Tue, 15 Sep 1992 20:36
46 lines
2337 bytes
In article <BuM0pE.LAE@casper.cs.uct.ac.za>, gds@casper.cs.uct.ac.za (Riel Smit) writes:
|> 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


The dscribe 1.0 cannot handle array of set.  You will need to write
your own input module to handle it in this case.


John P. Hwa
hwa@sgi.com
Technical Details
Message-ID: <pt1vius@fido.asd.sgi.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!olivea!sgigate!odin!fido!batman.asd.sgi.com!hwa
References: <BuM0pE.LAE@casper.cs.uct.ac.za>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!olivea!sgigate!odin!fido!batman.asd.sgi.com!hwa
From: hwa@batman.asd.sgi.com (John Hwa)
Newsgroups: comp.graphics.explorer
Subject: Re: Datascribe: inputting multiple sets of non-homogeneous data
Message-ID: <pt1vius@fido.asd.sgi.com>
Date: 15 Sep 92 20:36:52 GMT
References: <BuM0pE.LAE@casper.cs.uct.ac.za>
Sender: news@fido.asd.sgi.com (Usenet News Admin)
Organization: Silicon Graphics, Inc.
Lines: 46