Coastal & Marine Geology InfoBank

Home FACS Activities Atlas Geology School Related Sites More

USGS InfoBank program -- fieldplans

Skip navigational links
Loading
InfoBank Programs: by Name   by Topic  
Expanded Description
Topic Description
Name
fieldplans
Synopsis
/infobank/programs/html/fieldplans/fieldplans.for
Description
  Program to convert tab-delimited field plan table to .html

       
AUTHOR
  Clint Steele     1/21/05

  Clint Steele     10/14/08    commented out completed
                               and changed background colors
  changed location of FACS ID and VESSEL based on GTate's new format, cdegnan, 03/15/2013

    
Reads
      read (80, '(q,a)', end=80) ALineLength, ALine(1:ALineLength)
          read (90, '(q,a)', end = 99)
     *        ALineLength, ALine(1:ALineLength)
Writes
      write (91, '(a)') '<br 
      write (91, '(a)') 
     *    '<a href="http://walrus.wr.usgs.gov
     *    '/infobank/programs/html/fieldplans/'//
     *    'MOP.xlsx"> 
     *    'FieldSchedule.xlsx</
      write (91, '(a)') '<br 
      write (91, '(a)') '<table class="border" rules="all
      write (91, '(a)') '<t
      write (91, '(a)') '<th>Legend
      write (91, '(a)') '<t
      write (91, '(a)') '<table class="border" rules="all" 
     *    'bgcolor="#ececec" cellpadding=5 cellspacing=1&g
      write (91, '(2x,a)') '<t
      write (91, '(4x,a)') '<td bgcolor="#ccffff">Snavely
      write (91, '(4x,a)') '<td bgcolor="#00ffff">Karluk
      write (91, '(4x,a)') '<td bgcolor="#ffcc99">Other Vessel
      write (91, '(4x,a)') '<td bgcolor="#ececec">Jet Skis
      write (91, '(2x,a)') '</t
      write (91, '(a)') '</tabl
      write (91, '(a)') '</td></tr&
      write (91, '(a)') '<br 
      write (91, '(a)') '<table class="border" rules="all" 
     *    'bgcolor="#ececec" cellpadding=5 cellspacing=1&g
                      write (ID, '(4096x)')
                      write (ShortID, '(4096x)')
              write (91, '(2x,a)') '<tr bgcolor="#ccffcc
              write (91, '(2x,a)') '<tr bgcolor="#ececec
                      write (91, '(4x,a)') '<th width="5%"&
     *                    ALine(Tab(Loop)+1:Tab(Loop+1)-1)//
     *                    '</t
                      write (91, '(4x,a)') '<th width="10%"&
     *                    ALine(Tab(Loop)+1:Tab(Loop+1)-1)//
     *                    '</t
                      write (91, '(4x,a)') '<th&
     *                    ALine(Tab(Loop)+1:Tab(Loop+1)-1)//
     *                    '</t
                  write (91, '(4x,a)') 
     *                '<td align="center"&
     *                '<a href="http://walrus.wr.usgs.gov
     *                '/infobank/'//ShortID(1:1)//'/'//
     *                ShortID(1:IDLength-3)//'/html/'//
     *                ID(1:IDLength)//'.meta.html">
     *                ALine(Tab(Loop)+1:Tab(Loop+1)-1)//'</a&
     *                '</t
                        write (91, '(4x,a)') '<td bgcolor="#ccffff"&
     *                  ALine(Tab(Loop)+1:Tab(Loop+1)-1)//
     *                  '</t
                        write (91, '(4x,a)') '<td bgcolor="#00ffff"&
     *                  ALine(Tab(Loop)+1:Tab(Loop+1)-1)//
     *                  '</t
                        write (91, '(4x,a)') '<td bgcolor="#ececec"&
     *                  ALine(Tab(Loop)+1:Tab(Loop+1)-1)//
     *                  '</t
                        write (91, '(4x,a)') '<td align="center"&
     *                ' </t
                        write (91, '(4x,a)') '<td bgcolor="#ffcc99"&
     *                  ALine(Tab(Loop)+1:Tab(Loop+1)-1)//
     *                  '</t
                  write (91, '(4x,a)') '<td align="center"&
     *                ' </t
                  write (91, '(4x,a)') '<td align="center"&
     *                ALine(Tab(Loop)+1:Tab(Loop+1)-1)//
     *                '</t
          write (91, '(2x,a)') '</t
      write (91, '(a)') '</tabl
      write (91, '(a)') '<br 
Opens
      open (unit = 80,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = '/infobank/tmp/fieldplans.update.temp')
      open (unit = 90,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = '/infobank/tmp/fieldplans.temp')
      open (unit = 91,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = '/infobank/programs/html/fieldplans/fieldplans.html')
Calls
       call system ('/bin/cp '//
     *             '/infobank/programs/html/fieldplans/MOP.txt '//
     *             '/infobank/tmp/fieldplans.update.temp')
      call system ('/bin/sed -e ''s/\"//g'' '//
     *             '/infobank/programs/html/fieldplans/MOP.txt > 
     *             '/infobank/tmp/fieldplans.temp')
      call htmlhead (91, 'Pacific Science Center Field Schedule')
      call includeit (91, '/infobank/programs/html/tools/facs.tabs')
      call includeit (91, 
     *        '/infobank/programs/html/tools/home.newfieldwork.tabs')
      call includeit (91, 
     *        '/infobank/programs/html/tools/facs.descriptions.tabs')
      call includeit (91, 
     *        '/infobank/programs/html/tools/facs.forms.tabs')
      call includeit (91, 
     *        '/infobank/programs/html/tools/facs.appendix.tabs')
      call includeit (91, '/infobank/programs/keep/contents.keep')
                      call stringlen (ID, IDLength)
                      call changecase ('SMALLS', ShortID)
                      call changecase ('SMALLS', ID)
                      call stringlen (ShortID, ShortIDLength)
      call htmlfoot (91, 
     *    '/infobank/programs/html/fieldplans/fieldplans.html')

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/html/fieldplans/fieldplans.doc.html
Page Contact Information: InfoBank staff
Page Last Modified: Mon Nov 4 03:40:58 PST 2013  (chd)