LabWired
Design circuits, run firmware, compare variants, and inspect the result in Playground. Open source. MCP for Claude or Codex. Free to try.
Read XRD patterns as 2θ and intensity arrays in Rust, Python, and Node.js.
Translation pending
Developer toolsRust · JavaScriptGitHub @jcwang587OnlineOwner unconfirmed
Have you tried it? One tap is enough. No sign-in needed.
A Rust XRD pattern parser with Python and Node.js bindings
Loading the full README.
Read the full README ↗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.y
fn main() -> Result<(), geddes::Error> {
let pattern = geddes::read("sample.xy")?;
let (x, y) = (pattern.x, pattern.y);
Ok(())
}
const geddes = require('geddes')
const { x, y } = geddes.read('sample.xy')
| Format | Extensions |
|---|---|
| Text | .xy, .xye, .csv, .dat, .txt |
| GSAS | .gsas, .gsa, .fxye, .gda, .raw |
| Bruker | .raw, .uxd, .brml |
| Rigaku | .ras, .rasx |
| Malvern Panalytical | .xrdml |
| FIT2D | .chi |
| Powder CIF | .cif |
See the documentation for installation, usage, and format limits.