      REAL ANS(150), TEMP(3)
      INTEGER*2 JTB(6),JDATA(512),JNE,JTLMOD,JCLK
      character*4 ikinds
      character*64 ftdata
      common ikinds,mindex
      call getenv('ft32',ftdata)
      open(32,file=ftdata)
  1   call nxtvgrf(ANS,JTB,JDATA,JNE,LSTAT,JTLMOD,JCLK,TEMP,IEOD)
      if(ieod.ne.0) go to 10
c  output data from 1978 DOY 12
c  we can plot some of this data by going to /plot and invoking gnuplot
      if(jtb(1).ne.1978) go to 1
      if(jtb(2).ne.12) go to 1
      if(jtb(2).gt.12) go to 10
      if(jtlmod.ne.2) go to 1
      decd = 1.*jtb(2)+(1.*jtb(3))/24.+(1.*jtb(4))/(24.*60.)
     * + (1.*jtb(5))/(24.*3600.)
      den = ans(38)
      vr = ans(99)
      vt = ans(100)
      vn = ans(101)
      w = ans(133)
      br = ans(96)
      bt = ans(97)
      bn = ans(98)
      vnp = vn+20.
      factor = 21.8/sqrt(den)
      bnp = -bn*factor
      denp = 5.*den
      write(6,15) decd,jtb,den,vr,vt,vn,w,br,bt,bn,vnp,bnp,denp
  15  format(f15.4,6I5,f8.3,11f8.2)
      if(ieod.eq.0) go to 1
  10  continue
      end
