Coastal & Marine Geology InfoBank

Home FACS Activities Atlas Geology School Related Sites More

USGS InfoBank program -- grids

Skip navigational links
Loading
InfoBank Programs: by Name   by Topic  
Expanded Description
Topic Description
Name
grids
Synopsis
/infobank/programs/dbase/grids/grids.for
Description
  Program to determine 1 degree grids a best_nav_file passes through.

       
USAGE
  $ GRIDS

  SUBROUTINES
  getID (external shareable)
    
AUTHOR
  Clint Steele           5/9/86         .for

  Gary Deeter         25-aug-1986
  Clint Steele          10/16/2006
  All grids in a particular run are appended to a single file.

    
Reads
      read (ControlFile, '(q,a)', end=98) IDLength, ID(1:IDLength)
          read (BestFile, '(q,a)', end = 96) 
     *        InFileLength, InFile(1:InFileLength)
          read (WCFile, '(i8)') WordCount
          read (NavFile, '(q,a)', end = 97) 
     *       ALineLength, ALine(1:ALineLength)
          read (ALine(1:ALineLength), 1) ILat, ILong
Writes
Opens
      open (unit = ControlFile,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = '/infobank/tmp/grids.control.temp')
      open (unit = BestFile,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'old',
     *      name = '/infobank/'//ID(1:1)//'/'//
     *             ID(1:IDLength)//'/nav/'//
     *             LongID(1:IDLength+3)//'.best_nav_file')
      open (unit = GridsFile,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = '/infobank/'//ID(1:1)//'/'//
     *             ID(1:IDLength)//'/meta/'//
     *             LongID(1:IDLength+3)//'.grids')
          open (unit = WCFile,
     *          access = 'sequential',
     *          form = 'formatted',
     *          status = 'unknown',
     *          name = '/infobank/tmp/grids.wc.temp')
          open (unit = NavFile,
     *          access = 'sequential',
     *          form = 'formatted',
     *          status = 'old',
     *          name = InFile(1:InFileLength))
Calls
      call changecase ('SMALLS', ID(1:IDLength))
      call stringlen (ID(1:IDLength), IDLength)
          call system ('wc '//InFile(1:InFileLength)//
     *                 ' > /infobank/tmp/grids.wc.tem

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