Demo of the PHOENIX Interactive Dashboard for Stellar Spectra

In this tutorial we will see how the spectra of stars vary as a function of their intrinsic properties.

[ ]:
from gollum.phoenix import PHOENIXGrid
from specutils import Spectrum1D
import pandas as pd
import astropy.units as u
import numpy as np

Fetch example IGRINS data

[ ]:
from muler.igrins import IGRINSSpectrum
[ ]:
path = 'https://github.com/OttoStruve/muler_example_data/raw/main/IGRINS/01_IGRINS_test_data/'
filename='SDCH_20201202_0059.spec_a0v.fits'
full_path = path + filename
[ ]:
spec = IGRINSSpectrum(file=full_path, order=12).normalize().remove_nans().trim_edges()
spec.plot(color=None, ylo=0.7, yhi=1.1);

Telling gollum where to find your local files

The online installation guide shows how to download and store the PHOENIX models. In order to run the code below, you will need to update the my_path variable to the correct path on your local machine.

In this demo, the PHOENIX/ folder is houses all of the voluminous models:

[ ]:
grid = PHOENIXGrid(teff_range=(2500, 7000), logg_range=(2, 5), metallicity_range=(0, 0.5), wl_lo= 16200, wl_hi= 16400, path="C:/Users/sujay/libaries/raw/PHOENIX/")
[ ]:
grid.show_dashboard(data=spec)