Geddes reads XRD files into two arrays: x (2θ in degrees) and y (intensity).
It is written in Rust, with Python and Node.js bindings.
import geddes
pattern = geddes.read("sample.xy")
x, y = pattern.x, pattern.yfn main() -> Result<(), geddes::Error> {
let pattern = geddes::read("sample.xy")?;
let (x, y) = (pattern.x, pattern.y);
Ok(())
}const geddes = require('@jcwang587/geddes')
const { x, y } = geddes.read('sample.xy')| Format | Extensions |
|---|---|
| Text | .xy, .xye, .csv, .dat, .prn, .txt |
| GSAS | .gsas, .gsa, .fxye, .gda, .xra, .raw |
| Bruker RAW | .raw |
| RAS | .ras |
| RASX | .rasx |
| UXD | .uxd |
| BRML | .brml |
| XRDML | .xrdml |
| CHI | .chi |
| Powder CIF | .cif |
See the documentation for installation, usage, and format limits.