mirror of
https://github.com/cosinekitty/astronomy.git
synced 2026-04-14 03:27:47 -04:00
I already had the function ObserverVector that converts geographic coordinates (latitude, longitude, elevation) to an equatorial-of-date (EQD) vector. Now I'm in the process of adding the inverse function VectorObserver that calculates geographic coordinates from an EQD vector. This commit implements VectorObserver in Python. The other languages will follow in future commits. The motivation was from the following request: https://github.com/cosinekitty/geocalc/issues/1 The goal is to find the near-intersection between two different lines of sight from two different observers on the Earth's surface. Added a demo program triangulate.py that solves this problem.