{ "cells": [ { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "from pywwt.jupyter import WWTJupyterWidget\n", "from astropy.coordinates import SkyCoord, concatenate\n", "from astropy import units as u\n", "from astropy.time import Time\n", "import time\n", "wwt = WWTJupyterWidget()" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "wwt" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "wwt.set_view('Solar System')\n", "wwt.solar_system.scale = 99\n", "wwt.solar_system.track_object('sun')\n", "wwt.solar_system.orbits = False" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "wwt.center_on_coordinates(SkyCoord(339.32980758, 20.78999814, unit=u.deg), fov=.6*u.deg)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# show three earth months of the SS in 2019\n", "tm = Time('2019-07-01')\n", "tm.format = 'jd'\n", "start = tm.value\n", "\n", "while(tm.value - start <= 92):\n", " wwt.set_current_time(tm)\n", " time.sleep(.1)\n", " tm = Time(tm.value + .5, format='jd')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Credits\n", "\n", "This notebook was prepared by O. Justin Otor with contributions from Thomas Robitaille." ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.3" } }, "nbformat": 4, "nbformat_minor": 2 }