In [1]:
%pylab ipympl
from ppmpy import ppm
import matplotlib.pyplot as pl
import os
project_dir = '/data/ASDR/PPMstar/rpod2_PPMstar/YProfiles/O-shell-M25/'
data_dir = '/data/ASDR/CSA/'
ppm.set_YProf_path(project_dir)
In [4]:
%%capture --no-stdout --no-display
D1 = ppm.yprofile('D1')
res = D1.Dinv(231, 331, plot_Dlt0=False, approx_D = True, linelims = [7.7,8.0],
r0= 6,debug =False)
pl.xlim(7.6,8.3)
pl.ylim(7,15)
Out[4]:
In [7]:
%%capture --no-stdout --no-display
ppm.plot_diffusion_profiles('D2',data_dir + 'Stellar_models/O-shell-M25/M25Z0.02/',28900,
7.8489,(1,160),2.*460.,7.8282,10.**12.27,0.21,0.055,1.6)
pl.xlim(3,9)
pl.ylim(11,16)
pl.legend(loc=6)
Out[7]:
In [ ]: