Coastal & Marine Geology InfoBank

Home FACS Activities Atlas Geology School Related Sites More

USGS InfoBank program -- breakcnv

Skip navigational links
Loading
InfoBank Programs: by Name   by Topic  
Expanded Description
Topic Description
Name
breakcnv
Synopsis
/infobank/programs/meters/breakcnv/breakcnv.for
Description
  Program to break up .cnv files in a directory.

       
AUTHOR
  Clint Steele      11/18/98


    
Reads
      read (5, '(q,a)', end = 999) DirLength, Dir(1:DirLength)
          read (88, '(q,a)', end = 98)
     *        DataFileLength, DataFile(1:DataFileLength)
          read (90, '(q,a)', end = 99) 
     *        ALineLength, ALine(1:ALineLength)
                      read (ALine(28:29), '(i2)') Day
                          read (ALine(Blank:Comma-1), '(i)') Day
                          read (ALine(Colon1-2:Colon1-1), '(i)') Hour
                          read (ALine(Colon1+1:Colon2-1), '(i)')
     *                        Minute
                          read (ALine(Colon2+1:Colon2+2), '(i)')
     *                        Second
                  read (ALatitude, '(i3,1x,f7.3)')
     *               LatDeg, LatMin
                 read (ALongitude, '(i4,1x,f7.3)')
     *              LongDeg, LongMin
                  read (ALine(11:ALineLength), '(i)') NQuan
Writes
          write (95, 300) 
     *        Dir(1:DirLength)//'/'//DataFile(FileStart:Dot)//'.rft'
          write (ALine, '(1024x)')
                      write (93, 2) Month, Day,
     *                    ALine(33:34), ALine(36:37),
     *                    ALine(39:40), ALine(42:43)
                      write (95, 2) Month, Day, 
     *                    ALine(33:34), ALine(36:37), 
     *                    ALine(39:40), ALine(42:43)
                          write (93, 3) Month, Day, 
     *                        Aline(Comma+4:Comma+5),
     *                        Hour, Minute, Second
                          write (95, 3) Month, Day, 
     *                        Aline(Comma+4:Comma+5),
     *                        Hour, Minute, Second
                  write (Platform, '(80x)')
                  write (Cruise, '(80x)')
                 write (93, '(a,1x,a)') 
     *                ALongitude(1:LongLength), 
     *                ALatitude(1:LatLength)
                 write (93, '(f8.3,1x,f7.3)')
     *                Longitude, Latitude
                  write (94, 20) Dir(1:DirLength)//'/'//
     *             DataFile(FileStart:Dot)//'.raw',
     *             Dir(1:DirLength)//'/'//
     *             DataFile(FileStart:Dot)//'.rft',
     *             NQuan
                 write (93, '(a)') ALine(13:ALineLength)
          write (OutUnit, '(a)') ALine(1:ALineLength)
      write (95, 302) 
     *     Longitude, Latitude,
     *     Dir(1:DirLength)//'/'//DataFile(FileStart:Dot)//'.cdf',
     *     Dir(1:DirLength)//'/'//DataFile(FileStart:Dot)//'.dat',
     *     Platform(1:PlatformLength),
     *     Cruise(1:CruiseLength), 
     *     DataFile(2:Dot),
     *     NValCount
      write (96, 301)
     *      Dir(1:DirLength)//'/'//DataFile(FileStart:Dot)//'.cdf',
     *      Dir(1:DirLength)//'/'//DataFile(FileStart:Dot)//'poden.cdf',
     *      NValCount
Opens
      open (unit = 88,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'old',
     *      name = '/infobank/tmp/cnv.temp')
          open (unit = 90,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'old',
     *      name = Dir(1:DirLength)//'/'//
     *             DataFile(FileStart:Dot)//'.cnv')
          open (unit = 91,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = Dir(1:DirLength)//'/'//
     *             DataFile(FileStart:Dot)//'.meta')
          open (unit = 92,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = Dir(1:DirLength)//'/'//
     *             DataFile(FileStart:Dot)//'.raw')
          open (unit = 93,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = Dir(1:DirLength)//'/'//
     *             DataFile(FileStart:Dot)//'.info')
          open (unit = 94,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = Dir(1:DirLength)//'/'//
     *             DataFile(FileStart:Dot)//'.rft_ctd.sh')
          open (unit = 95,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = Dir(1:DirLength)//'/'//
     *             DataFile(FileStart:Dot)//'.ascii_ctd.sh')
          open (unit = 96,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = Dir(1:DirLength)//'/'//
     *             DataFile(FileStart:Dot)//'.unesco.sh')
Calls
      call system ('find '//Dir(1:DirLength)//'/*.cnv > 
     *             '/infobank/tmp/cnv.temp')
                  call stringlen (Platform, PlatformLength)
                  call stringlen (Cruise, CruiseLength)
                  call stringlen (ALatitude, LatLength)
                 call stringlen (ALongitude, LongLength)
      call system ('sh '//Dir(1:DirLength)//'/'//
     *              DataFile(FileStart:Dot-1)//'.rft_ctd.sh')
      call system ('sh '//Dir(1:DirLength)//'/'//
     *              DataFile(FileStart:Dot-1)//'.ascii_ctd.sh')
      call system ('sh '//Dir(1:DirLength)//'/'//
     *              DataFile(FileStart:Dot-1)//'.unesco.sh')
      call system ('/bin/ls '//Dir(1:DirLength)//'/'//
     *              DataFile(FileStart:Dot-1)//'poden.cdf > 
     *                 Dir(1:DirLength)//'/'//
     *              DataFile(FileStart:Dot-1)//'poden.dat')
      call system ('/bin/rm /infobank/tmp/cnv.temp')

Skip footer navigational links

Coastal and Marine Science Centers:  Pacific   St. Petersburg   Woods Hole  
InfoBank   Coastal and Marine Geology Program   Geologic Information   Ask-A-Geologist   USGS Disclaimer  


Accessibility FOIA Privacy Policies and Notices

Take Pride in America logo USA.gov logo U.S. Department of the Interior | U.S. Geological Survey
URL: http://walrus.wr.usgs.gov/infobank/programs/meters/breakcnv/breakcnv.doc.html
Page Contact Information: InfoBank staff
Page Last Modified: Mon Sep 16 03:38:51 PDT 2013  (chd)