Coastal & Marine Geology InfoBank

Home FACS Activities Atlas Geology School Related Sites More

USGS InfoBank program -- regions2idshtml

Skip navigational links
Loading
InfoBank Programs: by Name   by Topic  
Expanded Description
Topic Description
Name
regions2idshtml
Synopsis
/infobank/programs/html/regions2idshtml/regions2idshtml.for
Description
  Program to convert a list of regions into a script that

  will generate <region>_ids.html files for
  region ID.
       
EXECUTION_TIME
  2 minutes

    
AUTHOR
  Clint Steele    3/12/96


    
Reads
          read (RegionList, '(q,a)', end = 99) 
     *            IDLength, ID(1:IDLength)
Writes
          write (Command, '(255x)')
          write (Command, 2) SmallRegion(1:SmallRegionLength)
          write (HtmlName, 5) SmallRegion(1:SmallRegionLength)
          write (Title, '(a)') 
     *       'CMG Activities by Region ('//
     *       ID(Tab(8)+1:Tab(9)-1)//
     *       ')'
         write (Path, 7) SmallRegion(1:SmallRegionLength)
         write (IDHtml, '(2x,a)') '</t
Opens
       open (unit  =  RegionList,
     *      access = 'sequential',
     *      file   = '/infobank/programs/keep/gazette.keep',
     *      form   = 'formatted',
     *      status = 'old')
          open (unit = IDHtml,
     *      access = 'sequential',
     *      file   =  HtmlName,
     *      form   = 'formatted',
     *      status = 'unknown')
Calls
          call changecase ('SMALLS', SmallRegion)
          call stringlen (SmallRegion, SmallRegionLength)
          call system (Command)
          call stringlen (Title, TitleLength)
          call htmlhead (IDHtml, Title(1:TitleLength))
          call includeit (IDHtml,
     *       '/infobank/programs/html/tools/activities.tabs')
          call includeit (IDHtml,
     *       '/infobank/programs/html/tools/activities.regions.tabs')
         call stringlen (Path, PathLength)
         call sortids (IDHtml, 'regions2idshtml', OutputCount,
     *              Path(1:PathLength))
         call htmlfoot (IDHtml, Path(1:PathLength))

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