Coastal & Marine Geology InfoBank

Home FACS Activities Atlas Geology School Related Sites More

USGS InfoBank program -- whnav2daps

Skip navigational links
Loading
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


    
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)
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))
Calls
      call stringlen (ARec, ARecLength)
              call stringlen (Line, LineLength)

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