Caltech-IPAC / kete

Kete Solar System Survey tools
https://Caltech-IPAC.github.io/kete
BSD 3-Clause "New" or "Revised" License
3 stars 0 forks source link

Add some basic plotting utilities #84

Closed dahlend closed 3 weeks ago

dahlend commented 2 months ago

Some basic plotting utilities for plotting the correct projections on the sky.

import neospy

state = neospy.spice.get_state("Earth", neospy.Time.j2000())

ax = neospy.plot.neos_field_of_regard(state,
                                      include_galactic=True,
                                      include_equatorial=True)

image

dahlend commented 2 months 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)

image

dahlend commented 3 weeks ago

I am declaring this out of scope for the tool.