from pywwt.jupyter import connect_to_app
from astropy.coordinates import SkyCoord
from astropy import units as u
from astropy.time import Time
Next, we connect to the WWT app:
wwt = await connect_to_app().becomes_ready()
Turn on the 3D Solar System mode and adjust a few view parameters, including significantly exaggerating the size of the planets to make them more visible:
wwt.set_view('Solar System')
wwt.solar_system.scale = 99 # scale up the planet size very unrealistically!
wwt.solar_system.track_object('sun')
Choose a nice angle that will show several planets:
wwt.center_on_coordinates(SkyCoord(339.32980758, 20.78999814, unit=u.deg), fov=.6*u.deg)
Finally, set the time of WWT's internal clock and adjust its rate to make the planets move at a nice pace:
wwt.set_current_time(Time('2019-07-01'))
wwt.play_time(rate=300000) # 300,000 times faster than real time
wwt.get_current_time()
wwt.pause_time()
wwt.set_current_time(Time('2020-07-01'))
This notebook was prepared by O. Justin Otor with contributions from Thomas Robitaille and Peter K. G. Williams.