3 releases

new 0.1.2 Nov 15, 2024
0.1.1 Nov 15, 2024
0.1.0 Nov 14, 2024

#625 in Filesystem

Download history 304/week @ 2024-11-09

310 downloads per month

MIT license

4MB
476 lines

Interface with dotThz files using rust

This crate provides an easy way to interface with dotThz files in rust.

Load it in your cargo.toml

[dependencies]
dotthz-rs = "0.1.2"

and then use like specified in the following example:

use std::path::PathBuf;
use dotthz::{DotthzFile};

fn main() {
    // Load data from the original file
    let file_path = PathBuf::from("test_files/2_VariableTemperature.thz");
    let file = DotthzFile::load(file_path.clone());
    
    // do stuff with the file
    // ...
    
    // save file
    file.save("test_files/output_file.thz");
}

Use the hdf5-sys-static feature to compile hdf5 and statically link it. This requires cmake to be installed. Use the serde feature to derive Serialize and Deserialize for DotthzMetaData.


lib.rs:

Crate to load and save dotThz files in rust.

Dependencies

~5–16MB
~212K SLoC