H5PartMerge can be used to concatenate parts of two or more H5Part files. The file names are passed on the command line where the order of listing is preserved in the resulting file. The last argument is assumed to be the output file name. If this name coincides with one of the input file names or if a file with this name exists the user is asked wheter this file should be overwritten.
The ranges which should be merged are specified on the command line with square brackets appended to the input file names as if they were python-like arrays. The first step to be included is separated from the last step by a colon. If no beginning for the range is specified all steps of the input file up to the end of the range is merged. Similarly if no end is specified everything from the beginning up to the last step of the file is merged. Negative indices are counted from the last step of a file where '-1' is identical to the last step of the input file.
The file attributes from the first input file are copied to the output file whereas for all other input files the file attributes are copied to step attributes marking their values with the phrase 'changed to:'. If the boost library is enabled at compilation this only happens if the values are different to the one from the first input file.
H5PartMerge also works with only one input file though the appropriate name would then be 'H5PartSlice'.
christof [[DOT]] kraus [[AT]] psi.ch