MCPcopy 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

47EARTH_RADIUS = 6378137.0 # in meters on the equator
48
49def lat2y(a):
50 return math.log(math.tan(math.pi / 4 + math.radians(a) / 2)) * EARTH_RADIUS
51
52def lon2x(a):
53 return math.radians(a) * EARTH_RADIUS

Callers 1

projectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected