Coastal & Marine Geology InfoBank

Home FACS Activities Atlas Geology School Related Sites More

USGS InfoBank program -- mainseis4kml

Skip navigational links
Loading
InfoBank Programs: by Name   by Topic  
Expanded Description
Topic Description
Name
mainseis4kml
Synopsis
/infobank/programs/kml/seis4kml/mainseis4kml.for
Description
  Program to convert a DAPS seismic file to x,y,z format for KML

       
COMMENTS
  This program is driven by a script that creates 

  a temporary collection of IDs.
  This program relies on .best_seis_file files for data.
    
RELATED_PROGRAMS
  nav4kml.for      times4kml.for

    
AUTHOR
  Alex Ma         2/16/2007

  Clint Steele    6/05/2007

    
Reads
      read (BestListUnit, '(q,a)', end=199) 
     *     NavUnitnameLength, NavUnitname
      read (IDsUnit, '(t10,a20)') AkaID
          read (NavUnit, '(q,a)') ALineLength, ALine(1:ALineLength)
Writes
      write (Blank, '(12x)')
      write (KmlUnitName, '(1024x)')
      write (AkaID, '(20x)')
      write (KmlUnit, '(/,2x,a)') '<ScreenOverla
      write (KmlUnit, '(4x,a)') '<Ico
      write (KmlUnit, '(6x,a)') 
     *     '<href>http://walrus.wr.usgs.gov/infob
     *     '/programs/html/tools/gelegend.png</hre
      write (KmlUnit, '(4x,a)') '</Ico
      write (KmlUnit, '(4x,a)') '<name>Legend&l
      write (KmlUnit, '(4x,a)') 
     *        '<overlayXY x="0.01" y="0.94" 
     *        'xunits="fraction" yunits="fraction"/&g
      write (KmlUnit, '(4x,a)') 
     *        '<screenXY x="0.01" y="0.94" 
     *        'xunits="fraction" yunits="fraction"/&g
      write (KmlUnit, '(2x,a,/)') '</ScreenOverla
          write (ALine, '(1024x)')
      write (PrevLine, '(1024x)')
      write (KmlUnit, '(1x,a)') '<NetworkLin
      write (KmlUnit, '(2x,a)') '<nam
      write (KmlUnit, '(4x,a)') LongID(1:IDLength+3)//' Nav Lines'
      write (KmlUnit, '(2x,a)') '</nam
      write (KmlUnit, '(4x,a)') '<Lin
      write (KmlUnit, '(6x,a)') '<hre
      write (KmlUnit, '(8x,a)')'http://walrus.wr.usgs.gov'//
     *                               '/infobank/'//
     *                               ID(1:1)//'/'//
     *                               ID(1:IDLength)//
     *                               '/kml/'//LongID(1:IDLength+3)//
     *                               '.seisnav.kml'
      write (KmlUnit, '(6x,a)') '</hre
      write (KmlUnit, '(4x,a)') '</Lin
      write (KmlUnit, '(1x,a)') '</NetworkLin
      write (KmlUnit, '(a)') '</Documen
      write (KmlUnit, '(a)') '</kml
Opens
      open (unit = ControlUnit,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = '/infobank/tmp/seis4kml.control.temp')
      open (unit = BestListUnit,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'old',
     *      name = '/infobank/'//ID(1:1)//'/'//ID(1:IDLength)//
     *             '/seis/'//LongID(1:IDLength+3)//'.best_seis_file')
      open (unit = NavUnit,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'old',
     *      name = NavUnitname(1:NavUnitnameLength))
       open (unit = KmlUnit,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = KmlUnitName(1:KmlUnitNameLength))
      open (unit = IDsUnit,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = '/infobank/'//ID(1:1)//'/'//ID(1:IDLength)//
     *             '/meta/'//LongID(1:IDLength+3)//'.ids')
      open (unit = StandardUnit,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = '/infobank/tmp/seis4kml.standard.temp')
       open (unit = KmlUnit,
     *      access = 'append',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = KmlUnitName(1:KmlUnitNameLength))      
Calls
      call kmlanalyzeid (ControlUnit, IDLength, LongID, ID, Status)
      call stringlen (KmlUnitName, KmlUnitNameLength)
          call system ('/bin/rm '//
     *                   KmlUnitName(1:KmlUnitNameLength))
      call stringlen (AkaID, AkaIDLength)
      call kmllookat (KmlUnit, AkaID(1:AkaIDLength), 
     *    NavUnitname(FirstDot:NavUnitnameLength),
     *    IDLength, ID, LongID)
          call onoffformat (NavUnit, StandardUnit)
                call nonavformat (NavUnit, StandardUnit)
                    call manydotsformat (NavUnit, StandardUnit)
                    call onedotformat (NavUnit, StandardUnit)
                call nodotsformat (NavUnit, StandardUnit)
                    call manydotsformat (NavUnit, StandardUnit)
                    call onedotformat (NavUnit, StandardUnit)
                call nodotsformat (NavUnit, StandardUnit)
      call seisidsfolder
     *     (AkaID(1:AkaIDLength),
     *      AkaID(1:AkaIDLength),
     *      StandardUnit, SeisIDsUnit,
     *      KmlUnitName, KmlUnitNameLength,
     *      SeisIDsName, SeisIDsNameLength, KmlUnit,
     *      ID, IDLength, AkaIDLength, LongID)
      call seisendpointsfolder 
     *     (AkaID(1:AkaIDLength), 
     *      NavUnitname(1:NavUnitnameLength),
     *      StandardUnit, SeisEndPointsUnit,
     *      KmlUnitName, KmlUnitNameLength,
     *      SeisEndPointsName, SeisEndPointsNameLength, KmlUnit,
     *      ID, IDLength, AkaIDLength, LongID)
      call seisnavfolder 
     *     (ID(1:IDLength), AkaID(1:AkaIDLength), 
     *      NavUnitname(1:NavUnitnameLength),
     *      StandardUnit, SeisNavUnit,
     *      KmlUnitName, KmlUnitNameLength,
     *      SeisNavName, SeisNavNameLength)
       call system ('/bin/cat '// SeisIDsName(1:SeisIDsNameLength)//
     *              ' '//SeisEndPointsName(1:SeisEndPointsNameLength)//
     *              ' >> '// KmlUnitName(1:KmlUnitNameLe
      call changecase ('CAPITAL', LongID(1:IDLength+3))
      call changecase ('SMALLS', LongID(1:IDLength+3))      
      call kmlzip (KmlUnitName(1:KmlUnitNameLength))

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