I have a matlab script which prroduces a HDF55 dataset. The MD5SUM for this fiile changes accross different runs, although the HDF5's content maintains identical... How to provent that?
I supposed it has to do with the creation timestamp that might be stored somewhere in the HDF5 file, but I didn't find it. This is how I am creating and storing values in it:
filename = "cpssm_dataset.h5";
file_path = fullfile(fileparts(mfilename('fullpath')), 'raw', 'cpssm', filename);
H5G.create(file_id, '/Data', 'H5P_DEFAULT', 'H5P_DEFAULT', 'H5P_DEFAULT');
group_path = sprintf('/Data/%s', city_name);
H5G.create(file_id, group_path, 'H5P_DEFAULT', 'H5P_DEFAULT', 'H5P_DEFAULT');
h5writeatt(file_path, group_path, 'Name', city_name);
group_path = sprintf('/Data/%s/%s/drift_vel%d/sat%d/%s/%s', city_name, severity, eastward_drift_vel, sat_idx, constellation, freq);
amplitude = scenario.(freq).amplitude.timeseries_postprop.Var1;
h5create(file_path, group_path + "/amplitude", [1 numel(amplitude)]);
h5write(file_path, group_path + "/amplitude", amplitude.');
That is the md5sum digest message for two different runs
(iono-scint-charact) tapyu@felix-Alienware-m16-R1:~/git/iono-scint-charact/data/raw/cpssm$ md5sum cpssm_dataset.h5
66c3ea9930c1adfeb49d4e15dcfdf018 cpssm_dataset.h5
(iono-scint-charact) tapyu@felix-Alienware-m16-R1:~/git/iono-scint-charact/data/raw/cpssm$ md5sum cpssm_dataset.h5
445738bb297dd50b1f8c69646a487645 cpssm_dataset.h5
They should be the same!
The values are in fact the same as h5dump leads to the same STDOUT.