Coastal & Marine Geology InfoBank

Home FACS Activities Atlas Geology School Related Sites More

USGS InfoBank program -- zip4kml

Skip navigational links
Loading
InfoBank Programs: by Name   by Topic  
Expanded Description
Topic Description
Name
zip4kml
Synopsis
/infobank/programs/kml/zip4kml/zip4kml.for
Description
  Program that prompt for an activity ID, then 

  goes to the html directory of its activity ID, 
  lists all the current .kml files, and zips
  them all into .kmz files
  AUTHOR
  Alex Ma     4/26/06

       
Reads
      read (70, '(q,a)', end=999) IDLength, LongID(1:IDLength)
      read (80, '(q,a)') CWDLength, CWD
      read (82, '(q,a)', end = 666) FileNameLength, FileName
Writes
          write (LongID, '(10x)')
Opens
      open (unit = 70,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = '/infobank/tmp/zip4kml.control.temp')
      open (unit = 80,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'old',
     *      name = '/infobank/tmp/current.temp')
      open (unit = 82,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'old',
     *      name = '/infobank/tmp/kmllist.temp')
Calls
      call system ('/usr/bin/pwd > /infobank/tmp/current.tem
      call stringlen(newDir, newDirLength)
      call system ('/usr/bin/cp '//newDir(1:newDirLength)//
     *             '/*.kml '//CWD(1:CWDLength))
      call system ('/bin/ls -1 *.kml > /infobank/tmp/kmllist.tem
          call system ('zip '//NewFile(1:NewFileLength)//' '
     *                 //FileName(1:FileNameLength))
      call system ('/bin/cp '//FileName(1:10)//
     *             '*.kmz '//newDir(1:newDirLength))
          call system ('/bin/rm '//FileName(1:10)//'*.km*')

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