import random from ephemeris_interpolator import Session session = Session() session.add_satellite('G03') for i in range(86400): session.add_observation('G03', x=random.randint(10, 100), y=random.randint(10, 100), z=random.randint(10, 100), time=i) my_satellite = session.get_satellite('G03') for i in range(500): print(my_satellite.get_coordinate_at_time(i, polynomial_degree=10))
from ephemeris_interpolator import Session # Create a new session session = Session() # Add a sattelite to the session session.add_satellite("G03") # Add observations to the session session.add_observation("G03", x=1, y=1, z=1, time=0) session.add_observation("G03", x=2, y=1, z=1, time=1) session.add_observation("G03", x=3, y=1, z=1, time=2) # Get a satellite my_satellite = session.get_satellite("G03") # Get x value for satellite Coordinate at specific time my_satellite.get_coordinate_at_time(0.5, polynomial_degree=1).x