Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AdaCompNUS/summit
/ lat2y
Function
lat2y
PythonAPI/examples/spawn_imagery.py:49–50 ·
view source on GitHub ↗
(a)
Source
from the content-addressed store, hash-verified
47
EARTH_RADIUS = 6378137.0
# in meters on the equator
48
49
def
lat2y(a):
50
return
math.log(math.tan(math.pi / 4 + math.radians(a) / 2)) * EARTH_RADIUS
51
52
def
lon2x(a):
53
return
math.radians(a) * EARTH_RADIUS
Callers
1
project
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected