Coastal & Marine Geology InfoBank

Home FACS Activities Atlas Geology School Related Sites More

USGS InfoBank program -- mainongoing

Skip navigational links
Loading
InfoBank Programs: by Name   by Topic  
Expanded Description
Topic Description
Name
mainongoing
Synopsis
/infobank/programs/html/ongoing/mainongoing.for
Description
  Program to identify ongoing field activities

       
AUTHOR
  Clint Steele      9/24/2007


    
Reads
      read (SystemDateTime(9:10), '(i2)') Day
      read (SystemDateTime(21:24), '(i4)') ThisYear
          read (InUnit, '(a)', end = 99) DatesLine
          read (DatesLine(16:19), '(i4)') StartYear
          read (DatesLine(25:27), '(i3)') JDStart
          read (DatesLine(40:43), '(i4)') EndYear
          read (DatesLine(49:51), '(i3)') JDEnd
Writes
      write (TabUnit, '(a)')
     *   'begdate'//char(9)//
     *   'enddate'//char(9)//
     *   'westbc'//char(9)//
     *   'eastbc'//char(9)//
     *   'northbc'//char(9)//
     *   'southbc'//char(9)//
     *   'onlink (xml)'//char(9)//
     *   'onlink (html)'//char(9)//
     *   'title'//char(9)//
     *   'placekey'//char(9)
          write (OutUnit, '(a)') '<br>'//DatesLine(10
     *            ' '//ShortID(1:7)          
      write (HeadUnit, '(a)') '<include&
     *     '/infobank/programs/html/tools/home.tabs'
      write (HeadUnit, '(a)') '<include&
     *     '/infobank/programs/html/tools/home.newfieldwork.tabs'
      write (HeadUnit, '(a)') '<include&
     *     '/infobank/programs/keep/contents.keep'
Opens
      open (unit = InUnit,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'old',
     *      name = '/infobank/programs/keep/dates.keep')
      open (unit = FutureTempUnit,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = '/infobank/tmp/ongoing.future.temp')
      open (unit = PresentTempUnit,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = '/infobank/tmp/ongoing.present.temp')
      open (unit = PastTempUnit,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = '/infobank/tmp/ongoing.past.temp')
      open (unit = TabUnit,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = '/infobank/programs/html/ongoing/summary.txt')
      open (unit = HeadUnit,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = '/infobank/programs/html/ongoing/head.keep')
Calls
      call julianday ('JULIAN', JDToday,
     *                ThisYear, Month, Day)
      call system ('/bin/rm '//
     *    '/infobank/programs/html/ongoing/future*.html '//
     *    '/infobank/programs/html/ongoing/present*.html '//
     *    '/infobank/programs/html/ongoing/past*.html')
          call changecase ('SMALLS', ShortID)
      call system ('/bin/sort -k 5.7,5.11r -k 5.1,5.3r '//
     *    '-k 5.4,5.6r '//
     *    '/infobank/tmp/ongoing.past.temp > 
     *    '/infobank/tmp/ongoing.past.sorted')
      call system (
     *    '/bin/cat /infobank/tmp/ongoing.past.sorted > 
     *    '/infobank/programs/html/ongoing/past.ids')
      call system ('/bin/sort '//
     *    '-k 5.7,5.11 -k 1.11,1.14r -k 1.5,1.6r -k 1.8,1.9r '//
     *    '/infobank/tmp/ongoing.present.temp > 
     *    '/infobank/tmp/ongoing.present.sorted')
      call system (
     *    '/bin/cat /infobank/tmp/ongoing.present.sorted > 
     *    '/infobank/programs/html/ongoing/present.ids')
      call system (
     *    '/bin/sort -k 1.11,1.14 -k 1.5,1.6 -k 1.8,1.9 '//
     *    '/infobank/tmp/ongoing.future.temp > 
     *    '/infobank/tmp/ongoing.future.sorted')
      call system (
     *    '/bin/cat /infobank/tmp/ongoing.future.sorted > 
     *    '/infobank/programs/html/ongoing/future.ids')
      call system ('/infobank/programs/dbase/whosid/whosid')
      call futureactivities (FutureTempUnit, FutureUnit, ScratchUnit,
     *                       TabUnit)
      call presentactivities (PresentTempUnit, PresentUnit, ScratchUnit,
     *                        TabUnit)
      call pastactivities (PastTempUnit, PastUnit, ScratchUnit, 
     *                     TabUnit)
      call system ('/bin/cat '//
     *    '/infobank/programs/html/ongoing/head.keep '//
     *    '/infobank/programs/html/ongoing/pastib.'//
     *    Group(Loop)//'.keep '//
     *    '/infobank/programs/html/ongoing/past.'//
     *    Group(Loop)//'.keep > 
     *    '/infobank/programs/html/ongoing/past.'//
     *    Group(Loop)//'.txt')
      call system ('/bin/cat '//
     *    '/infobank/programs/html/ongoing/head.keep '//
     *    '/infobank/programs/html/ongoing/presentib.'//
     *    Group(Loop)//'.keep '//     
     *    '/infobank/programs/html/ongoing/present.'//
     *    Group(Loop)//'.keep > 
     *    '/infobank/programs/html/ongoing/present.'//
     *    Group(Loop)//'.txt')
      call system ('/bin/cat '//
     *    '/infobank/programs/html/ongoing/head.keep '//
     *    '/infobank/programs/html/ongoing/futureib.'//
     *    Group(Loop)//'.keep '//
     *    '/infobank/programs/html/ongoing/future.'//
     *    Group(Loop)//'.keep > 
     *    '/infobank/programs/html/ongoing/future.'//
     *    Group(Loop)//'.txt')
      call system ('/bin/rm /infobank/tmp/ongoing.*.temp')
      call system ('/bin/rm /infobank/tmp/ongoing.*.sorted')
      call system ('/infobank/programs/kml/ongoing4kml/ongoing4kml')
      call system 
     *     ('/infobank/programs/html/makemain/makemain')
      call system
     *     ('/bin/cp '//
     *      '/infobank/programs/html/ongoing/present.XX.html '//
     *      '/infobank/programs/html/ongoing/present.html')
      call system 
     *    ('/bin/chmod 664 /infobank/programs/html/ongoing/*.html')
      call system 
     *    ('/bin/chmod 664 /infobank/programs/html/ongoing/*.kmz')

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/ongoing/mainongoing.doc.html
Page Contact Information: InfoBank staff
Page Last Modified: Wed Mar 12 03:02:25 PDT 2014  (chd)