Tool Name: h5copy
Syntax:
h5copy [OPTIONS] [OBJECTS]
Purpose:
Copy an object from one HDF5 file to another HDF5 file.
Description:
h5copy  copies an HDF5 object (dataset, named datatype, or group) from one HDF5 file to another HDF5 file, which may either already exist or not.
Arguments:
Options and Parameters:
-h   or   --help
Print a usage message and exit.
-v   or   --verbose
Produce verbose output, printing information regarding the specified options and objects.
-f flag_type   or   --flag=flag_type
Specify one or more of several copy options; flag_type may be one of the following strings or a logical AND of two or more:
shallow  Copy only immediate members of a group.
(Default: Recursively copy all objects below the group.)
soft  Expand soft links to copy target objects.
(Default: Keep soft links as they are.)
ext  Expand external links to copy external objects.
(Default: Keep external links as they are.)
ref  Copy objects that are pointed to by references.
(Default: Update only the values of object references.)
attr  Copy objects without copying attributes.
(Default: Copy objects and all attributes.)
allflags   Switch each setting above from the default to the setting described in this table.
Equivalent to logical AND of all flags above.
-V   or   --Version
Print version information.

Objects (all required):
-i input_file   or   --input=input_file
Input HDF5 file name
-o output_file   or   --output=output_file
Output HDF5 file name (existing or non-existing)
-s source_object   or   --source=source_object
Input HDF5 object name within the source file
-d destination_object   or   --destination=destination_object
Output HDF5 object name within the destination file
 
Exit Status:
0 Succeeded.
>0     An error occurred.
Example Usage
In verbose mode, create a new file, test1.out.h5, containing the object array in the root group, copied from the existing file test1.h5 and object array.
    h5copy -v -i "test1.h5" -o "test1.out.h5" -s "/array" -d "/array
        

In verbose mode and using the flag shallow to prevent recursion in the file hierarchy, create a new file, test1.out.h5, containing the object array in the root group, copied from the existing file test1.h5 and object array.

    h5copy -v -f shallow -i "test1.h5" -s "/array" -o test1.out.h5" -d "/array"
History: