-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgetcellid.py
More file actions
23 lines (23 loc) · 781 Bytes
/
getcellid.py
File metadata and controls
23 lines (23 loc) · 781 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
coords = list()
with open("daten/locations_ot.csv") as f:
for line in f.readlines():
messurement = line.split(',')
area_m = messurement[0].strip()
cellid_m = messurement[1].strip()
with open("daten/262.csv") as g:
found = 0
lookup = ""
for line in f.readlines():
lookup = line.split(',')
area = lookup[3]
cellid = lookup[4]
if area_m == area and cellid_m == cellid:
lon = lookup[6]
lat = lookup[7]
coords.append((lon, lat))
found = 1
break
if not found:
print(f"unkown tower, {lookup}")
for i in coords:
print(i)