http://live.spaceil.com/data/data_s1.txt (22/2 - 12/4)
http://live.spaceil.com/data/data_s2.txt (4/4 - 12/4)
http://live.spaceil.com/data/data_m.txt (22/2 - 16/12)
Here's the plot of the data in
data_s1.txt (spacecraft) and
data_m.txt (Moon). There are proper state vectors for the spacecraft $[x, y, z, v_x, v_y, v_z]$ but only position vectors for the Moon. $[x, y, z]$.
There is a real problem though; they don't align correctly! The spacecraft does not orbit the Moon. Not even close!
I think there may be something screwy with the data. the error is much bigger than 1/81 so it's more than just barycenter versus Earth-center coordinates. Something's wrong.
Question: Why don't SpaceIL's spacecraft and moon orbits line up?
import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D with open('data_s1.txt', 'r') as infile: slines = infile.readlines() slines = [ [float(x) for x in line.strip().split(',')[1:]] for line in slines[1:-1]] sstates = np.array(zip(*slines)) with open('data_m.txt', 'r') as infile: mlines = infile.readlines() mlines = [ [float(x) for x in line.strip().split(',')[1:]] for line in mlines[1:-1]] mstates = np.array(zip(*mlines)) if True: fig = plt.figure(figsize=[10, 8]) # [12, 10] ax = fig.add_subplot(1, 1, 1, projection='3d') x, y, z = sstates[:3] ax.plot(x, y, z, '-r') x, y, z = mstates[:3] ax.plot(x, y, z, '-b') ax.set_xlim(-405000, 405000) ax.set_ylim(-405000, 405000) ax.set_zlim(-405000, 405000) plt.show()