This tutorial was generated from a Jupyter notebook that can be downloaded here.


In this notebook we’ll instantiate a Doppler map with the word “SPOT” and visualize it with the interactive show() method. The plots below are fully interactive: move the mouse and scroll over the maps to control the spectra that are displayed below them.

import starry
import numpy as np
# Instantiate
map = starry.DopplerMap(ydeg=15, nt=20, inc=60, veq=50000)

# Load the SPOT map
spectrum = 1.0 - 0.75 * np.exp(-0.5 * (map.wav0 - 643.0) ** 2 / 0.0085 ** 2)
map.load(maps="spot", spectra=spectrum, smoothing=0.075)

# Visualize