Geddes
A Rust XRD pattern parser with Python and Node.js bindings. Supports:
.raw(GSAS text or Bruker binary).rasx(Rigaku Zip archive).xrdml(Panalytical XML).xy/.xye(Space-separated ASCII).csv(Comma-separated values)
Rust Usage
Load from a file path:
use read;
Load from in-memory bytes (filename is used to infer the format):
use fs;
use read_bytes;
Python Usage
Load from a file path:
=
Load from in-memory bytes (filename is used to infer the format):
=
=
Node.js Usage
Load from a file path:
const geddes = require
const pattern = geddes.
console.log
Load from in-memory bytes (filename is used to infer the format):
const fs = require
const geddes = require
const bytes = fs.
const pattern = geddes.
console.log
License
MIT