Closed dahlend closed 3 weeks ago
Plotting apophis close encounter with earth in 2029
import neospy
import numpy as np
import matplotlib.pyplot as plt
import cartopy.crs as ccrs
ax = neospy.plot.celestial_sphere(include_equatorial=True, include_galactic=True)
observer = neospy.spice.get_state("Earth", neospy.Time.from_ymd(2029, 4, 26.904516666661948))
state = neospy.spice.get_state("Sun", observer.jd)
neospy.plot.plot_state(state, observer, into_past=0)
state = neospy.HorizonsProperties.fetch("Apophis").state
neospy.plot.plot_state(state, observer, c='C4', step_size=0.01)
I am declaring this out of scope for the tool.
Some basic plotting utilities for plotting the correct projections on the sky.