Skip to content

Instantly share code, notes, and snippets.

@tomtana
tomtana / compute_max_visibility_on_earth.py
Last active April 2, 2024 22:15
Compute theoretical maximal visibility on earth with the assumption of the earth being a perfect sphere
"""Compute theoretical maximal visibility on earth with the assumption of the earth being a perfect sphere and the absence of refraction.
Some interesting links:
https://aty.sdsu.edu/explain/atmos_refr/horizon.html
https://sites.math.washington.edu/~conroy/m120-general/horizon.pdf
"""
import numpy as np
RADIAN_EARTH = 6371e3 # meters