fixup: remove detour with timescale. topo location can be computed directly

This commit is contained in:
Tim Schubert 2020-07-14 14:17:49 +02:00
parent 62fe02889d
commit a4faece0de

View file

@ -32,12 +32,7 @@ if __name__ == "__main__":
parser.add_argument('longitude', type=float) parser.add_argument('longitude', type=float)
args = parser.parse_args() args = parser.parse_args()
planets = load('de421.bsp') location = Topos(args.latitude, args.latitude)
earth = planets['earth'] d = location.itrf_xyz().m
boston = Topos(args.latitude, args.latitude)
ts = load.timescale(builtin=True)
t = ts.now()
topo = boston.at(t)
d = topo.itrf_xyz().m
print(Vector(d[0], d[1], d[2])) print(Vector(d[0], d[1], d[2]))