Coastal & Marine Geology InfoBank

Home FACS Activities Atlas Geology School Related Sites More

USGS InfoBank program -- tmsp2dist

Skip navigational links
Loading
InfoBank Programs: by Name   by Topic  
Expanded Description
Topic Description
Name
tmsp2dist
Synopsis
/infobank/programs/share/tmsp2dist.for
Description
  Subroutine to determine the distance (in meters) 

  given the time and 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]
         Speed                       [variable r*8 r]
         Distance                    [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
  Carolyn Degnan     7/18/97    modified from GETSPEED

  Carolyn Degnan     9/23/04    added implicit none.

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