Coastal & Marine Geology InfoBank

Home FACS Activities Atlas Geology School Related Sites More

USGS InfoBank program -- kmlcheck

Skip navigational links
Loading
InfoBank Programs: by Name   by Topic  
Expanded Description
Topic Description
Name
kmlcheck
Synopsis
/infobank/programs/kml/kmlcheck/kmlcheck.for
Description
  Program that checks for .kml files, and

  if .kml exists, check for .kmz files.
  AUTHOR
  Alex Ma    5/8/06

       
Reads
      read (80, '(q,a)') DateLength, CurrentDate
      read (CurrentDate(DateLength-3:DateLength), '(i)') CurrentYear
      read (90, '(q,a)', end = 777, err=888) FileNameLength, FileName
              read (92, '(q,a)', end=666, err=666) ModifyLength, Modify
                  read (Modify(Loc+4:Loc+5), '(i)') Day
                      read (Modify(Loc+8:Loc+11), '(i)') Year
                      read (Modify(Loc+7:Loc+8), '(i)') Hour
                      read (Modify(Loc+10:Loc+11), '(i)') Minute
                  read (Modify(Loc+4:Loc+5), '(i)') Day2
                      read (Modify(Loc+8:Loc+11), '(i)') Year2
                      read (Modify(Loc+7:Loc+8), '(i)') Hour2
                      read (Modify(Loc+10:Loc+11), '(i)') Minute2
Writes
              write (LongID, '(10x)')
Opens
      open (unit = 80,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'old',
     *      name = '/infobank/tmp/date.temp')
      open (unit = 90,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'old',
     *      name = '/infobank/tmp/allid.temp')
              open (unit = 92,
     *              access = 'sequential',
     *              form = 'formatted',
     *              status = 'old',
     *              name = '/infobank/tmp/modifytime.list')
Calls
      call system ('date > /infobank/tmp/date.tem
      call system ('/bin/ls -1 /infobank/a > 
     *             '/infobank/tmp/allid.temp')
          call system ('/bin/ls -1 /infobank/'//
     *                 Alphabet(AlphaLoop:AlphaLoop)//
     *                 ' >> /infobank/tmp/allid.
              call system ('nav4kml '//
     *                      FileName(1:FileNameLength))
              call system ('times4kml '//
     *                      FileName(1:FileNameLength))
                  call system ('samps4kml '//
     *                          FileName(1:FileNameLength))
              call system ('zip4kml '//
     *                      FileName(1:FileNameLength))
              call system ('ls -l /infobank/'//FileName(1:1)//
     *                     '/'//FileName(1:FileNameLength)//
     *              '/kml/*.km* > /infobank/tmp/modifytime.lis
                  call system ('zip4kml '//
     *                      FileName(1:FileNameLength))

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