Coastal & Marine Geology InfoBank

Home FACS Activities Atlas Geology School Related Sites More

USGS InfoBank program -- midnav

Skip navigational links
Loading
InfoBank Programs: by Name   by Topic  
Expanded Description
Topic Description
Name
midnav
Synopsis
/infobank/programs/nav/midnav/midnav.for
Description
  Program to capture the middle point of a navigation set.

       
AUTHOR
  Clint Steele     3/27/2008


    
Reads
          read (GazUnit, '(q,a)', end = 79)
     *        ALineLength, ALine(1:ALineLength)
                  read (ALine(1:Tab(1)-1), '(i)') IValue
                  read (ALine(1:Tab(1)-1), '(f)') North(GazCount)
                  read (ALine(Tab(1)+1:Tab(2)-1), '(i)') IValue
                  read (ALine(Tab(1)+1:Tab(2)-1), '(f)') South(GazCount)
                  read (ALine(Tab(2)+1:Tab(3)-1), '(i)') IValue
                  read (ALine(Tab(2)+1:Tab(3)-1), '(f)') East(GazCount)
                  read (ALine(Tab(3)+1:Tab(4)-1), '(i)') IValue
                  read (ALine(Tab(3)+1:Tab(4)-1), '(f)') West(GazCount)
      read (ControlUnit, '(q,a)', end=99)
     *      IDLength, ID(1:IDLength)
      read (BestUnit, '(q,a)') 
     *    BestFileLength, BestFile(1:BestFileLength)
          read (NavUnit, '(q,a)', end = 98)
     *        ALineLength, ALine(1:ALineLength)
          read (MidNavUnit, '(q,a)')
     *          MidLineLength, MidLine(1:MidLineLength)
              read (MidLine, '(t16,f9.5,t26,f10.5)')
     *              MidLat, MidLong
              read (MidLine, '(t17,f10.6,t28,f11.6)')
     *              MidLat, MidLong
          read (NavUnit, '(q,a)', end = 98)
     *        ALineLength, ALine(1:ALineLength)
              read (ALine, '(t16,f9.5,t26,f10.5)')
     *              MidLat, MidLong
              read (ALine, '(t17,f10.6,t28,f11.6)')
     *              MidLat, MidLong
Writes
      write (LongID, '(10x)')
          write (MidLine, '(1024x)')
               write (MidNavUnit,
     *            '(a14,t16,f9.5,t26,f10.5,1x,a,t50,a)')
     *          MidLine(1:14), GazLat, GazLong, ID(1:IDLength),'general'
               write (MidNavUnit, 
     *            '(a14,t16,f9.5,t26,f10.5,1x,a,t50,a)')
     *          MidLine(1:14), GazLat, GazLong, ID(1:IDLength),'general'
               write (MidNavUnit, 
     *            '(a14,t16,f9.5,t26,f10.5,1x,a,t50,a)')
     *          MidLine(1:14), MidLat, MidLong, ID(1:IDLength),'chosen'
              write (MidNavUnit, 
     *            '(a14,t16,f9.5,t26,f10.5,1x,a,t50,a)') 
     *              ALine(1:14), MidLat, MidLong,
     *            ID(1:IDLength),'actual'
Opens
      open (unit = GazUnit,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'old',
     *      name = '/infobank/programs/keep/gazette.keep')
      open (unit   = ControlUnit,
     *      file   = '/infobank/tmp/midnav.control.temp',
     *      access = 'sequential',
     *      form   = 'formatted',
     *      status = 'old')
      open (unit = BestUnit,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = '/infobank/'//ID(1:1)//'/'//
     *             ID(1:IDLength)//'/nav/'//
     *             LongID(1:IDLength+3)//'.best_nav_file')
      open (unit = NavUnit,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = BestFile(1:BestFileLength))
          open (unit = MidNavUnit,
     *          access = 'sequential',
     *          form = 'formatted',
     *          status = 'unknown',
     *          name = '/infobank/'//ID(1:1)//'/'//
     *                     ID(1:IDLength)//'/meta/'//
     *                     LongID(1:IDLength+3)//'.midnav')
           open (unit = MidNavUnit,
     *          access = 'sequential',
     *          form = 'formatted',
     *          status = 'unknown',
     *          name = '/infobank/'//ID(1:1)//'/'//
     *                     ID(1:IDLength)//'/meta/'//
     *                     LongID(1:IDLength+3)//'.midnav')
              open (unit = MidNavUnit,    
     *              access = 'sequential',
     *              form = 'formatted',
     *              status = 'unknown',
     *              name = '/infobank/'//ID(1:1)//'/'//
     *                     ID(1:IDLength)//'/meta/'//
     *                     LongID(1:IDLength+3)//'.midnav')
Calls
              call changecase ('SMALLS', GazArea(GazCount))

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