mirror of
https://gitlab.ibr.cs.tu-bs.de/tschuber/ns-3-leo.git
synced 2025-06-08 10:03:58 +02:00
Ignore first column of airport db
This commit is contained in:
parent
3a7472a990
commit
5f5956c3e9
1 changed files with 2 additions and 2 deletions
|
@ -9,7 +9,7 @@ from skyfield.api import Topos, load
|
||||||
log.basicConfig(level=log.DEBUG)
|
log.basicConfig(level=log.DEBUG)
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Converts pairs of format `longitute latitude` to `ns3::Vector` format in ITRF frame
|
Converts pairs of format `name longitute latitude` to `ns3::Vector` format in ITRF frame
|
||||||
|
|
||||||
See `ns3::Vector::operator >>`
|
See `ns3::Vector::operator >>`
|
||||||
"""
|
"""
|
||||||
|
@ -34,7 +34,7 @@ if __name__ == "__main__":
|
||||||
f = fileinput.input()
|
f = fileinput.input()
|
||||||
|
|
||||||
for line in f:
|
for line in f:
|
||||||
lat, lng = line.split(',')
|
_, lat, lng = line.split(',')
|
||||||
location = Topos(float(lat), float(lng))
|
location = Topos(float(lat), float(lng))
|
||||||
d = location.itrf_xyz().m
|
d = location.itrf_xyz().m
|
||||||
print(Vector(d[0], d[1], d[2]))
|
print(Vector(d[0], d[1], d[2]))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue