Function read_posvol_file
pub fn read_posvol_file<P>(path: P) -> Result<Posvol, Error>
Expand description
Deserialise binary posvol file
Returns a Result containing a Posvol struct with all the information
extracted from a CuV posvol file at path
.
// Read the example file
let posvol = read_posvol_file("./data/posvol_example.bin").unwrap();
// Print a summary of the data
println!("{posvol}");