In [1]:
%matplotlib
import matplotlib.pyplot as plt
import numpy as np
from StellarSpectra.spectrum import DataSpectrum
from StellarSpectra.grid_tools import TRES
from grid_accuracy import AccuracyComparison
from IPython.display import display
In [2]:
myDataSpectrum = DataSpectrum.open("../../data/WASP14/WASP14-2009-06-14.hdf5", orders=np.array([22]))
myInstrument = TRES()
In [3]:
myComp = AccuracyComparison(myDataSpectrum, myInstrument, "../../libraries/PHOENIX_F.hdf5",
"../../libraries/PHOENIX_TRES_F.hdf5",
{"temp":6000, "logg":4.5, "Z":-0.5}, {"temp":10, "logg":0.05, "Z": 0.05})
fig = myComp.plot_quality()
display(fig)
In [4]:
myComp = AccuracyComparison(myDataSpectrum, myInstrument, "../../libraries/PHOENIX_F.hdf5",
"../../libraries/PHOENIX_TRES_F.hdf5",
{"temp":6050, "logg":4.75, "Z":-0.25}, {"temp":10, "logg":0.05, "Z": 0.05})
fig = myComp.plot_quality()
display(fig)
In [15]:
myComp = AccuracyComparison(myDataSpectrum, myInstrument, "../../libraries/PHOENIX_submaster.hdf5",
"../../libraries/PHOENIX_TRES_6000.hdf5",
{"temp":6000, "logg":4.5, "Z":-0.5}, {"temp":5, "logg":0.025, "Z": 0.025})
fig = myComp.plot_quality()
display(fig)
In [16]:
myComp = AccuracyComparison(myDataSpectrum, myInstrument, "../../libraries/PHOENIX_submaster.hdf5",
"../../libraries/PHOENIX_TRES_6000.hdf5",
{"temp":6000, "logg":4.5, "Z":-0.5}, {"temp":1, "logg":0.01, "Z": 0.01})
fig = myComp.plot_quality()
display(fig)