>  Docs Center  >  Libraries  >  JHU/APL/S1R  >  LL2RB
Libraries

LL2RB

LL2RB

Name


      LL2RB

Purpose


      From latitude, longitude compute range, bearing.

Category


Calling Sequence


      ll2rb, lng0, lat0, lng1, lat1, dist, azi

Inputs


      lng0, lat0 = long, lat of reference point (deg). in
      lng1, lat1 = long, lat of point of interest (deg). in

Keyword Parameters


Keywords


        /DEGREES means range is in degrees instead of radians.

Outputs


      dist = range to point point of interest (radians). out
      azi = azimuth to point of interest (degrees). out

Common Blocks


Notes


      Notes: A unit sphere is assumed, thus dist is in radians
        so to get actual distance multiply dist by radius.
        Useful constants:
        Radius of Earth (mean) = 6371.23 km = 3958.899 miles.
        (Must first convert to radians if using /DEGREES).
        rb2ll is inverse.
        ll2rbe is WGS84 ellipsoidal version.

Modification History


      R. Sterner, 13 Feb,1991
  Copyright (C) 2001, Johns Hopkins University/Applied Physics Laboratory
  This software may be used, copied, or redistributed as long as it is not
  sold and this copyright notice is reproduced on each copy made. This
  routine is provided as is without any express or implied warranties
  whatsoever. Other limitations apply as described in the file disclaimer.txt.



© 2024 NV5 Geospatial Solutions, Inc. |  Legal
   Contact Us