USGS InfoBank banner.  USGS, Coastal and Marine Geology, InfoBank banner.
 USGS Coastal and Marine Geology banner.    Search InfoBank.
USGS InfoBank program -- cds2html Skip navigational links
    ________   ________   ______________   ________   _________   _______________   ________  
  tab edge  Home  tab edge  Data  tab edge  Activities  tab edge  FACS  tab edge  Atlas  tab edge  Definitions  tab edge  More  tab edge  
   
InfoBank Programs: by Name   by Data Type   General Tools   GIS   Plotting   Web   USGS Disclaimer   InfoBank Programs   Boothill  
   
Expanded description
Topic Description
Name
cds2html
Synopsis
/infobank/programs/html/cds2html/cds2html.for
Description
  Program to convert the tab-based cds.keep file to a .html file.
    
Author
  Clint Steele     2/6/02

    
Modified
  B.F. 11/21/02

      added 'http://walrus.wr.usgs.gov' to path in call to htmlfoot

    
Opens
 open (unit = 90,
*      access = 'sequential',
*      form = 'formatted',
*      status = 'old',
*      name = '/infobank/programs/keep/cds.keep')

 open (unit = 91,
*      access = 'sequential',
*      form = 'formatted',
*      status = 'unknown',
*      name = '/infobank/programs/html/cds2html/cds.html')

    
Reads
     read (90, '(q,a)', end = 99) ALineLength, ALine(1:ALineLength)
    
Writes
 write (91, '(a)') '<TABLE BORDER="3"'//
*         'SUMMARY="layout table">'

 write (91, '(2x,a)') '<TR>'
 write (91, '(4x,a)') '<TH>'
 write (91, '(6x,a)') 'Source'
 write (91, '(4x,a)') '</TH>'
 write (91, '(4x,a)') '<TH>'
 write (91, '(6x,a)') 'CMG<BR>Contact'
 write (91, '(4x,a)') '</TH>'
 write (91, '(4x,a)') '<TH COLSPAN="2">'
 write (91, '(6x,a)') 'Description'
 write (91, '(4x,a)') '</TH>'
         write (91, '(2x,a)') '<TR>'
         write (91, '(4x,a)') '<TD>'
         write (91, '(6x,a)') ALine(1:Tab(1)-1)
         write (91, '(4x,a)') '</TD>'
         write (91, '(4x,a)') '<TD>'
         write (91, '(6x,a)') ALine(Tab(1)+1:Tab(2)-1)
         write (91, '(4x,a)') '</TD>'
         write (91, '(4x,a)') '<TD>'
         write (91, '(12x,a)') '<IMG SRC="'//
*            ALine(Tab(2)+1:Tab(3)-1)//'" '

         write (91, '(12x,a)') 'ALT="'//
*            ALine(Tab(3)+1:Tab(4)-1)//'" '

         write (91, '(12x,a)') 'WIDTH="'//
*            ALine(Tab(4)+1:Tab(5)-1)//'" '

         write (91, '(12x,a)') 'HEIGHT="'//
*            ALine(Tab(5)+1:Tab(6)-1)//'">'
         write (91, '(10x,a)') '</TD>'
         write (91, '(10x,a)') '<TD>'
         write (91, '(12x,a)') ALine(Tab(6)+1:Tab(7)-1)
         write (91, '(12x,a)') '<BR>'
         write (91, '(12x,a)') ALine(Tab(7)+1:ALineLength)
         write (91, '(12x,a)') '</TD>'
         write (91, '(2x,a)') '</TR>'
 write (91, '(a)') '</TABLE>'
    
Calls
 call htmlhead (91, 'CMG CD Collection')
 call htmlfoot (91, 'http://walrus.wr.usgs.gov/infobank/' //
*                         'programs/html/cds2html/cds.html')
    

Skip footer navigational links

InfoBank   Menlo Park Center   Santa Cruz Center   St. Petersburg Center   Woods Hole Center   Coastal and Marine Geology Program  
 
U. S. Department of the Interior   U. S. Geological Survey   Geologic Information   Ask-A-Geologist   USGS privacy statement   Disclaimer  

URL: http://walrus.wr.usgs.gov/infobank/programs/html/cds2html/cds2html.doc.html
Maintainer: Clint Steele
Comments: e-mail
Last modified: Thu Nov 21 12:49:34 PST 2002  (wcs)