-
Notifications
You must be signed in to change notification settings - Fork 251
geo
Malik Doole edited this page Sep 26, 2019
·
5 revisions
The geo.py module is a BlueSky tool that defines a set of standard geographic functions and constants for coding in BlueSky.
Some standard geographic functions available include:
- Calculating the earth's radius [m] with the World Geodetic System WGS'84 geoid definition. The input used in this function is the latitude [deg]. External reference.
...
IN: lat1 = 53
# call function and compute earth's radius using WGS84 definition
Radius = rwgs84(lat1)
print(Radius)
OUT: 6364538.974408425
...
- Calculating the bearing and distance using WGS84 definition.
...
IN: 45, 12, 52, 2 (latd1,lond1, latd2, lond2)
# call function and compute the bearing and distance \[nm\]
qdr, dist = qdrdist(45, 12, 52, 2 )
print(qdr,dist)
OUT: -39.76323481565359 577.2634174193117
...
- Calculating the distance using the haversine formulae and average radius using WSG84.