cryiorust

Crates.iocryiorust
lib.rscryiorust
version0.6.0
sourcesrc
created_at2019-08-30 16:54:26.843571
updated_at2022-01-07 13:57:30.90293
descriptionCrystallographic IO API to read different detector formats
homepagehttps://soft.snbl.eu
repositoryhttps://git.3lp.cx/dyadkin/cryiorust
max_upload_size
id160952
size135,566
(satarsa)

documentation

https://soft.snbl.eu

README

cryiorust

Rust implementation of IO routines to read and write images produced by various 2D X-ray detectors.

Supported formats

  • Bruker
  • Dectris Eiger HDF5 with bitshuffle plugin
  • Dectris MiniCBF
  • Agilent (Oxford) Crysalis Esperanto compressed bitfield
  • ESRF data format EDF
  • Mar345
  • Tif (including int32 tifs produced by Dectis Pilatus)

Usage example:

use std::{io, fmt};
use cryiorust::frame::{self, Frame};
use std::path::Path;

fn test_cbf<P: AsRef<Path> + fmt::Debug>(path: P) -> io::Result<Box<dyn Frame>> {
    let testfile = path;
    let cbf: Box<dyn Frame> = frame::open(testfile)?;
    println!("Frame size: {}x{}", cbf.dim1(), cbf.dim2());
    println!("Frame sum: {}", cbf.sum());
    Ok(cbf)
}

License: GPL-3.0+

Commit count: 0

cargo fmt