Saturday, 12 October 2013

Use of "some useful atomic data"

To illustrate how the routines in the previous post can be used, I made a couple of plots.

Fig.1 The logarithmic solar abundances relative to hydrogen A (A(H) = 12) after Asplund et al (2009, 2009ARA&A..47..481A) versus the atomic number Z. The data are loaded using load_abundances.pro function.

Saturday, 5 October 2013

Some useful atomic data in IDL

Here I list a couple of my IDL routines that load some useful atomic data (atomic numbers up to 92 are supported).


List of elements

This routine returns symbols and names of atomic elements for a given atomic number Z.

load_list_of_elements.pro

Example:
IDL> sym = LOAD_LIST_OF_ELEMENTS([6, 7, 8], element = names)
IDL> PRINT, sym
C N O
IDL> PRINT, names
Carbon Nitrogen Oxygen


Atomic weights (aka relative atomic masses)

This routine loads the atomic weights for a given atomic number Z. The data comes from
  http://www.nist.gov/pml/data/comp.cfm

The original source is Wieser & Berglund (2009, Pure Appl. Chem., Vol.81, No.11, p.2131-2156), published as an IUPAC Tecnical Report available at:
   http://pac.iupac.org/publications/pac/pdf/2009/pdf/8111x2131.pdf

load_atomic_weights.pro

Example:
IDL> a = LOAD_ATOMIC_WEIGHTS([1, 2, 6, 7, 8])
IDL> PRINT, a
1.00790      4.00260      12.0107      14.0067      15.9994