PyNeb  1.1.2
PyNeb Reference Manua
pyneb.utils.manage_atomic_data Namespace Reference

Classes

class  _ManageAtomicData
 

Functions

def atom2chianti (atom)
 
def extract_flt (str_)
 
def readNIST
 
def getLevelsNIST
 
def getNIST
 
def print_stout_coll (Atom, file_)
 

Function Documentation

def pyneb.utils.manage_atomic_data.atom2chianti (   atom)
def pyneb.utils.manage_atomic_data.extract_flt (   str_)
Return the first float in str_, removing the no digit (and no dot) leading part of it.
Ex:
extract_flt('123.00?') -> 123.00
def pyneb.utils.manage_atomic_data.getLevelsNIST (   atom,
  NLevels = None 
)
Return a numpy.array containing the NIST data related to the levels for the given atom
The keys of the recarry are: conf, term, J, energy, ref
Example:
    data = getLevelsNIST('O3')
    energies = data['energy']
def pyneb.utils.manage_atomic_data.getNIST (   elem,
  ion,
  fileout = None 
)
This will download the enegy levels from NIST and write them to a file
example: getNIST('O',3) write the o_iii_levels.dat file
def pyneb.utils.manage_atomic_data.print_stout_coll (   Atom,
  file_ 
)
def pyneb.utils.manage_atomic_data.readNIST (   NISTfile,
  NLevels = None 
)
The NIST levels file must be obtained from this page:
    http://physics.nist.gov/PhysRefData/ASD/levels_form.html
with the following options:
    Level Units: cm-1
    Format output: ASCIIda
    Display output: in its entirely
    Energy ordered
    Level Information: Principal configuration, Principal term, Level, J
    Bibliographic references