warng CloudyModel /Users/syeh/temp/models/M3D_1_18: H 1 4861.33A is not a correct line reference - 1
warng C3D: H 1 4861.33A is not a valid reference
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-15-7ef30cafd85f> in <module>()
1 plt.figure(figsize=(10,10))
----> 2 plot_profiles(m3d, 55, 55)
<ipython-input-7-8691c129768c> in plot_profiles(m3d, x_pos, y_pos)
1 def plot_profiles(m3d, x_pos, y_pos):
----> 2 plt.plot(m3d.vel_tab,m3d.get_profile('H 1 4861.33A', axis='x')[:,x_pos,y_pos] * 5, label = r'H$\beta$')
3 plt.plot(m3d.vel_tab,m3d.get_profile('N 2 6583.45A', axis='x')[:,x_pos,y_pos] * 5, label = r'[NII]$\lambda$6584')
4 plt.plot(m3d.vel_tab,m3d.get_profile('O 3 5006.84A', axis='x')[:,x_pos,y_pos], label = r'[OIII]$\lambda$5007')
5 plt.legend()
TypeError: 'NoneType' object is not subscriptable
M = liste_of_models[0]
print(M.emis_labels)
array(['H__1_486133A', 'H__1_656281A', 'CA_B_587564A', 'N__2_658345A', 'O__1_630030A', 'O__2_372603A', 'O__2_372881A', 'O__3_500684A', 'BLND_436300A'], dtype='<U12')
If not the case, have a look at the output of the models. The emission line emissivities are in the .emis files.
Christophe
print(M.emis_labels)
pc.config.SAVE_LIST_ELEMS
[['hydrogen', '.ele_H'],
['helium', '.ele_He'],
['carbon', '.ele_C'],
['nitrogen', '.ele_N'],
['oxygen', '.ele_O'],
['argon', '.ele_Ar'],
['neon', '.ele_Ne'],
['sulphur', '.ele_S'],
['chlorin', '.ele_Cl'],
['iron', '.ele_Fe'],
['silicon', '.ele_Si']]
as well as the other save parameters:
pc.config.SAVE_LIST
[['radius', '.rad'], ['continuum', '.cont'], ['physical conditions', '.phy'], ['overview', '.ovr'], ['heating', '.heat'], ['cooling', '.cool'], ['optical depth', '.opd']]
and the dust:
pc.config.SAVE_LIST_GRAINS
[['grain temperature', '.gtemp'],
['grain abundances', '.gabund'],
['grain D/G ratio', '.gdgrat']]