RB2LL Name
RB2LL Purpose
From range, bearing compute latitude, longitude .
Category
Calling Sequence
rb2ll, lng0, lat0, dist, azi, lng1, lat1
Inputs
lng0, lat0 = long, lat of starting point (deg). in
dist = range to point of interest in RADIANS. in
azi = azimuth to point of interest (degrees). in
Keyword Parameters
Keywords
/DEGREES means distance is in degrees instead of radians.
Outputs
lng1, lat1 = long, lat of point of interest (deg). out
Common Blocks
Notes
Notes: A unit sphere is assumed, thus dist is in radians.
Useful constants:
Radius of Earth (mean) = 6371.23 km = 3958.899 miles.
Distance to horizon from height H above surface:
For small H: dist = sqrt(2*H/R) in Radians
For large H: dist = acos(R/(R+H)) in Radians
To plot horizon from lat0, lng0, H:
rb2ll,lng0,lat0,dist,makex(0,360,1),plng,plat
plots,plng-360.,plat,psym=3
ll2rb is inverse.
rb2lle 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.