Skip to content
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:

  1. 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.

Example 1:

...
IN: lat1 = 53 
# call function and compute earth's radius using WGS84 definition 
Radius = rwgs84(lat1)
print(Radius)
OUT: 6364538.974408425
...
  1. Calculating the bearing and distance using WGS84 definition.

Example 2:

...
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
...
  1. Calculating the distance using the haversine formulae and average radius using WSG84.
Clone this wiki locally