darfix.io.utils.write_components#

darfix.io.utils.write_components(h5_file, entry, dimensions, W, data, values, processing_order, data_path='/', overwrite=True)[source]#

Write a stack of components and its parameters into .h5

Parameters:
  • h5_file (str) – path to the hdf5 file

  • entry (str) – entry name

  • dimensions (dict) – Dictionary with the dimensions names and values

  • W (numpy.ndarray) – Matrix with the rocking curves values

  • data (numpy.ndarray) – Stack with the components

  • processing_order (int) – processing order of treatment

  • data_path (str) – path to store the data