Skip to main content

export_results_hdf5

Function export_results_hdf5 

Source
pub fn export_results_hdf5(
    path: &Path,
    density_maps: &[Array2<f64>],
    uncertainty_maps: &[Array2<f64>],
    chi_squared_map: &Array2<f64>,
    converged_map: &Array2<bool>,
    labels: &[String],
    temperature_map: Option<&Array2<f64>>,
) -> Result<(), IoError>
Expand description

Export all spatial mapping results to a single HDF5 file.

Layout:

  • /density/{label} — density map for each isotope
  • /uncertainty/{label} — uncertainty map for each isotope
  • /chi_squared — reduced chi-squared map
  • /converged — boolean convergence map (stored as u8: 0/1)
  • /temperature — fitted temperature map in Kelvin (when temperature fitting was enabled)