matsest / parse-xrd

Parses .uxd-files from a 2theta-omega scan from a Bruker D8 XRD system into a convenient .csv-file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

parse-xrd

Parses .uxd-files from a 2theta-omega scan from a Bruker D8 XRD system.

Install

  • Clone this repository: git clone git@github.com:matsest/parse-xrd.git
  • Append the path to the repo to your $PATH: echo 'export PATH=$PATH:<repo-dir-path>' >> ~/.bashrc

Usage

Use from a command line prompt as

$ parse-xrd <input_file.uxd>

This creates a output file <input_file>out.csv in the format

2theta,counts
39.2,10
39.3,13
39.4,15

with all the (2theta,counts)-values in the file.

It is also possible to use a wildcard to parse all valid files in a given directory, e.g.

$ parse-xrd *.uxd

which will create output files with individual names.

Licence

About

Parses .uxd-files from a 2theta-omega scan from a Bruker D8 XRD system into a convenient .csv-file

License:MIT License


Languages

Language:Python 100.0%