tun1dat.for (File 3)

This file contains a FORTRAN 77 data-retrieval routine to read and print tun1.dat (File 5). The following is a listing of this program. For additional information regarding variable definitions, variable length, variable type, units, and codes, please see the description for tun1.dat (File 5).

c****************************************************************
c* FORTRAN 77 data retrieval routine to read and print the               
c* file named "tun1.dat" (File 5).                             
c****************************************************************

              CHARACTER qualt*14
              INTEGER sta, cast, samp, bot 
              REAL pre, ctdtmp, ctdsal, ctdoxy, theta, sal, oxy, silca
              REAL nitrat, nitrit, phspht, cfc11, cfc12, delc14, c14err
              REAL tcarb, talk
              OPEN (unit=1, file='tun1.dat')
              OPEN (unit=2, file='tunes1.dat')
              write (2, 5)
     
 5            format (2X,'STNNBR',2X,'CASTNO',2X,'SAMPNO',2X,'BTLNBR',2X,

            1 'CTDPRS',2X,'CTDTMP',2X,'CTDSAL',2X,'CTDOXY',3X,'THETA',4X,
            2 'SALNTY',2X,'OXYGEN',2X,'SILCAT',2X,'NITRAT',2X,'NITRIT',2X,
            3 'PHSPHT',3X,'CFC-11',3X,'CFC-12',2X, 'DELC14',2X,'C14ERR',2X,
            4 'TCARBN',2X,'ALKALI',9X,'QUALT1',/,
            5 36X,'DBAR',2X,'ITS-90',2X,'PSS-78',1X,'µmol/KG',2X,'ITS-90',
            6 4X,'PSS-78',1X,5('µmol/KG',1X,),1X,'PMOL/KG',2X,'PMOL/KG',2X,
            7 '/MILLE',2X, 'PERCNT',1X,2('µmol/KG',1X,),13X,'*',/,
            8 25X,'*******',17X,2('*******',1X,),
            8 10X,6('*******',1X,),1X,'*******',2X,2('*******',1X,),8X,
            9 2('*******',1X,),13X,'*',)

               read (1, 6)
 6            format (////////////)

 7            CONTINUE    
               read (1, 10, end=999) sta, cast, samp, bot, pre, ctdtmp,
            1 ctdsal, ctdoxy, theta, sal, oxy, silca, nitrat, nitrit,
            2 phspht, cfc11, cfc12, delc14, c14err, tcarb, talk, qualt

 10           format (5X, I3, 7X, I1, 6X, I2, 5X, I3, 1X, F7.1, 1X, F7.4,
            1 1X, F7.4, 1X, F7.1, 1X, F7.4, 1X, F9.4, 1X, F7.1, 1X, F7.2,
            2 1X, F7.2, 1X, F7.2, 1X, F7.2, 1X, F8.3, 1X, F8.3, 1X, F7.1,
            3 1X, F7.1, 1X, F7.1, 1X, F7.1, 1X, A14)
  
               write (2, 20) sta, cast, samp, bot, pre, ctdtmp,
            1 ctdsal, ctdoxy, theta, sal, oxy, silca, nitrat, nitrit,
            2 phspht, cfc11, cfc12, delc14, c14err, tcarb, talk, qualt

 20           format (5X, I3, 7X, I1, 6X, I2, 5X, I3, 1X, F7.1, 1X, F7.4,
            1 1X, F7.4, 1X, F7.1, 1X, F7.4, 1X, F9.4, 1X, F7.1, 1X, F7.2,
            2 1X, F7.2, 1X, F7.2, 1X, F7.2, 1X, F8.3, 1X, F8.3, 1X, F7.1,
            3 1X, F7.1, 1X, F7.1, 1X, F7.1, 1X, A14)
      
              GOTO 7
 999        close(unit=1)    
              close(unit=2)
              stop
              end

CDIAC   |  CCSI   |  ESD   |   ORNL   |   Security   |   Contact Us   |   maintained by Alex Kozyr   |   Last modified: 16 Jun 2010