Coastal & Marine Geology InfoBank

Home FACS Activities Atlas Geology School Related Sites More

USGS InfoBank program -- sampsendpointsfolder

Skip navigational links
Loading
InfoBank Programs: by Name   by Topic  
Expanded Description
Topic Description
Name
sampsendpointsfolder
Synopsis
/infobank/programs/kml/samps2kmlinc/sampsendpointsfolder.for
Description
  Subroutine to create a .seisendpointss.kmlinc file

       
AUTHOR
  Clint Steele    3/2/2008

  Sumy Tom        3/20/2008
  Carolyn Degnan, 8/2/2012, Added sp format specification to output positive lat/lons with plus signs.

    
Reads
      read (80, '(q,a)', end=199) OnOffFilenameLength, OnOffFilename
      read (OnOffFile, '(q,a)', end = 99) 
     *    ALineLength, ALine(1:ALineLength)
         read (ALine, '(t16,f9.5,t26,f10.5)', err=1) Lat, Long
         read (ALine, '(t17,f10.6,t28,f11.6)', err=1) Lat, Long
Writes
      write (SampsEndPointsName, '(1024x)')
      write (SampsEndPointsUnit, '(2x,a)') '<Folde
      write (SampsEndPointsUnit, '(4x,a)') 
     * '<name>'// CapID2//
     * OnOffFilename(LastDot+1:OnOffFilenameLength)//'</nam
      write (ALine, '(1024x)')
         write(85,'(a)') OnOffFileName(1:OnOffFileNameLength)
      write (SampsEndPointsUnit, '(2x,a)') '<Placemar
      write (SampsEndPointsUnit, '(4x,a)') 
     *        '<name>'//SampleID(1:SampleLength)//'&l
      write (SampsEndPointsUnit, '(4x,a)') 
     * '<styleUrl>#MagentaBubble</s
      write (SampsEndPointsUnit, '(4x,a)') '<visibility>1</vis
      write (SampsEndPointsUnit, '(4x,a)') '<Poin
      write (SampsEndPointsUnit, '(6x,a)') '<coordinate
      write (SampsEndPointsUnit, '(sp,8x,f11.6,a,f10.6,a)') 
     * Long,',',Lat,',0'
      write (SampsEndPointsUnit, '(6x,a)') '</coordinate
      write (SampsEndPointsUnit, '(4x,a)') '</Poin
      write (SampsEndPointsUnit, '(2x,a)') '</Placemar
      write (SampsEndPointsUnit, '(2x,a)') '</Folde
Opens
      open (unit = OnOffFile,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'old',
     *      name = OnOffFilename(1:OnOffFilenameLength))
      open (unit = SampsEndPointsUnit,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = SampsEndPointsName(1:SampsEndPointsLength))
      open (unit = 85,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = '/infobank/tmp/samps2kmlinc.latlong.txt')
Calls
      call stringlen (SampsEndPointsName, SampsEndPointsLength)
          call system ('/bin/rm '//
     *                   SampsEndPointsName(1:SampsEndPointsLength))
      call changecase("CAPITAL", CapID2)
      call calculatesampleid
     *    (ALine, ALineLength,
     *     SampleID, SampleLength)
      call describesamples
     *        (ID, IDLength, LongID, OnOffFilename, 
     *         OnOffFilenameLength, LastDot, ALine,
     *         ALineLength, SampleID, SampleLength,
     *         AkaID, AkaIDLength, CapID,
     *         SampsEndPointsUnit)
      call samps2kmlinccat (ID(1:IDLength), IDLength, cType)

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