コード例 #1
0
atom = 'h'
ion = 'ii'  # H I
h_i_rc_data = atomneb.read_aeff_sh95(atom_rc_sh95_file, atom, ion)

atom = 'he'
ion = 'ii'  # He I
he_i_rc_data = atomneb.read_aeff_he_i_pfsd12(atom_rc_he_i_file, atom, ion)

atom = 'he'
ion = 'iii'  # He II
he_ii_rc_data = atomneb.read_aeff_sh95(atom_rc_sh95_file, atom, ion)

atom = 'c'
ion = 'iii'  # C II
c_ii_rc_data = atomneb.read_aeff_collection(atom_rc_all_file, atom, ion)

atom = 'c'
ion = 'iv'  # C III
c_iii_rc_data = atomneb.read_aeff_ppb91(atom_rc_ppb91_file, atom, ion)

atom = 'n'
ion = 'iii'  # N II
n_ii_rc_data = atomneb.read_aeff_collection(atom_rc_all_file, atom, ion)
n_ii_rc_data_br = atomneb.read_aeff_collection(atom_rc_all_file,
                                               atom,
                                               ion,
                                               br=True)

atom = 'n'
ion = 'iv'  # N III
コード例 #2
0
ファイル: atomneb_test.py プロジェクト: atomneb/AtomNeb-py
atom = 'o'
ion = 'iii'
# list all Transition Probabilities (Aij) references for O III
list_oiii_aij_reference = atomneb.list_aij_references(atom_aij_file, atom, ion)
# print all Transition Probabilities (Aij) references for O III
print(list_oiii_aij_reference)

# Locate datasets
base_dir = os.getcwd()
data_dir = os.path.join('atomic-data-rc')
atom_rc_file = os.path.join(base_dir, data_dir, 'rc_collection.fits')

atom = 'c'
ion = 'iii'  # C II
# read Recombination Coefficients (Aeff) of C II
cii_rc_data = atomneb.read_aeff_collection(atom_rc_file, atom, ion)
n_line = len(cii_rc_data['wavelength'])
# print information needed for Recombination Coefficients (Aeff) of C II
for i in range(0, n_line):
    print(cii_rc_data['wavelength'][i], cii_rc_data['a'][i],
          cii_rc_data['b'][i], cii_rc_data['c'][i], cii_rc_data['d'][i],
          cii_rc_data['f'][i])

atom = 'n'
ion = 'iii'  # N II
# read Recombination Coefficients (Aeff) of N II
nii_rc_data = atomneb.read_aeff_collection(atom_rc_file, atom, ion)
nii_rc_data_br = atomneb.read_aeff_collection(atom_rc_file, atom, ion, br=True)
n_line = len(nii_rc_data['a'])
# print information needed for Recombination Coefficients (Aeff) of N II
for i in range(0, n_line):