Coastal & Marine Geology InfoBank

Home FACS Activities Atlas Geology School Related Sites More

USGS InfoBank program -- onoff2gaz

Skip navigational links
Loading
InfoBank Programs: by Name   by Topic  
Expanded Description
Topic Description
Name
onoff2gaz
Synopsis
/infobank/programs/gaz/gazboothill/onoff2gaz/onoff2gaz.for
Description
  Program to cat an .onoff. data type file into 

  gazette data type files.
       
NOTES
  Expects existing directory structure from DIRS4GAZ

  Typical execution time = 6 minutes
    
AUTHOR
  Clint Steele      7/25/2000


    
Reads
          read (90, '(a)', end = 99) DataType(TypeCount)
              read (88, '(t13,q,a)', end = 988)
     *               TempPathLength, 
     *               TempPath(1:TempPathLength)
                  read (88, '(t13,q,a)', end = 988)
     *                  TempPathLength,
     *                  TempPath(1:TempPathLength)
              read (88, '(t13,q,a)', end = 987)
     *               TempPathLength, 
     *               TempPath(1:TempPathLength)
                  read (88, '(t13,q,a)', end = 987)
     *                  TempPathLength,
     *                  TempPath(1:TempPathLength)
Writes
              write (Level3, '(80x)')
              write (Level3, '(80x)')
              write (Level2, '(80x)')
              write (Level3, '(80x)')
              write (Level2, '(80x)')
              write (Level1, '(80x)')
          write (DirPath, '(255x)')
              write (91, '(a,t30,a)') Level3(5:Length3),
     *                                DirPath(1:DirPathLength)
              write (91, '(a,t30,a)') Level2(3:Length2),
     *                                DirPath(1:DirPathLength)
              write (91, '(a,t30,a)') Level1(1:Length1),
     *                                DirPath(1:DirPathLength)
          write (InPath, '(255x)')
              write (92, '(a,1x,a)')
     *               TempPath(1:TempPathLength),
     *               DirPath(1:DirPathLength)//
     *               TempPath(Slash:TempPathLength)
                  write (92, '(a,1x,a)')
     *               TempPath(1:TempPathLength),
     *               DirPath(1:DirPathLength)//
     *               TempPath(Slash:TempPathLength)
              write (92, '(a,1x,a)')
     *               TempPath(1:TempPathLength),
     *               DirPath(1:DirPathLength)//
     *               TempPath(Slash:TempPathLength)
                  write (92, '(a,1x,a)')
     *               TempPath(1:TempPathLength),
     *               DirPath(1:DirPathLength)//
     *               TempPath(Slash:TempPathLength)
Opens
      open (unit = 90,
     *    status = 'old',
     *    access = 'sequential',
     *      form = 'formatted',
     *      name = '/infobank/programs/keep/equiptypes.keep')
      open (unit = 91,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = '/infobank/programs/keep/types4gaz.keep')
      open (unit = 92,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = '/infobank/programs/keep/onoffs4gaz.keep')
              open (unit = 88,
     *              access = 'sequential',
     *              form = 'formatted',
     *              status = 'old',
     *              name = '/tmp/catter.temp')
              open (unit = 88,
     *              access = 'sequential',
     *              form = 'formatted',
     *              status = 'old',
     *              name = '/tmp/catter.temp')
Calls
      call system ('/bin/rm /infobank/gazette/onoff/*/*/*/*.onoff.*')
      call system ('/bin/rm /infobank/gazette/onoff/*/*/*.onoff.*')
      call system ('/bin/rm /infobank/gazette/onoff/*/*.onoff.*')
          call stringlen (DataType(Loop), TypeLength)
          call stringlen (Level1, Length1)
          call stringlen (Level2, Length2)
          call stringlen (Level3, Length3)
          call stringlen (DirPath, DirPathLength)
              call stringlen (DirPath, DirPathLength)
              call stringlen (DirPath, DirPathLength)
          call stringlen (InPath, InPathLength)
          call stringlen (InPath, InPathLength)
              call stringlen (InPath, InPathLength)
              call stringlen (InPath, InPathLength)
              call system 
     *            ('grep -v \!'//
     *            ' /infobank/programs/keep/infobank_files.keep | '//
     *            'grep -h '//char(39)//InPath(1:InPathLength)//
     *             char(39)//
     *            ' > 
     *            '/tmp/catter.temp')
              call system ('/bin/cp '//
     *               TempPath(1:TempPathLength)//
     *               ' '//
     *               DirPath(1:DirPathLength)//
     *               TempPath(Slash:TempPathLength))
                  call system ('/bin/cp '//
     *                  TempPath(1:TempPathLength)//
     *                  ' '//
     *                  DirPath(1:DirPathLength)//
     *                  TempPath(Slash:TempPathLength))
              call system 
     *            ('grep -v \!'//
     *            ' /infobank/programs/keep/infobank_files.keep | '//
     *            'grep -h '//char(39)//InPath(1:InPathLength)//
     *             char(39)//
     *            ' > 
     *            '/tmp/catter.temp')
              call system ('/bin/cp '//
     *               TempPath(1:TempPathLength)//
     *               ' '//
     *               DirPath(1:DirPathLength)//
     *               TempPath(Slash:TempPathLength))
                  call system ('/bin/cp '//
     *                  TempPath(1:TempPathLength)//
     *                  ' '//
     *                  DirPath(1:DirPathLength)//
     *                  TempPath(Slash:TempPathLength))

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/gaz/gazboothill/onoff2gaz/onoff2gaz.doc.html
Page Contact Information: InfoBank staff
Page Last Modified: Mon Sep 16 03:38:21 PDT 2013  (chd)