home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / graphics / explorer / 212 < prev    next >
Encoding:
Internet Message Format  |  1992-09-14  |  2.2 KB

  1. Path: sparky!uunet!olivea!sgigate!odin!fido!batman.asd.sgi.com!hwa
  2. From: hwa@batman.asd.sgi.com (John Hwa)
  3. Newsgroups: comp.graphics.explorer
  4. Subject: Re: Datascribe: inputting multiple sets of non-homogeneous data
  5. Message-ID: <pt1vius@fido.asd.sgi.com>
  6. Date: 15 Sep 92 20:36:52 GMT
  7. References: <BuM0pE.LAE@casper.cs.uct.ac.za>
  8. Sender: news@fido.asd.sgi.com (Usenet News Admin)
  9. Organization: Silicon Graphics, Inc.
  10. Lines: 46
  11.  
  12. In article <BuM0pE.LAE@casper.cs.uct.ac.za>, gds@casper.cs.uct.ac.za (Riel Smit) writes:
  13. |> How do one do it?  I am new to explorer and can't find the answer either in
  14. |> the manual or by experimenting (at least not within the time I have
  15. |> available :-)
  16. |> 
  17. |> Can someone point me in the right direction as to how to read the follwoing
  18. |> data into one or more latices (the data is in binary form, but that has not
  19. |> been the problem):
  20. |> 
  21. |>   id1          (char[11] string of ASCII characters identifying data set 1)
  22. |>   nobs1        (int: number of observations>
  23. |>   junk         (real[20]: data I don't care about)
  24. |>   data1        (int[5,nobs]: five data values I'm interested in with 
  25. |>                          data[1,i], the x-coordinate;  y-coordinates
  26. |>                              can be taken to be 1,2,3,4...)
  27. |>   id2           (data set 2)
  28. |>   nobs2
  29. |>   junk2
  30. |>   data2
  31. |>   id3
  32. |>   nobs3
  33. |>   ...
  34. |> 
  35. |> It was fairly straightforward to create a map that reads the first set of 
  36. |> data into a lattice, but how do I tell it now to repeat that until it finds
  37. |> an end of file?  The only way I can see is to define an array, but array
  38. |> elements cannot be non-homogeneous (used here to indicate "consisting of
  39. |> different types")
  40. |> 
  41. |> If I could define an array of structs, no problem ... :-)  (Even though the
  42. |> data file does not say how many data sets there are, I can always find out
  43. |> off-line).
  44. |> 
  45. |> Do I have to write my own input module rather than use datascribe?
  46. |> Any help would be much appreciated.
  47. |> -- 
  48. |> Riel Smit,  Computer Science                              gds@cs.uct.ac.za
  49. |> University of Cape Town                      gds%cs.uct.ac.za@rain.psg.com
  50.  
  51.  
  52. The dscribe 1.0 cannot handle array of set.  You will need to write
  53. your own input module to handle it in this case.
  54.  
  55.  
  56. John P. Hwa
  57. hwa@sgi.com
  58.