Link to USGS home page Link to InfoBank home page Link to InfoBank home page
 USGS Coastal and Marine Geology banner.    Search InfoBank.
USGS InfoBank program -- odometersum Skip navigational links
Home tab Atlas tab Activities tab FACS tab Geology School tab More tab Activities tabs
   
InfoBank Programs: by Name   by Data Type   General Tools   GIS   Plotting   Web   USGS Disclaimer   InfoBank Programs   Boothill  
   
Expanded description
Topic Description
Name
odometersum
Synopsis
/infobank/programs/nav/odometersum/odometersum.for
Description
  Program to sum the odometer values for multiple activities.
    
Input
  A file containing a list of non-hyphenated activity IDs.

    
Output
  A file containing diagnostics and the cumulative distance in kms.

    
Author
  Clint Steele     11/22/2004


    
Opens
         open (unit = 92,
*              access = 'sequential',
*              form = 'formatted',
*              status = 'old',
*              name = '/infobank/'//
*                     ID(1:1)//'/'//
*                     ID(1:IDLength)//'/nav/'//
*                     LongID(1:IDLength+3)//'.best_nav_file')

             open (unit = 93,
*                  access = 'sequential',
*                  form = 'formatted',
*                  status = 'old',
*                  name = BestNavFile(1:BestLength))

    
Reads
     read (90, '(q,a)', end = 99)
*        IDLength, ID(1:IDLength)

         read (92, '(q,a)') 
*            BestLength, BestNavFile(1:BestLength)

                 read (93, '(q,a)', end = 98)
*                    ALength, ALine(1:ALength)

                 read (ALine(1:36), '(t16,f9.5,t26,f10.5)')
*                    Lat1, Long1

                 read (93, '(q,a)', end = 98)
*                    ALength, ALine(1:ALength)

                 read (ALine(1:36), '(t16,f9.5,t26,f10.5)')
*                    Lat2, Long2

    
Writes
     write (ID, '(7x)')
     write (LongID, '(10x)')
         write (91, '(a)') 'No /nav/ for '//ID(1:IDLength)
         write (91, '(a)') 'No best nav file designated for '//
*                 ID(1:IDLength)

             write (91, '(a)') 'Could not find nav file for '//
*                     ID(1:IDLength)

 write (91, '(f,a)') MeterSum/1000.0, ' kms'
    
Calls
 call openem (1,-1)
     call changecase ('SMALLS', ID(1:IDLength))
                     call getdistance 
*                       (Lat1, Long1, Lat2, Long2, Meters)

    

Skip footer navigational links

InfoBank   Menlo Park Center   Santa Cruz Center   St. Petersburg Center   Woods Hole Center   Coastal and Marine Geology Program  
U. S. Department of the Interior   U. S. Geological Survey   Geologic Information   Ask-A-Geologist   USGS privacy statement   Disclaimer  

URL: http://walrus.wr.usgs.gov/infobank/programs/nav/odometersum/odometersum.doc.html
Maintainer: Clint Steele
Comments: e-mail
Last modified: Tue Nov 23 03:16:42 PST 2004  (wcs)