Coastal & Marine Geology InfoBank

Home FACS Activities Atlas Geology School Related Sites More

USGS InfoBank program -- years4kml

Skip navigational links
Loading
InfoBank Programs: by Name   by Topic  
Expanded Description
Topic Description
Name
years4kml
Synopsis
/infobank/programs/kml/years4kml/years4kml.for
Description
  Program to form collections of navigation .kmls by year.

       
COMMENTS
  This program uses collections of IDs from dates2html

    
RELATED_PROGRAMS
  platforms4kml.for       organizations4kml.for    regions4kml.for    

  participants4kml.for    projects4kml.for
    
AUTHOR
  Clint Steele    4/28/2005


    
Reads
      read (ControlFile, '(t36,a4)', end = 99) Year
          read (IDFile, '(q,a)', end = 98)
     *        JpgLength, Jpg(1:JpgLength)
Writes
      write (Year, '(4x)')
Opens
      open (unit = ControlFile,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = '/infobank/tmp/years4kml.control.temp')
      open (unit = IDFile,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = '/infobank/tmp/years4kml.150px.temp')
Calls
      call system ('/bin/ls -1 '//
     *   '/infobank/programs/html/dates2html/19*.html'//
     *   ' > /infobank/tmp/years4kml.control.tem
      call system ('/bin/ls -1 '//
     *   '/infobank/programs/html/dates2html/20*.html'//
     *   ' >> /infobank/tmp/years4kml.control.
      call system ('/bin/grep '//
     *    'strong '//
     *    '/infobank/programs/html/dates2html/'//
     *    Year//'.html > 
     *    '/infobank/tmp/years4kml.150px.temp')
          call system ('/bin/mkdir /infobank/tmp/years4kml.temp')
          call system ('/bin/cat '//Jpg(InfoBank:Dot)//'*nav.kml '//
     *        ' | grep -v "<?xml version" 
     *        ' | grep -v "<kml xmlns" 
     *        ' | grep -v "</kml>
     *        ' > /infobank/tmp/years4kml.temp/
     *        Jpg(IDStart+5:IDEnd-2)//'.nav.kml')
      call system ('/bin/cat '//
     *    '/infobank/programs/keep/kmlhead.keep '//
     *    '/infobank/tmp/years4kml.temp/*.kml '//
     *    '/infobank/programs/keep/kmlfoot.keep '//
     *    ' > /infobank/programs/kml/years4kml/
     *    '/years/"'//
     *    Year//'".kml')
      call system ('/bin/rm '//
     *             '/infobank/tmp/years4kml.temp/*.kml')
      call system ('/bin/rmdir '//
     *             '/infobank/tmp/years4kml.temp')
      call system ('/bin/rm '//
     *             '/infobank/tmp/years4kml.*.temp')

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/kml/years4kml/years4kml.doc.html
Page Contact Information: InfoBank staff
Page Last Modified: Mon Sep 16 03:39:10 PDT 2013  (chd)