Coastal & Marine Geology InfoBank

Home FACS Activities Atlas Geology School Related Sites More

USGS InfoBank program -- getarea

Skip navigational links
Loading
InfoBank Programs: by Name   by Topic  
Expanded Description
Topic Description
Name
getarea
Synopsis
/infobank/programs/nav/getarea/getarea.for
Description
  Program to generate a .area file

       
AUTHOR
  Clint Steele    10/22/97

  Clint Steele    10/29/2003  changed prompting and input handling
  Carolyn Degnan  09/08/2008  padded single point nav with 0.5 degree all around
  Clint Steele    08/17/2010  added recognition of DAPX format

    
Reads
      read (5, '(a)')  CapID
          read (91, '(t10,f9.5,t20,f9.5,t30,f10.5,t41,f10.5)')
     *        OldNorth, OldSouth, OldEast, OldWest
      read (90, '(q,a)', end = 299) 
     *    NavFileLength, NavFile(1:NavFileLength)
              read (92, '(q,a)', end = 99) 
     *            ALineLength, ALine(1:ALineLength)
              read (ALine(1:ALineLength), '(t26,f10.5)') Long
              read (ALine(1:ALineLength), '(t28,f11.6)') Long
              read (92, '(q,a)', end = 99) 
     *            ALineLength, ALine(1:ALineLength)
              read (ALine(1:ALineLength), '(t16,f9.5,t26,f10.5)') 
     *            Lat, Long          
              read (ALine(1:ALineLength), '(t17,f10.6,t28,f11.6)')
     *            Lat, Long
Writes
          write (91, '(a,t10,f9.5,t20,f9.5,t30,f10.5,t41,f10.5)')
     *       CapID, North, South, East, West
Opens
           open (unit = 90,
     *          access = 'sequential',
     *          form = 'formatted',
     *          status = 'unknown',
     *          name = '/infobank/'//
     *                 SmallID(1:1)//'/'//
     *                 SmallID(1:IDLength)//'/nav/'//
     *                 SmallID(1:1)//'-'//
     *                 SmallID(2:2)//'-'//
     *                 SmallID(3:4)//'-'//
     *                 SmallID(5:6)//'.best_nav_file')
          open (unit = 90,
     *          access = 'sequential',
     *          form = 'formatted',
     *          status = 'unknown',
     *          name = '/infobank/'//
     *                 SmallID(1:1)//'/'//
     *                 SmallID(1:IDLength)//'/nav/'//
     *                 SmallID(1:1)//'-'//
     *                 SmallID(2:3)//'-'//
     *                 SmallID(4:5)//'-'//
     *                 SmallID(6:7)//'.best_nav_file')
          open (unit = 91,
     *          access = 'sequential',
     *          form = 'formatted',
     *          status = 'unknown',
     *          name = AreaPath(1:AreaPathLength))
      open (unit = 92,
     *          access = 'sequential',
     *          form = 'formatted',
     *          status = 'unknown',
     *          name = NavFile(1:NavFileLength))
          open (unit = 91,
     *          access = 'sequential',
     *          form = 'formatted',
     *          status = 'unknown',
     *          name = AreaPath(1:AreaPathLength))
Calls
      call stringlen (CapID, IDLength)
      call changecase ('CAPITALS', CapID(1:IDLength))
      call changecase ('SMALLS', SmallID(1:IDLength))
      call stringlen (AreaPath, AreaPathLength)
          call limits (Long,Lat,West,South,East,North)
          call system ('sh /infobank/programs/shells/area2atlas '//
     *        SmallID(1:IDLength))

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