Formulary of basic geodesy functions and approximations.
|
angle2chord(rad,
radius=6371008.771415)
Get the chord length of a (central) angle or angular distance. |
|
|
|
antipode(lat,
lon,
**name)
Return the antipode, the point diametrically opposite to a given
point in degrees . |
|
|
|
antipode_(phi,
lam,
**name)
Return the antipode, the point diametrically opposite to a given
point in radians . |
|
|
|
bearing(lat1,
lon1,
lat2,
lon2,
**final_wrap)
Compute the initial or final bearing (forward or reverse azimuth)
between two (spherical) points. |
|
|
|
bearing_(phi1,
lam1,
phi2,
lam2,
final=False,
wrap=False)
Compute the initial or final bearing (forward or reverse azimuth)
between two (spherical) points. |
|
|
|
chord2angle(chord,
radius=6371008.771415)
Get the (central) angle from a chord length or distance. |
|
|
|
compassAngle(lat1,
lon1,
lat2,
lon2,
adjust=True,
wrap=False)
Return the angle from North for the direction vector (lon2 - lon1, lat2 - lat1) between two points. |
|
|
|
cosineLaw(lat1,
lon1,
lat2,
lon2,
corr=0,
earth=None,
wrap=False,
datum=Datum(name='WGS84', ellipsoid=Ellipsoids.WGS84, transform=Tran... ,
radius=6371008.771415)
Compute the distance between two points using the Law of Cosines formula, optionally corrected. |
|
|
|
cosineLaw_(phi2,
phi1,
lam21,
corr=0,
earth=None,
datum=Datum(name='WGS84', ellipsoid=Ellipsoids.WGS84, transform=Tran... )
Compute the angular distance between two points using the Law of Cosines formula, optionally corrected. |
|
|
|
|
|
|
|
euclidean(lat1,
lon1,
lat2,
lon2,
radius=6371008.771415,
adjust=True,
wrap=False)
Approximate the Euclidean distance between two
(spherical) points. |
|
|
|
euclidean_(phi2,
phi1,
lam21,
adjust=True)
Approximate the angular Euclidean distance
between two (spherical) points. |
|
|
|
excessAbc_(A,
b,
c)
Compute the spherical excess E of a (spherical)
triangle from two sides and the included (small) angle. |
|
|
|
|
|
|
|
|
|
excessKarney(lat1,
lon1,
lat2,
lon2,
radius=6371008.771415,
wrap=False)
Compute the surface area of a (spherical) quadrilateral bounded by a
segment of a great circle, two meridians and the equator using Karney's method. |
|
|
|
excessKarney_(phi2,
phi1,
lam21)
Compute the spherical excess E of a (spherical)
quadrilateral bounded by a segment of a great circle, two meridians
and the equator using Karney's method. |
|
|
|
excessQuad(lat1,
lon1,
lat2,
lon2,
radius=6371008.771415,
wrap=False)
Compute the surface area of a (spherical) quadrilateral bounded by a
segment of a great circle, two meridians and the equator. |
|
|
|
excessQuad_(phi2,
phi1,
lam21)
Compute the spherical excess E of a (spherical)
quadrilateral bounded by a segment of a great circle, two meridians
and the equator. |
|
|
|
|
|
hubeny(lat1,
lon1,
lat2,
lon2,
datum=Datum(name='WGS84', ellipsoid=Ellipsoids.WGS84, transform=Tran... ,
scaled=True,
wrap=False)
Compute the distance between two (ellipsoidal) points using the ellipsoidal Earth to plane projection aka Hubeny formula. |
|
|
|
|
|
|
|
|
|
|
|
hartzell(pov,
los=False,
earth=Datum(name='WGS84', ellipsoid=Ellipsoids.WGS84, transform=Tran... ,
**name_LatLon_and_kwds)
Compute the intersection of the earth's surface and a Line-Of-Sight
from a Point-Of-View in space. |
|
|
|
haversine(lat1,
lon1,
lat2,
lon2,
radius=6371008.771415,
wrap=False)
Compute the distance between two (spherical) points using the Haversine formula. |
|
|
|
haversine_(phi2,
phi1,
lam21)
Compute the angular distance between two (spherical) points
using the Haversine formula. |
|
|
|
heightOf(angle,
distance,
radius=6371008.771415)
Determine the height above the (spherical) earth' surface after
traveling along a straight line at a given tilt. |
|
|
|
heightOrthometric(h_loc,
N)
Get the orthometric height H, the height above the
geoid, earth surface. |
|
|
|
horizon(height,
radius=6371008.771415,
refraction=False)
Determine the distance to the horizon from a given altitude above the
(spherical) earth. |
|
|
|
intersection2(lat1,
lon1,
bearing1,
lat2,
lon2,
bearing2,
datum=None,
wrap=False,
small=100000.0)
Conveniently compute the intersection of two lines each
defined by a (geodetic) point and a bearing from North, using either
... |
|
|
|
intersections2(lat1,
lon1,
radius1,
lat2,
lon2,
radius2,
datum=None,
wrap=False,
small=100000.0)
Conveniently compute the intersections of two circles each
defined by a (geodetic) center point and a radius, using either ... |
|
|
|
isantipode(lat1,
lon1,
lat2,
lon2,
eps=2.220446049250313e-16)
Check whether two points are antipodal, on diametrically
opposite sides of the earth. |
|
|
|
isantipode_(phi1,
lam1,
phi2,
lam2,
eps=2.220446049250313e-16)
Check whether two points are antipodal, on diametrically
opposite sides of the earth. |
|
|
|
isnormal(lat,
lon,
eps=0)
Check whether lat and
lon are within their respective normal
range in degrees . |
|
|
|
isnormal_(phi,
lam,
eps=0)
Check whether phi and
lam are within their respective normal
range in radians . |
|
|
|
normal(lat,
lon,
**name)
Normalize a lat- and longitude pair in degrees . |
|
|
|
normal_(phi,
lam,
**name)
Normalize a lat- and longitude pair in radians . |
|
|
|
opposing(bearing1,
bearing2,
margin=90.0)
Compare the direction of two bearings given in degrees . |
|
|
|
opposing_(radians1,
radians2,
margin=1.5707963267948966)
Compare the direction of two bearings given in radians . |
|
|
|
|
|
thomas(lat1,
lon1,
lat2,
lon2,
datum=Datum(name='WGS84', ellipsoid=Ellipsoids.WGS84, transform=Tran... ,
wrap=False)
Compute the distance between two (ellipsoidal) points using Thomas' formula. |
|
|
|
thomas_(phi2,
phi1,
lam21,
datum=Datum(name='WGS84', ellipsoid=Ellipsoids.WGS84, transform=Tran... )
Compute the angular distance between two (ellipsoidal) points
using Thomas' formula. |
|
|
|
vincentys(lat1,
lon1,
lat2,
lon2,
radius=6371008.771415,
wrap=False)
Compute the distance between two (spherical) points using Vincenty's spherical formula. |
|
|
|
vincentys_(phi2,
phi1,
lam21)
Compute the angular distance between two (spherical) points
using Vincenty's spherical formula. |
|
|