home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / idlpvwa / 529 < prev    next >
Encoding:
Text File  |  1992-11-17  |  2.0 KB  |  55 lines

  1. Newsgroups: comp.lang.idl-pvwave
  2. Path: sparky!uunet!wupost!crcnis1.unl.edu!moe.ksu.ksu.edu!zaphod.mps.ohio-state.edu!cs.utexas.edu!sun-barr!ames!nsisrv!stars.gsfc.nasa.gov!thompson
  3. From: thompson@stars.gsfc.nasa.gov (William Thompson, code 682.1, x2040)
  4. Subject: Re: open,/record - classification
  5. Message-ID: <16NOV199219225113@stars.gsfc.nasa.gov>
  6. News-Software: VAX/VMS VNEWS 1.4-b1  
  7. Sender: usenet@nsisrv.gsfc.nasa.gov (Usenet)
  8. Nntp-Posting-Host: stars.gsfc.nasa.gov
  9. Organization: NASA/GSFC-Laboratory for Astronomy and Solar Physics
  10. References: <1992Nov16.152127.17585@newsserver.rrzn.uni-hannover.de>
  11. Date: Mon, 16 Nov 1992 23:22:00 GMT
  12. Lines: 41
  13.  
  14. In article <1992Nov16.152127.17585@newsserver.rrzn.uni-hannover.de>, knipp@ipi.uni-hannover.de writes...
  15. >Hello there,
  16. >    We're runnig Pv~Wave Cl. 4.0 under SunOs 4.1.2
  17. >    There are 2 questions :
  18. >    a) Has anybody ever tried to open a device (p.e. a streamer-tape)
  19. >for record-wise reading/writing ?. It should work under VMS, but we must do it 
  20. >under UNIX.
  21. >    b) Is there anybody who has programmed a land-use-classification in
  22. >WAVE (or knows about an existing one) ?
  23. >    Thanks, KK
  24.  
  25. My experience is with IDL, not PV-WAVE, but this should still hold true.  You
  26. can open a tape device in Unix and do I/O using READU and WRITEU.  At least I
  27. was able to do this with an Exabyte tape drive on a Sun.  You can also spawn
  28. out to the OS to send commands such as
  29.  
  30.     mt -f /dev/nrst1 fsf 1
  31.  
  32. or
  33.  
  34.     mt -f /dev/nrst1 rewind
  35.  
  36. As I recalled, I just opened the device with the command
  37.  
  38.     OPENU, UNIT, '/dev/nrst1'
  39.  
  40. I didn't use any keywords.
  41.  
  42. At one time I tried to write IDL procedures for Unix that imitated as closely
  43. as possible the VMS tape utilities:  TAPRD, TAPWRT, etc.  I stopped working on
  44. it, though, when I realized that there was no way to obtain the actual number
  45. of bytes read in, as one could with the VMS routines.  One place that was
  46. crucial for us was in reading FITS tapes--we needed to be able to tell if the
  47. tape was written using 2880 byte or 28800 byte records.
  48.  
  49. Bill Thompson
  50.