Page tree

 

JAVA

FORTRAN

C++

C

 

Link

h5mkgrp

Creates new group(s) in an HDF5 file.

Syntax:
h5mkgrp [OPTIONS] file_name group_name...

Description:
h5mkgrp  creates one or more new groups in an HDF5 file.

Options and Parameters:

file_name

    Name of HDF5 file within which new group is to be created.

group_name

    Name of group to be created; specified as full path name from the root group, i.e., starting with a slash (/).

      

Options:

-h, --help

    Print a usage message and exit.

-l, --latest

    Use latest version of file format to create new group.

-p, --parents

    Create parent or intervening groups as needed. Issue no error if intervening groups or new group already exist.

-v, --verbose

    Print verbose output, including information about file, group(s), and options.

-V, --version

    Print tool version number then exit. Tool version number is that of the corresponding HDF5 Library.

Exit Status:
0Succeeded.
> 0    An error occurred.

Example:
Create a new group, new_group,  within the existing group /a/b in the file HDF5_file.
    h5mkgrp "HDF5_file" "/a/b/new_group"

Create a new group, new_group,  within the group /a/b in the file HDF5_file. Create the groups a and b if they do not already exist. Issue no error if the intervening groups or the new group already exist.

    h5mkgrp -p "HDF5_file" "/a/b/new_group"

Create the new groups /a/b/new_c  and /a/x/new_4  in the file HDF5_file. The groups /a/b  and /a/x  must already exist.

    h5mkgrp -p "HDF5_file" "/a/b/new_c" "/a/x/new_4"

History:
Release    Command Line Tool
1.8.0Tool introduced in this release.

--- Last Modified: November 17, 2017 | 09:24 AM