Utility functions, many for reading the CHIANTI database files.
Copyright 2009, 2010 Kenneth P. Dere
This software is distributed under the terms of the GNU General Public
License that is found in the LICENSE file
|
between(array,
limits)
returns an index array of elements of array where the values lie
between the limits given as a 2 element list or tuple |
source code
|
|
|
convertName(name)
convert ion name string to Z and Ion |
source code
|
|
|
descale_bt(bte,
btomega,
f,
ev1)
descale BT excitation scaling returns [energy,collision strength] |
source code
|
|
|
descale_bti(bte,
btx,
f,
ev1)
descale BT ionization scaling returns [energy,cross-section] |
source code
|
|
|
diCross(diParams,
energy=0,
verbose=0)
Calculate the direct ionization cross section. |
source code
|
|
|
diCross1(diParams,
energy=0,
verbose=0)
Calculate the direct ionization cross section. |
source code
|
|
|
dilute(radius)
to calculate the dilution factor as a function distance from the
center of a star in units of the stellar radius a radius of less than
1.0 (incorrect) results in a dilution factor of 0. |
source code
|
|
|
eaCross(diparams,
easplom,
elvlc,
energy=None,
verbose=False)
Provide the excitation-autoionization cross section. |
source code
|
|
|
eaDescale(easplups,
temperature)
Calculates the effective collision strengths (upsilon) for
excitation-autoionization as a function of temperature. |
source code
|
|
|
el2z(els)
from an the name of the element (1-2 letter) return Z |
source code
|
|
|
ion2filename(ions)
convert ion string to generic file name string |
source code
|
|
|
listFiles(path)
walks the path and subdirectories to return a list of files |
source code
|
|
|
|
|
scale_bt(evin,
omega,
f,
ev1)
apply BT excitation scaling to (energy, collision strength) returns
[bte,btomega] |
source code
|
|
|
scale_bti(evin,
crossin,
f,
ev1)
apply BT ionization scaling to (energy, cross-section) returns
[bte,btx] |
source code
|
|
|
spectroscopic2name(el,
roman,
dielectronic=False)
convert Z and ion to spectroscopic notation string |
source code
|
|
|
splomDescale(splom,
energy)
Calculates the collision strength for excitation-autoionization as a
function of energy. |
source code
|
|
|
|
|
zion2dir(z,
ion,
dielectronic=False,
xuvtop=0)
convert Z to generic file name string |
source code
|
|
|
zion2filename(z,
ion,
dielectronic=False,
xuvtop=0)
convert Z to generic file name string |
source code
|
|
|
zion2localFilename(z,
ion,
dielectronic=False)
convert Z to generic file name string with current directory at top |
source code
|
|
|
zion2name(z,
ion,
dielectronic=False)
convert Z, ion to generic name 26, 13 -> fe_13 |
source code
|
|
|
zion2spectroscopic(z,
ion,
dielectronic=False)
convert Z and ion to spectroscopic notation string |
source code
|
|