PyNE provides a top-level interface for a variety of basic nuclear data needs. This aims to provide quick access to very high fidelity data. Values are taken from the nuc_data.h5 library. The basic suite of data comes from public sources. However if you have access to proprietary or export controlled data, such as CINDER cross sections, then PyNE will also attempt to provide an interface to this as well.
All functionality may be found in the data module:
from pyne import data
The usual suspects follow.
data.atomic_mass('U235')
235.043930131
data.natural_abund('U235')
0.007204
data.natural_abund('Pu-239')
0.0
data.half_life('U-238')
1.409993568e+17
data.decay_const('U-238')
4.915959875924379e-18
data.decay_children('Rb86')
set([360860000, 380860000])
print data.branch_ratio('Rb86', 360860000)
5.2e-05
data.b('H1')
2.554930849083787e-12
data.b_coherent('H1')
(-3.7406e-13+0j)
data.b_incoherent('H1')
(2.5274000000000003e-12+0j)
import numpy as np
import matplotlib
matplotlib.rc('font', family='serif', size=14)
import matplotlib.pyplot as plt
from pyne import nucname
anums = map(nucname.anum, data.half_life_map.keys())
fig = plt.figure(figsize=(7,7))
plt.semilogy(anums, data.half_life_map.values(), 'ko')
plt.xlabel('A')
plt.ylabel('Half-life [s]')
<matplotlib.text.Text at 0x29f5350>