2016年3月15日火曜日

Line emissivity from ATOMDB by python

#!/usr/bin/env python


import pyatomdb
import sys

# He-like Fe
Z = 26
z1 = 25
upind = 7
loind = 1
linefile=""

emis = pyatomdb.atomdb.get_line_emissivity(Z,z1, upind, loind)

for t, e, dens in zip(emis['kT'], emis['epsilon'], emis['dens']):
    print t,dens, e
 
 

2016年3月8日火曜日

PyAtomDB

http://atomdb.readthedocs.org/en/latest/


python module for ATOMDB.
I could easily install and make a spectrum and line list.
This is nice.
Thank for  Adam Foster.