🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.graphics.explorer
2 messages
2 total messages Started by Riel Smit Tue, 15 Sep 1992 07:56
Datascribe: inputting multiple sets of non-homogeneous data
#77
Author: Riel Smit
Date: Tue, 15 Sep 1992 07:56
37 lines
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
Re: Datascribe: inputting multiple sets of non-homogeneous data
#79
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads