Coastal & Marine Geology InfoBank

Home FACS Activities Atlas Geology School Related Sites More

USGS InfoBank program -- getspeed

Skip navigational links
Loading
InfoBank Programs: by Name   by Topic  
Expanded Description
Topic Description
Name
getspeed
Synopsis
/infobank/programs/share/getspeed.for
Description
  Subroutine to determine the speed (in knots) between two positions.

       
USAGE
  "a" = argument, "r" = referenced, "s" = set

  
  call getspeed                         (with the following arguments)
         Time1                       [variable i*4 r]
         Time2                       [variable i*4 r]
         Distance                    [variable r*8 r]
         Speed                       [variable r*8 sr]
    
FUNCTIONS
  min                 (FORTRAN intrinsic function)  

  max                 (FORTRAN intrinsic function)  
  abs                 (FORTRAN intrinsic function)  
    
LIMITATIONS
  Times are input in integer tenths of a second since start of year.

  Times are over 6 months apart are assumed to be crossing a year 
    boundary.
  When crossing year boundaries the older year is assumed to be a
    non-leap year unless the older time is in day 366.
  The two input times need not be sequential.
  Identical input times result in a SPEED value of 0.0
  If either input time is invalid, the SPEED value will be 0.0
  Distance must be in meters.
    
AUTHOR
  Clint Steele       3/16/93


    
Reads
Writes
Opens
Calls

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