Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kerel-fs/40dc8e80c3652f276ea580ab87f32ccd to your computer and use it in GitHub Desktop.
Save kerel-fs/40dc8e80c3652f276ea580ab87f32ccd to your computer and use it in GitHub Desktop.

Solar Orbiter Trajectory example using SpiceyPy

This gist gives some example of how to use SpiceyPy to plot the trajectory of Solar Orbiter, using SPICE kernels provided via ESA COSMOS. The notebook was written by Laura Hayes, this gist is just a fork of the original https://gist.github.com/hayesla/5833aa84075fe0010073f2f6c2a86623. The additional files enable it to be run with Binder.

It provides the following additional files:

  • requirements.txt to install the required Python packages
  • apt.txt to install FFmpeg via APT for rendering
  • postBuild, a script to download the SPICE kernels from ESA COSMOS so that they are available inside the notebook

Try it out! Binder

#!/bin/bash
curl "https://issues.cosmos.esa.int/solarorbiterwiki/download/attachments/7274724/solo_ANC_soc-kernels-complete_V101_20191204_001.zip?version=1&modificationDate=1575474023000&api=v2&download=true" > solo_ANC_soc-kernels-complete_V101_20191204_001.zip
unzip solo_ANC_soc-kernels-complete_V101_20191204_001.zip
astropy~=4.0.1.post1
matplotlib~=3.2.1
numpy~=1.18.2
seaborn~=0.10.0
spiceypy~=3.0.2
sunpy~=1.1.2
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment