Function write_ascii_pretty

pub fn write_ascii_pretty<P: AsRef<Path>>(
    posvol: &Posvol,
    path: P,
) -> Result<(), Error>
Expand description

Write Posvol data to a human readable text file

Any posvol file read into a Posvol type may be written to an ASCII file for inspection or analysis.

This outputs the content of the Posvol to a human readable text format with metadata for useful overall values to check at a glance. For a direct conversion use write_ascii() instead.

// Read the example file
let posvol = read_posvol_file("./data/posvol_example.bin").unwrap();

// Write a human readable ascii text file
write_ascii_pretty(&posvol, "./posvol_pretty.txt");