Skip to main content

Utilities for working with nuclear mass tables.

Project description

The Nuclear Mass Table Toolkit provides utilities to work with nuclear mass tables. At the moment the following tables are supported:

  • AME2003: G. Audi, H. Wapstra, C. Thibault, Nucl. Phys. A 729 (2003) 337

  • AME2012: G. Audi et al, Chinese Physics C. 36, No. 12(2012)

  • DUZU: J. Duflo, A.P. Zuker, Phys. Rev. C 52 (1995)

  • FRDM95: Moller, P. et al., At. Data and Nuc. Data Tables 59 (1995) 185

  • KTUY05: H. Koura, T.Tachibana, M. Uno, M. Yamada, Progr. Theor. Phys. 113 (2005) 305

  • ETFSI12: Y. Aboussir et al., At. Data Nucl. Data Tables 61 (1995) 127

  • HFB14: S. Goriely, M. Samyn, J.M. Pearson, Phys. Rev. C 75 (2007) 064312

Usage:

  • Print first 5 elements from Audi 2003:

>>> from masstable import Table
>>> Table('AME2003').head()
Z  N
0  1     8.07132
1  0     7.28897
   1    13.13570
   2    14.94980
   3    25.90150
  • Calculate the root mean squared error of Moller, et al. Atomic Data and Nuclear Data Tables, 59 (1995), 185-351.

>>> Table('FRDM95').rmse(relative_to='AME2003')
0.890859326191
  • Calculate 2 neutron separation energies for even-even nuclei:

>>> table = Table('AME2012').even_even.s2n
Z  N
2  2           NaN
   4      0.975454
   6      2.125034
   8     -1.417666
4  2           NaN
       ...
  • Select nuclei with Z,N > 28:

>>> condition = lambda Z,N: Z > 28 and N > 28
>>> table.select(condition)
30  30    28.016334
    32    23.136434
    34    20.978934
    36    19.037934
    38    17.250334
    40    15.700534
       ...
  • Plot binding energies per nucleon:

>>> t = Table('AME2012')
>>> (t.binding_energy/t.A).plot()
http://i.imgur.com/eKX5S8M.png

Install

Just do:

pip install masstable

Requirements

  • python >= 2.7

  • pandas >= 0.11

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

masstable-0.1.3.tar.gz (264.7 kB view details)

Uploaded Source

File details

Details for the file masstable-0.1.3.tar.gz.

File metadata

  • Download URL: masstable-0.1.3.tar.gz
  • Upload date:
  • Size: 264.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for masstable-0.1.3.tar.gz
Algorithm Hash digest
SHA256 e1e3baf4617adc0a77f6206cdd148b7917562dbaef5ef98692a1bfb3450d0337
MD5 eeacb33759a546e7add4c01ac83265e0
BLAKE2b-256 826cf967dced351b4eb45ea0eeb3544ce0959f6c03e074c5ab19c9775ff66241

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page