Skip to content

calculator

Malik Doole edited this page Sep 26, 2019 · 1 revision

The calculator.py file in the Bluesky tools consist of a set of basic mathematical functions:

  • Math operators
  • 'pi' as π, e as base of natural logarithm
  • sind, cosd and tand: trigonometric functions with arguments in degrees
  • deg(d,m,s), rad(d,m,s): convert degree-minute-seconds coordinates to decimal degree/radians notation
  • dist, qdr, qdrdist, qdrpos: calculate bearing (qdr), distance (dist), both (qdrdist) or a distance vector (qdrpos) between two lat-lon points
  • rwgs84: compute local earth radius with WGS'84 geoid definition
  • kwikdist: quick and dirty distance computation between two lat-lon points
  • latlondist: distance computation between two lat-lon points
  • lat2txt, lon2txt, latlon2txt: transform lat-lon coordinates to text format: degrees-minutes-seconds
Clone this wiki locally