Skip to content
jcwang587Public

About

A Rust XRD pattern parser with Python and Node.js bindings

Topics

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Geddes

Crates.io PyPI npm

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.

Quick start

Python

import geddes

pattern = geddes.read("sample.xy")
x, y = pattern.x, pattern.y

Rust

fn main() -> Result<(), geddes::Error> {
    let pattern = geddes::read("sample.xy")?;
    let (x, y) = (pattern.x, pattern.y);
    Ok(())
}

Node.js

const geddes = require('geddes')

const { x, y } = geddes.read('sample.xy')

Supported formats

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.

About

A Rust XRD pattern parser with Python and Node.js bindings

Topics

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Contributors

Languages