Coastal & Marine Geology InfoBank

Home FACS Activities Atlas Geology School Related Sites More

USGS InfoBank program -- organizations4kml

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

       
COMMENTS
  This program uses collections of IDs from organizations2idshtml

    
RELATED_PROGRAMS
  platforms4kml.for       years4kml.for    regions4kml.for    

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


    
Reads
      read (ControlFile, '(q,a)', end = 99) OrganizationLineLength, 
     *    OrganizationLine(1:OrganizationLineLength)
          read (IDFile, '(q,a)', end = 98)
     *        JpgLength, Jpg(1:JpgLength)
Writes
      write (Organization, '(1024x)')
      write (Organization, '(1024x)')
Opens
      open (unit = ControlFile,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = '/infobank/tmp/organizations4kml.control.temp')
      open (unit = IDFile,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = '/infobank/tmp/organizations4kml.150px.temp')
Calls
      call system ('/bin/rm /infobank/programs/'//
     *             'kml/organizations4kml/organizations/*')      
      call system ('/bin/grep organizations2idshtml '//
     *   '/infobank/programs/html'//
     *   '/organizations2idshtml/organizations.html'//
     *   ' | grep _ids.html > 
     *   '/infobank/tmp/organizations4kml.control.temp')
      call stringlen (Organization, OrganizationLength)
      call system ('/bin/grep '//
     *    '150px.jpg '//
     *    '/infobank/programs/html/organizations2idshtml/'//
     *    OrganizationLine(Letter:Letter)//'/"'//
     *    Organization(1:OrganizationLength)//'"_ids.html > 
     *    '/infobank/tmp/organizations4kml.150px.temp')
          call system ('/bin/mkdir '//
     *                 '/infobank/tmp/organizations4kml.temp')
          call system ('/bin/cat '//Jpg(InfoBank:Dot)//'*nav.kml '//
     *        ' | grep -v "<?xml version" 
     *        ' | grep -v "<kml xmlns" 
     *        ' | grep -v "</kml>
     *        ' > /infobank/tmp/organizations4kml.temp/
     *        Jpg(Slashb4Dot + 1 : Dot-1)//'.nav.kml')
           call changecase ('SMALLS', LowercaseLetter)
      call system ('/bin/cat '//
     *    '/infobank/programs/keep/kmlhead.keep '//
     *    '/infobank/tmp/organizations4kml.temp/*.kml '//
     *    '/infobank/programs/keep/kmlfoot.keep '//
     *    ' > /infobank/programs/kml/organizations4kml
     *    '/organizations/"'//
     *    Organization(1:OrganizationLength)//'".kml')
              call system ('/bin/rm '//
     *            '/infobank/tmp/organizations4kml.temp/'//
     *            Alphabet(Loop:Loop)//'*.kml')
      call system ('/bin/rmdir '//
     *             '/infobank/tmp/organizations4kml.temp')
      call system ('/bin/rm '//
     *             '/infobank/tmp/organizations4kml.*.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/organizations4kml/organizations4kml.doc.html
Page Contact Information: InfoBank staff
Page Last Modified: Mon Sep 16 03:38:58 PDT 2013  (chd)