mirror of
https://gitlab.ibr.cs.tu-bs.de/tschuber/ns-3-leo.git
synced 2025-06-08 18:13:57 +02:00
fixup: remove detour with timescale. topo location can be computed directly
This commit is contained in:
parent
62fe02889d
commit
a4faece0de
1 changed files with 2 additions and 7 deletions
|
@ -32,12 +32,7 @@ if __name__ == "__main__":
|
|||
parser.add_argument('longitude', type=float)
|
||||
args = parser.parse_args()
|
||||
|
||||
planets = load('de421.bsp')
|
||||
earth = planets['earth']
|
||||
boston = Topos(args.latitude, args.latitude)
|
||||
ts = load.timescale(builtin=True)
|
||||
t = ts.now()
|
||||
topo = boston.at(t)
|
||||
d = topo.itrf_xyz().m
|
||||
location = Topos(args.latitude, args.latitude)
|
||||
d = location.itrf_xyz().m
|
||||
print(Vector(d[0], d[1], d[2]))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue