Coastal & Marine Geology InfoBank

Home FACS Activities Atlas Geology School Related Sites More

USGS InfoBank program -- activity

Skip navigational links
Loading
InfoBank Programs: by Name   by Topic  
Expanded Description
Topic Description
Name
activity
Synopsis
/infobank/programs/util/activity/activity.for
Description
  Program to create a new activity ID and Information Bank structure.

       
AUTHOR
  Clint Steele    7/31/96

  changed /infobank/programs/util/activity/activity.for
  from ' >& /dev/null' to ' > /dev/null 2>&1', CDegnan, 0

    
Reads
          read (5, '(a)', end = 99) ActivityID
              read (GazetteKeep, '(q,a)', end = 30)
     *            ALineLength, ALine(1:ALineLength)
                      read (ALine(1:Tab(1)-1), '(f)') North
                      read (ALine(1:Tab(1)-1), '(i)') iNorth
                      read (ALine(Tab(1)+1:Tab(2)-1), '(f)') South
                      read (ALine(Tab(1)+1:Tab(2)-1), '(i)') iSouth
                      read (ALine(Tab(2)+1:Tab(3)-1), '(f)') East
                      read (ALine(Tab(2)+1:Tab(3)-1), '(i)') iEast
                      read (ALine(Tab(3)+1:Tab(4)-1), '(f)') West
                      read (ALine(Tab(3)+1:Tab(4)-1), '(i)') iWest
          read (ActivityYear, '(i2)') Year
Writes
          write (ActivityID, '(80x)')
          write (CapShortActivity, '(7x)')
          write (LongActivity, '(10x)')
          write (SearchDirectory, '(512x)')
              write (Command, '(512x)')
          write (SearchDirectory, '(512x)')
              write (Command, '(512x)')
          write (SearchDirectory, '(512x)')
              write (Command, '(512x)')
                  write (RegionArea, 
     *                '(a,t10,f9.5,1x,f9.5,1x,f10.5,1x,f10.5,1x,a)')
     *              CapShortActivity(1:Length), 
     *              North, South, East, West,
     *              ALine(Tab(8)+1:Tab(9)-1)
                  write (OperationArea,
     *                '(a,t10,a)')
     *              CapShortActivity(1:Length),
     *              ALine(Tab(8)+1:Tab(9)-1)
                  write (NavArea, 
     *              '(a,t10,f9.5,1x,f9.5,1x,f10.5,1x,f10.5)') 
     *              CapShortActivity(1:Length), 
     *              North-0.25, South+0.25, East-0.25, West+0.25
          write (SearchDirectory, '(512x)')
              write (Command, '(512x)')
          write (SearchDirectory, '(512x)')
              write (Command, '(512x)')
          write (96, '(a, 1x, f9.5, 1x, f10.5)')
     *        TimeGap, North-0.25, West+0.25
          write (96, '(a, 1x, f9.5, 1x, f10.5)')
     *        TimeGap, North-0.25, East-0.25
          write (96, '(a, 1x, f9.5, 1x, f10.5)')
     *        TimeGap, South+0.25, East-0.25
          write (96, '(a, 1x, f9.5, 1x, f10.5)')
     *        TimeGap, South+0.25, West+0.25
          write (96, '(a, 1x, f9.5, 1x, f10.5)')
     *        TimeGap, North-0.25, West+0.25
          write (BestNavFile, '(a)')
     *        '/infobank/'//ActivityID(1:1)//'/'
     *        //ActivityID(1:Length)
     *        //'/nav/'//LongActivity(1:LongLength)//'.050'
              write (95, '(a,t10,a)')
     *              CapShortActivity(1:Length),
     *           '01/01/20'//ActivityYear//' (JD 001) --> 
     *           '01/01/20'//ActivityYear//' (JD 001)'
              write (95, '(a,t10,a)')
     *              CapShortActivity(1:Length),
     *           '01/01/19'//ActivityYear//' (JD 001) --> 
     *           '01/01/19'//ActivityYear//' (JD 001)'
          write (SearchDirectory, '(512x)')
              write (Command, '(512x)')
          write (SearchFile, '(512x)')
              write (CapShortActivity, '(7x)')
              write (97, '(a,t10,a,t30,a)')
     *             CapShortActivity(1:Length),
     *             CapActivity(1:LongLength),
     *             '<A HREF="http://walrus.wr.usgs.gov/infobank/
     *             ActivityID(1:1)//
     *             '/'//
     *             ActivityID(1:Length)//
     *             '/html/'//
     *             LongActivity(1:LongLength)//
     *             '.meta.html">
     *             CapActivity(1:LongLength)//
     *             '</
Opens
              open (unit = GazetteKeep,
     *              access = 'sequential',
     *              form = 'formatted',
     *              status = 'old',
     *              name = '/infobank/programs/keep/gazette.keep')
              open (unit = NavArea,
     *              access = 'sequential',
     *              form = 'formatted',
     *              status = 'unknown',
     *              name = '/infobank/'//ActivityID(1:1)//'/'
     *                      //ActivityID(1:Length)
     *              //'/meta/'//LongActivity(1:LongLength)//'.navarea')
              open (unit = OperationArea,
     *              access = 'sequential',
     *              form = 'formatted',
     *              status = 'unknown',
     *              name = '/infobank/'//ActivityID(1:1)//'/'
     *                      //ActivityID(1:Length)
     *              //'/meta/'//LongActivity(1:LongLength)//
     *              '.operationarea')
              open (unit = RegionArea,
     *              access = 'sequential',
     *              form = 'formatted',
     *              status = 'unknown',
     *              name = '/infobank/'//ActivityID(1:1)//'/'
     *                      //ActivityID(1:Length)
     *           //'/meta/'//LongActivity(1:LongLength)//'.regionarea')
          open (unit = 95,
     *          access = 'sequential',
     *          form = 'formatted',
     *          status = 'unknown',
     *          name = '/infobank/'//ActivityID(1:1)//'/'
     *                 //ActivityID(1:Length)
     *            //'/meta/'//LongActivity(1:LongLength)//'.dates')
          open (unit = 96,
     *          access = 'sequential',
     *          form = 'formatted',
     *          status = 'unknown',
     *          name = '/infobank/'//ActivityID(1:1)//'/'
     *                  //ActivityID(1:Length)
     *         //'/nav/'//LongActivity(1:LongLength)//'.050')
          open (unit = BestNavFile,
     *          access = 'sequential',
     *          form = 'formatted',
     *          status = 'unknown',
     *          name = '/infobank/'//ActivityID(1:1)//'/'
     *                  //ActivityID(1:Length)
     *        //'/nav/'//LongActivity(1:LongLength)//'.best_nav_file')
              open (unit = 97,
     *              status = 'new',
     *              access = 'sequential',
     *              form = 'formatted',
     *              name = '/infobank/'//ActivityID(1:1)//'/'//
     *                     ActivityID(1:Length)//
     *                     '/meta/'//
     *                     LongActivity(1:LongLength)//'.ids')
Calls
      call getcwd (CurrentDirectory)
          call stringlen (ActivityID, Length)
          call changecase ('SMALLS', ActivityID(1:Length))
          call changecase ('CAPITALS', CapShortActivity(1:Length))
          call stringlen (LongActivity, LongLength)
          call stringlen (SearchDirectory, SearchLength)
              call stringlen (Command, CommandLength)
              call system (Command(1:CommandLength))
          call stringlen (SearchDirectory, SearchLength)
              call stringlen (Command, CommandLength)
              call system (Command(1:CommandLength))
          call stringlen (SearchDirectory, SearchLength)
              call stringlen (Command, CommandLength)
              call system (Command(1:CommandLength))
              call system ('/bin/echo '//
     *            ActivityID(1:Length)//
     *            ' >> /infobank/programs/gaz/atlaskeepfil
     *            'newactivities.keep')
              call system ('bin/echo '//ActivityID(1:Length)//
     *            ' > /infobank/tmp/area2atlas.control.tem
              call system 
     *               ('/infobank/programs/gaz/area2atlas/area2atlas')
          call system ('/bin/cp '//
     *          '/infobank/'//ActivityID(1:1)//'/'
     *          //ActivityID(1:Length)//
     *          '/meta/'//LongActivity(1:LongLength)//'.navarea '//
     *          '/infobank/'//ActivityID(1:1)//'/'
     *          //ActivityID(1:Length)//
     *          '/meta/'//LongActivity(1:LongLength)//'.atlasarea')
          call stringlen (SearchDirectory, SearchLength)
              call stringlen (Command, CommandLength)
              call system (Command(1:CommandLength))
          call stringlen (SearchDirectory, SearchLength)
              call stringlen (Command, CommandLength)
              call system (Command(1:CommandLength))
          call stringlen (SearchDirectory, SearchLength)
              call stringlen (Command, CommandLength)
              call system (Command(1:CommandLength))
          call stringlen (SearchFile, SearchLength)
              call changecase ('CAPITAL', CapActivity)
              call changecase ('CAPITALS', CapShortActivity(1:Length))
               call system (
     *          '/bin/chmod 664 '//
     *          '/infobank/'//ActivityID(1:1)//'/'//
     *          ActivityID(1:Length)//
     *          '/meta/'//
     *          LongActivity(1:LongLength)//'.ids'//
     *          '; /infobank/programs/shells/info2html '//
              call system ('/infobank/programs/shells/makefilelist '//
     *                     ActivityID(1:Length))
              call system ('/infobank/programs/shells/info2html '//
     *                     ActivityID(1:Length))

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/util/activity/activity.doc.html
Page Contact Information: InfoBank staff
Page Last Modified: Mon Sep 16 03:37:05 PDT 2013  (chd)