5#ifndef HDF5Utils_MergeUtils_H
6#define HDF5Utils_MergeUtils_H
26 const H5::DataSet& target,
27 const H5::DataSet& source,
40 const H5::DataSet& target,
41 const H5::DataSet& source,
60 const H5::DataSet& source,
62 std::size_t bufferSize = -1);
77 H5::H5Location& targetLocation,
78 const H5::DataSet& source,
81 int mergeExtent = -1);
93 std::size_t
getRowSize(
const H5::DataSet& ds, hsize_t axis);
bool checkDatasetsToMerge(const H5::DataSet &target, const H5::DataSet &source, hsize_t mergeAxis)
Make sure that two datasets can be merged.
std::size_t getRowSize(const H5::DataSet &ds, hsize_t axis)
Calculate the size of a row of a dataset in bytes.
H5::DataSet createDataSet(H5::H5Location &targetLocation, const H5::DataSet &source, hsize_t mergeAxis, int chunkSize=-1, int mergeExtent=-1)
Make a new dataset using the properties of another.
void mergeDatasets(H5::DataSet &target, const H5::DataSet &source, hsize_t mergeAxis, std::size_t bufferSize=-1)
Merge two datasets.