This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import math | |
from scipy.spatial import cKDTree as KDTree | |
WGS84_A = 6378137.0 # semi major axis in metres | |
def tunnel_coords(lats, lons, elev=0.0, rearth=WGS84_A): | |
""" | |
Transforms lat/lon coordinates to tunnel coordinates. |