Skip to main content

Simulating XRF spectra to better understand them

Project description

Welcome to moseley

The widespread use of point-and-shoot hand held x-ray fluorescence (XRF) instruments in cultural heritage research, would suggest that it is easy enough for anyone to find out the elemental composition of materials. Alas, due to myriads of emission energies, escape peaks and other nuisances, reliable interpretation of x-ray fluorescence spectra is actually hard. If you are not yet deterred, just read the Handheld XRF in Cultural Heritage - A practical workbook for conservators with many, many examples of spectra that was recently made available on-line by the Getty Conservation Institute.

My take on this as a physicist and a python programmer is that instead of learning from data directly (i.e. staring at measured spectra), a nicer route to insight exists. Due to huge efforts and advances of the open source scientific computing community it is nowadays possible to install readily available python packages and create physics simulations and visualizations with a few lines of computer code. Once you understand why certain patterns of peaks appear, it becomes much more easy to interpret XRF spectra reliably.

Installation

If you would like to adapt this plot to your own needs, for instance to to see what happens if you change beam energy, you can install this package yourself.

$ pip install moseley 

Usage

See documentation: https://fligt.github.io/moseley/

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

moseley-1.1.2.tar.gz (27.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

moseley-1.1.2-py3-none-any.whl (27.3 kB view details)

Uploaded Python 3

File details

Details for the file moseley-1.1.2.tar.gz.

File metadata

  • Download URL: moseley-1.1.2.tar.gz
  • Upload date:
  • Size: 27.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for moseley-1.1.2.tar.gz
Algorithm Hash digest
SHA256 7d44ebf647fe6740171d3ac0e994b877752dd9fa8c4cd631d92a8969b7984f14
MD5 4b8cf019b55c79ef2cd2f963a7dd1539
BLAKE2b-256 f89229167f189f7bf8bb2ef17661cfeb44f3851c48b887c15e8559ada3b101a5

See more details on using hashes here.

File details

Details for the file moseley-1.1.2-py3-none-any.whl.

File metadata

  • Download URL: moseley-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 27.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for moseley-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 876feec185090096eafb7b7ab055ff7ca6b49c92804b1aa555b4e47ee8eb8e3e
MD5 2fe567611c48dc62bd4af575f561f2c4
BLAKE2b-256 96a175dad2e409cdbb1160f326ac2197dc58f2f5cabc8561b94c41181ebc769b

See more details on using hashes here.

Supported by

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