Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MarcCoru/locationencoder
/ cart2sph
Function
cart2sph
utils/losses.py:7–12 ·
view source on GitHub ↗
(x, y, z)
Source
from the content-addressed store, hash-verified
5
6
7
def
cart2sph(x, y, z):
8
hxy = np.hypot(x, y)
9
r = np.hypot(hxy, z)
10
el = np.arctan2(z, hxy)
11
az = np.arctan2(y, x)
12
return
az, el, r
13
14
def
get_random_lonlats(batch_size):
15
""
"
Callers
1
get_random_lonlats
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected