Link to USGS home page
USGS Home
Contact USGS
Search USGS
Coastal & Marine Geology InfoBank

USGS InfoBank program -- whnav2daps

Skip navigational links
Search InfoBank
Home tab Atlas tab Activities tab FACS tab Geology School tab More tab Activities tabs
   
InfoBank Programs: by Name   by Topic  
   
Expanded description
Topic Description
Name
whnav2daps
Synopsis
/infobank/programs/nav/whnav2daps/whnav2daps.for
Description
  Program to reformat navigation files from 
  CMG Woods Hole to standard DAPS format.
    
Author
  Clint Steele      11/15/2007


    
Opens
 open (unit = 90,
*      access = 'sequential',
*      form = 'formatted',
*      status = 'unknown',
*      name = InFile(1:InFileLength))

 open (unit = 91, 
*      access = 'sequential',
*      form = 'formatted',
*      status = 'unknown',
*      name = OutFile(1:OutFileLength))

    
Reads
 read (5, '(q,a)') InFileLength, InFile(1:InFileLength)
 read (5, '(q,a)') OutFileLength, OutFile(1:OutFileLength)
 read (5, '(i4)') Year
 read (90, '(q,a)', end = 99) ARecLength, ARec(1:ARecLength)
         read (ARec(1:LatEnd-1), '(f)') Latitude
         read (ARec(LatEnd+1:LongEnd-1), '(f)') Longitude
         read (ARec(1:LatDegEnd-1), '(i)') LatDeg
         read (ARec(LatDegEnd+1:LatMinEnd), '(f)') LatMin
         read (ARec(LatMinEnd:LongDegEnd-1), '(i)') LongDeg
         read (ARec(LongDegEnd+1:LongMinEnd-1), '(f)') LongMin
         read (ARec(1:LatEnd), '(f)') Latitude
         read (ARec(LongStart:LongEnd), '(f)') Longitude
         read (ARec(1:LatEnd), '(f)') Latitude
         read (ARec(LongStart:LongEnd-1), '(f)') Longitude
             read (ARec(ShotStart+1:ARecLength), '(i)') ShotNumber
     read (ARec(Tab2+1:ARecLength), '(i)') ShotNumber
    
Writes
 write (ARec, '(1024x)')
     write (91, '(a)') '! '//ARec(1:ARecLength)
     write (Line, '(1024x)')
 write (91, 2) Year, Day, Hour, Minute, Second, Tenths,
*     Latitude, Longitude, Line(1:LineLength), 
*     ShotNumber, Comment(1:CommentLength)
    
Calls
 call stringlen (ARec, ARecLength)
         call stringlen (Line, LineLength)
    

Skip footer navigational links


InfoBank   Menlo Park Center   Santa Cruz Center   St. Petersburg Center   Woods Hole Center   Coastal and Marine Geology Program   Geologic Information   Ask-A-Geologist   USGS Disclaimer  

FirstGov button   Take Pride in America button