Help us improve by taking our short survey: https://www.hdfgroup.org/website-survey/

| HDF5 Last Updated on 2026-07-28 The HDF5 Field Guide

Loading...
Searching...
No Matches
Fortran Group (H5G) Interface

## Detailed Description

See also
  Groups (H5G), C-API
  HDF5 Groups, User Guide

## Modules
module | h5g
| This module contains Fortran interfaces for H5G functions.

## Functions/Subroutines
subroutine | h5gclose_async_f (grp_id, es_id, hdferr, file, func, line)
| Asynchronously closes the specified group.
subroutine | h5gclose_f (grp_id, hdferr)
| Closes the specified group.
subroutine | h5gcreate_anon_f (loc_id, grp_id, hdferr, gcpl_id, gapl_id)
| Creates a new empty group without linking it into the file structure.
subroutine | h5gcreate_async_f (loc_id, name, grp_id, es_id, hdferr, size_hint, lcpl_id, gcpl_id, gapl_id, file, func, line)
| Asynchronously creates a new group.
subroutine | h5gcreate_f (loc_id, name, grp_id, hdferr, size_hint, lcpl_id, gcpl_id, gapl_id)
| Creates a new group.
subroutine | h5gget_comment_f (loc_id, name, size, buffer, hdferr)
| Retrieves comment for specified object.
subroutine | h5gget_create_plist_f (grp_id, gcpl_id, hdferr)
| Gets a group creation property list identifier.
subroutine | h5gget_info_async_f (loc_id, ginfo, es_id, hdferr, file, func, line)
| Asynchronously retrieves information about a group.
subroutine | h5gget_info_by_idx_async_f (loc_id, group_name, idx_type, order, n, ginfo, es_id, hdferr, lapl_id, file, func, line)
| Asynchronously retrieves information about a group, according to the group's position within an index.
subroutine | h5gget_info_by_idx_f (loc_id, group_name, idx_type, order, n, ginfo, hdferr, lapl_id)
| Retrieves information about a group, according to the group's position within an index.
subroutine | h5gget_info_by_idx_f (loc_id, group_name, idx_type, order, n, storage_type, nlinks, max_corder, hdferr, lapl_id, mounted)
| Retrieves information about a group, according to the group's position within an index.
subroutine | h5gget_info_by_name_async_f (loc_id, name, ginfo, es_id, hdferr, lapl_id, file, func, line)
| Asynchronously retrieves information about a group by its name.
subroutine | h5gget_info_by_name_f (loc_id, name, ginfo, hdferr, lapl_id)
| Retrieves information about a group by its name.
subroutine | h5gget_info_by_name_f (loc_id, name, storage_type, nlinks, max_corder, hdferr, lapl_id, mounted)
| Retrieves information about a group by its name.
subroutine | h5gget_info_f (loc_id, ginfo, hdferr)
| Retrieves information about a group.
subroutine | h5gget_info_f (loc_id, storage_type, nlinks, max_corder, hdferr, mounted)
| Retrieves information about a group.
subroutine | h5gget_linkval_f (loc_id, name, size, buffer, hdferr)
| Returns the name of the object that the symbolic link points to.
subroutine | h5gget_obj_info_idx_f (loc_id, name, idx, obj_name, obj_type, hdferr)
| Returns name and type of the group member identified by its index.
subroutine | h5glink2_f (cur_loc_id, cur_name, link_type, new_loc_id, new_name, hdferr)
| Creates a link of the specified type from new_name to current_name. current_name and new_name are interpreted relative to current and new location identifiers.
subroutine | h5glink_f (loc_id, link_type, current_name, new_name, hdferr)
| Creates a link of the specified type from new_name to current_name.
subroutine | h5gmove2_f (src_loc_id, src_name, dst_loc_id, dst_name, hdferr)
| Renames an object within an HDF5 file.
subroutine | h5gmove_f (loc_id, name, new_name, hdferr)
| Renames an object within an HDF5 file.
subroutine | h5gn_members_f (loc_id, name, nmembers, hdferr)
| Returns the number of group members.
subroutine | h5gopen_async_f (loc_id, name, grp_id, es_id, hdferr, gapl_id, file, func, line)
| Asynchronously opens an existing group.
subroutine | h5gopen_f (loc_id, name, grp_id, hdferr, gapl_id)
| Opens an existing group.
subroutine | h5gset_comment_f (loc_id, name, comment, hdferr)
| Sets comment for specified object.
subroutine | h5gunlink_f (loc_id, name, hdferr)
| Removes the specified name from the group graph and decrements the link count for the object to which name points.

## Variables
integer | h5g_dataset_f
| H5G_DATASET.
integer | h5g_group_f
| H5G_GROUP.
integer | h5g_link_error_f
| H5G_LINK_ERROR.
integer | h5g_link_f
| H5G_LINK.
integer | h5g_link_hard_f
| H5G_LINK_HARD.
integer | h5g_link_soft_f
| H5G_LINK_SOFT.
integer | h5g_same_loc_f
| H5G_SAME_LOC.
integer | h5g_storage_type_compact_f
| H5G_STORAGE_TYPE_COMPACT.
integer | h5g_storage_type_dense_f
| H5G_STORAGE_TYPE_DENSE.
integer | h5g_storage_type_symbol_table_f
| H5G_STORAGE_TYPE_SYMBOL_TABLE.
integer | h5g_storage_type_unknown_f
| H5G_STORAGE_TYPE_UNKNOWN.
integer | h5g_type_f
| H5G_TYPE.
integer | h5g_udlink_f
| H5G_UDLINK.
integer | h5g_unknown_f
| H5G_UNKNOWN.

## Function/Subroutine Documentation

## ◆ h5gclose_async_f()

subroutine h5gclose_async_f | ( | integer(hid_t), intent(in) | grp_id,
|  | integer(hid_t), intent(in) | es_id,
|  | integer, intent(out) | hdferr,
|  | type(c_ptr), intent(in), optional | file,
|  | type(c_ptr), intent(in), optional | func,
|  | integer, intent(in), optional | line )

Asynchronously closes the specified group.

Parameters

  grp_id | Group identifier.
  es_id | Event set identifier
  hdferr | Returns 0 if successful and -1 if it fails.
  file | Pointer to filename the async subroutine is being called from, filename must be null character terminated
  func | Pointer to function name the async subroutine is being called in, func must be null character terminated
  line | Line number the async subroutine is being called at

See C API: H5Gclose_async()

## ◆ h5gclose_f()

subroutine h5gclose_f | ( | integer(hid_t), intent(in) | grp_id,
|  | integer, intent(out) | hdferr )

Closes the specified group.

Parameters

  grp_id | Group identifier.
  hdferr | Returns 0 if successful and -1 if it fails.

See C API: H5Gclose()

## ◆ h5gcreate_anon_f()

subroutine h5gcreate_anon_f | ( | integer(hid_t), intent(in) | loc_id,
|  | integer(hid_t), intent(out) | grp_id,
|  | integer, intent(out) | hdferr,
|  | integer(hid_t), intent(in), optional | gcpl_id,
|  | integer(hid_t), intent(in), optional | gapl_id )

Creates a new empty group without linking it into the file structure.

Parameters

  loc_id | Location identifier.
  grp_id | Group identifier.
  hdferr | Returns 0 if successful and -1 if it fails.
  gcpl_id | Group creation property list identifier.
  gapl_id | Group access property list identifier.

See C API: H5Gcreate_anon()

## ◆ h5gcreate_async_f()

subroutine h5gcreate_async_f | ( | integer(hid_t), intent(in) | loc_id,
|  | character(len=*), intent(in) | name,
|  | integer(hid_t), intent(out) | grp_id,
|  | integer(hid_t), intent(in) | es_id,
|  | integer, intent(out) | hdferr,
|  | integer(size_t), intent(in), optional | size_hint,
|  | integer(hid_t), intent(in), optional | lcpl_id,
|  | integer(hid_t), intent(in), optional | gcpl_id,
|  | integer(hid_t), intent(in), optional | gapl_id,
|  | type(c_ptr), intent(in), optional | file,
|  | type(c_ptr), intent(in), optional | func,
|  | integer, intent(in), optional | line )

Asynchronously creates a new group.

Parameters

  loc_id | Location identifier.
  name | Group name at the specified location.
  grp_id | Group identifier.
  es_id | Event set identifier
  hdferr | Returns 0 if successful and -1 if it fails.
  size_hint | A parameter indicating the number of bytes to reserve for the names that will appear in the group. Set to OBJECT_NAMELEN_DEFAULT_F if using any of the optional parameters lcpl_id, gcpl_id, and/or gapl_id when not using keywords in specifying the optional parameters. See H5Gcreate1().
  lcpl_id | Property list for link creation.
  gcpl_id | Property list for group creation.
  gapl_id | Property list for group access.
  file | Pointer to filename the async subroutine is being called from, filename must be null character terminated
  func | Pointer to function name the async subroutine is being called in, func must be null character terminated
  line | Line number the async subroutine is being called at

See C API: H5Gcreate_async()

## ◆ h5gcreate_f()

subroutine h5gcreate_f | ( | integer(hid_t), intent(in) | loc_id,
|  | character(len=*), intent(in) | name,
|  | integer(hid_t), intent(out) | grp_id,
|  | integer, intent(out) | hdferr,
|  | integer(size_t), intent(in), optional | size_hint,
|  | integer(hid_t), intent(in), optional | lcpl_id,
|  | integer(hid_t), intent(in), optional | gcpl_id,
|  | integer(hid_t), intent(in), optional | gapl_id )

Creates a new group.

Parameters

  loc_id | Location identifier.
  name | Group name at the specified location.
  grp_id | Group identifier.
  hdferr | Returns 0 if successful and -1 if it fails.
  size_hint | A parameter indicating the number of bytes to reserve for the names that will appear in the group. Set to OBJECT_NAMELEN_DEFAULT_F if using any of the optional parameters lcpl_id, gcpl_id, and/or gapl_id when not using keywords in specifying the optional parameters. See H5Gcreate1().
  lcpl_id | Property list for link creation.
  gcpl_id | Property list for group creation.
  gapl_id | Property list for group access.

See C API: H5Gcreate2()

## ◆ h5gget_comment_f()

subroutine h5gget_comment_f | ( | integer(hid_t), intent(in) | loc_id,
|  | character(len=*), intent(in) | name,
|  | integer(size_t), intent(in) | size,
|  | character(len=size), intent(out) | buffer,
|  | integer, intent(out) | hdferr )

Retrieves comment for specified object.

Parameters

  loc_id | Location identifier.
  name | Name of the object at specified location.
  size | Size of the buffer required to hold comment.
  buffer | Buffer to hold object's comment.
  hdferr | Returns 0 if successful and -1 if it fails.

See C API: H5Gget_comment()

## ◆ h5gget_create_plist_f()

subroutine h5gget_create_plist_f | ( | integer(hid_t), intent(in) | grp_id,
|  | integer(hid_t), intent(out) | gcpl_id,
|  | integer, intent(out) | hdferr )

Gets a group creation property list identifier.

Parameters

  grp_id | Group identifier.
  gcpl_id | Group creation property list identifier.
  hdferr | Returns 0 if successful and -1 if it fails.

See C API: H5Gget_create_plist()

## ◆ h5gget_info_async_f()

subroutine h5gget_info_async_f | ( | integer(hid_t), intent(in) | loc_id,
|  | type(h5g_info_t), intent(out), target | ginfo,
|  | integer(hid_t), intent(in) | es_id,
|  | integer, intent(out) | hdferr,
|  | type(c_ptr), intent(in), optional | file,
|  | type(c_ptr), intent(in), optional | func,
|  | integer, intent(in), optional | line )

Asynchronously retrieves information about a group.

Parameters

  loc_id | Location identifier. The identifier may be that of a file, group, dataset, named datatype, or attribute.
  ginfo | Derived type in which group information is returned.
  es_id | Event set identifier
  hdferr | Returns 0 if successful and -1 if it fails.
  file | Pointer to filename the async subroutine is being called from, filename must be null character terminated
  func | Pointer to function name the async subroutine is being called in, func must be null character terminated
  line | Line number the async subroutine is being called at

See C API: H5Gget_info_async()

## ◆ h5gget_info_by_idx_async_f()

subroutine h5gget_info_by_idx_async_f | ( | integer(hid_t), intent(in) | loc_id,
|  | character(len=*), intent(in) | group_name,
|  | integer, intent(in) | idx_type,
|  | integer, intent(in) | order,
|  | integer(hsize_t), intent(in) | n,
|  | type(h5g_info_t), intent(out), target | ginfo,
|  | integer(hid_t), intent(in) | es_id,
|  | integer, intent(out) | hdferr,
|  | integer(hid_t), intent(in), optional | lapl_id,
|  | type(c_ptr), intent(in), optional | file,
|  | type(c_ptr), intent(in), optional | func,
|  | integer, intent(in), optional | line )

Asynchronously retrieves information about a group, according to the group's position within an index.

Parameters

  loc_id | Location identifier. The identifier may be that of a file, group, dataset, named datatype, or attribute.
  group_name | Name of group containing group for which information is to be retrieved.
  idx_type | Index type.
  order | Order of the count in the index.
  n | Position in the index of the group for which information is retrieved.
  ginfo | Derived type in which group information is returned.
  es_id | Event set identifier
  hdferr | Returns 0 if successful and -1 if it fails.
  lapl_id | Link access property list.
  file | Pointer to filename the async subroutine is being called from, filename must be null character terminated
  func | Pointer to function name the async subroutine is being called in, func must be null character terminated
  line | Line number the async subroutine is being called at

See C API: H5Gget_info_by_idx_async()

## ◆ h5gget_info_by_idx_f() [1/2]

subroutine h5gget_info_by_idx_f | ( | integer(hid_t), intent(in) | loc_id,
|  | character(len=*), intent(in) | group_name,
|  | integer, intent(in) | idx_type,
|  | integer, intent(in) | order,
|  | integer(hsize_t), intent(in) | n,
|  | type(h5g_info_t), intent(out), target | ginfo,
|  | integer, intent(out) | hdferr,
|  | integer(hid_t), intent(in), optional | lapl_id )

Retrieves information about a group, according to the group's position within an index.

Attention
  The preferred API, Fortran 2003 version.

Parameters

  loc_id | Location identifier. The identifier may be that of a file, group, dataset, named datatype, or attribute.
  group_name | Name of group containing group for which information is to be retrieved.
  idx_type | Index type.
  order | Order of the count in the index.
  n | Position in the index of the group for which information is retrieved.
  ginfo | Derived type in which group information is returned.
  hdferr | Returns 0 if successful and -1 if it fails.
  lapl_id | Link access property list.

See C API: H5Gget_info_by_idx()

## ◆ h5gget_info_by_idx_f() [2/2]

subroutine h5gget_info_by_idx_f | ( | integer(hid_t), intent(in) | loc_id,
|  | character(len=*), intent(in) | group_name,
|  | integer, intent(in) | idx_type,
|  | integer, intent(in) | order,
|  | integer(hsize_t), intent(in) | n,
|  | integer, intent(out) | storage_type,
|  | integer, intent(out) | nlinks,
|  | integer, intent(out) | max_corder,
|  | integer, intent(out) | hdferr,
|  | integer(hid_t), intent(in), optional | lapl_id,
|  | logical, intent(out), optional | mounted )

Retrieves information about a group, according to the group's position within an index.

Attention
  Obsolete API, use the Fortran 2003 version instead.. Both nlinks and max_corder can overflow.

Parameters

  loc_id | File or group identifier.
  group_name | Name of group containing group for which information is to be retrieved.
  idx_type | Index type.
  order | Order of the count in the index.
  n | Position in the index of the group for which information is retrieved.
  storage_type | Type of storage for links in group: H5G_STORAGE_TYPE_COMPACT_F: Compact storage H5G_STORAGE_TYPE_DENSE_F: Indexed storage H5G_STORAGE_TYPE_SYMBOL_TABLE_F: Symbol tables, the original HDF5 structure
  nlinks | Number of links in group.
  max_corder | Current maximum creation order value for group.
  hdferr | Returns 0 if successful and -1 if it fails.
  lapl_id | Link access property list.
  mounted | Whether group has a file mounted on it.

See C API: H5Gget_info_by_idx()

## ◆ h5gget_info_by_name_async_f()

subroutine h5gget_info_by_name_async_f | ( | integer(hid_t), intent(in) | loc_id,
|  | character(len=*), intent(in) | name,
|  | type(h5g_info_t), intent(out), target | ginfo,
|  | integer(hid_t), intent(in) | es_id,
|  | integer, intent(out) | hdferr,
|  | integer(hid_t), intent(in), optional | lapl_id,
|  | type(c_ptr), intent(in), optional | file,
|  | type(c_ptr), intent(in), optional | func,
|  | integer, intent(in), optional | line )

Asynchronously retrieves information about a group by its name.

Parameters

  loc_id | File or group identifier.
  name | Name of group containing group for which information is to be retrieved.
  ginfo | Derived type in which group information is returned.
  es_id | Event set identifier
  hdferr | Returns 0 if successful and -1 if it fails.
  lapl_id | Link access property list.
  file | Pointer to filename the async subroutine is being called from, filename must be null character terminated
  func | Pointer to function name the async subroutine is being called in, func must be null character terminated
  line | Line number the async subroutine is being called at

See C API: H5Gget_info_by_name_async()

## ◆ h5gget_info_by_name_f() [1/2]

subroutine h5gget_info_by_name_f | ( | integer(hid_t), intent(in) | loc_id,
|  | character(len=*), intent(in) | name,
|  | type(h5g_info_t), intent(out), target | ginfo,
|  | integer, intent(out) | hdferr,
|  | integer(hid_t), intent(in), optional | lapl_id )

Retrieves information about a group by its name.

Attention
  The preferred API, Fortran 2003 version.

Parameters

  loc_id | File or group identifier.
  name | Name of group containing group for which information is to be retrieved.
  ginfo | Derived type in which group information is returned.
  hdferr | Returns 0 if successful and -1 if it fails.
  lapl_id | Link access property list.

See C API: H5Gget_info_by_name()

## ◆ h5gget_info_by_name_f() [2/2]

subroutine h5gget_info_by_name_f | ( | integer(hid_t), intent(in) | loc_id,
|  | character(len=*), intent(in) | name,
|  | integer, intent(out) | storage_type,
|  | integer, intent(out) | nlinks,
|  | integer, intent(out) | max_corder,
|  | integer, intent(out) | hdferr,
|  | integer(hid_t), intent(in), optional | lapl_id,
|  | logical, intent(out), optional | mounted )

Retrieves information about a group by its name.

Attention
  Obsolete API, use the Fortran 2003 version instead.. Both nlinks and max_corder can overflow.

Parameters

  loc_id | File or group identifier.
  name | Name of group containing group for which information is to be retrieved.
  storage_type | Type of storage for links in group: H5G_STORAGE_TYPE_COMPACT_F: Compact storage H5G_STORAGE_TYPE_DENSE_F: Indexed storage H5G_STORAGE_TYPE_SYMBOL_TABLE_F: Symbol tables, the original HDF5 structure
  nlinks | Number of links in group.
  max_corder | Current maximum creation order value for group.
  hdferr | Returns 0 if successful and -1 if it fails.
  lapl_id | Link access property list.
  mounted | Whether group has a file mounted on it.

See C API: H5Gget_info_by_name()

## ◆ h5gget_info_f() [1/2]

subroutine h5gget_info_f | ( | integer(hid_t), intent(in) | loc_id,
|  | type(h5g_info_t), intent(out), target | ginfo,
|  | integer, intent(out) | hdferr )

Retrieves information about a group.

Attention
  The preferred API, Fortran 2003 version.

Parameters

  loc_id | Location identifier. The identifier may be that of a file, group, dataset, named datatype, or attribute.
  ginfo | Derived type in which group information is returned.
  hdferr | Returns 0 if successful and -1 if it fails.

See C API: H5Gget_info()

## ◆ h5gget_info_f() [2/2]

subroutine h5gget_info_f | ( | integer(hid_t), intent(in) | loc_id,
|  | integer, intent(out) | storage_type,
|  | integer, intent(out) | nlinks,
|  | integer, intent(out) | max_corder,
|  | integer, intent(out) | hdferr,
|  | logical, intent(out), optional | mounted )

Retrieves information about a group.

Attention
  Obsolete API, use the Fortran 2003 version instead.. Both nlinks and max_corder can overflow.

Parameters

  loc_id | Location identifier. The identifier may be that of a file, group, dataset, named datatype, or attribute.
  storage_type | Type of storage for links in group: H5G_STORAGE_TYPE_COMPACT_F: Compact storage H5G_STORAGE_TYPE_DENSE_F: Indexed storage H5G_STORAGE_TYPE_SYMBOL_TABLE_F: Symbol tables, the original HDF5 structure
  nlinks | Number of links in group.
  max_corder | Current maximum creation order value for group.
  hdferr | Returns 0 if successful and -1 if it fails.
  mounted | Whether group has a file mounted on it.

See C API: H5Gget_info()

## ◆ h5gget_linkval_f()

subroutine h5gget_linkval_f | ( | integer(hid_t), intent(in) | loc_id,
|  | character(len=*), intent(in) | name,
|  | integer(size_t), intent(in) | size,
|  | character(len=size), intent(out) | buffer,
|  | integer, intent(out) | hdferr )

Returns the name of the object that the symbolic link points to.

Parameters

  loc_id | Location identifier.
  name | Symbolic link to the object whose name is to be returned.
  size | Maximum number of characters to be returned.
  buffer | A buffer to hold the name of the object being sought.
  hdferr | Returns 0 if successful and -1 if it fails.

See C API: H5Gget_linkval()

## ◆ h5gget_obj_info_idx_f()

subroutine h5gget_obj_info_idx_f | ( | integer(hid_t), intent(in) | loc_id,
|  | character(len=*), intent(in) | name,
|  | integer, intent(in) | idx,
|  | character(len=*), intent(out) | obj_name,
|  | integer, intent(out) | obj_type,
|  | integer, intent(out) | hdferr )

Returns name and type of the group member identified by its index.

Parameters

  loc_id | Location identifier.
  name | Name of the group at the specified location.
  idx | Object index (zero-based).
  obj_name | Object name.
  obj_type | Object type.
  hdferr | Returns 0 if successful and -1 if it fails.

## ◆ h5glink2_f()

subroutine h5glink2_f | ( | integer(hid_t), intent(in) | cur_loc_id,
|  | character(len=*), intent(in) | cur_name,
|  | integer, intent(in) | link_type,
|  | integer(hid_t), intent(in) | new_loc_id,
|  | character(len=*), intent(in) | new_name,
|  | integer, intent(out) | hdferr )

Creates a link of the specified type from new_name to current_name. current_name and new_name are interpreted relative to current and new location identifiers.

Parameters

  cur_loc_id | Location identifier.
  cur_name | Name of the existing object if link is a hard link. Can be anything for the soft link.
  link_type | Link type; possible values are: H5G_LINK_HARD_F H5G_LINK_SOFT_F
  new_loc_id | New location identifier.
  new_name | New name for the object.
  hdferr | Returns 0 if successful and -1 if it fails.

See C API: H5Glink2()

## ◆ h5glink_f()

subroutine h5glink_f | ( | integer(hid_t), intent(in) | loc_id,
|  | integer, intent(in) | link_type,
|  | character(len=*), intent(in) | current_name,
|  | character(len=*), intent(in) | new_name,
|  | integer, intent(out) | hdferr )

Creates a link of the specified type from new_name to current_name.

Parameters

  loc_id | Location identifier.
  link_type | Link type; possible values are: H5G_LINK_HARD_F H5G_LINK_SOFT_F
  current_name | Name of the existing object if link is a hard link. Can be anything for the soft link.
  new_name | New name for the object.
  hdferr | Returns 0 if successful and -1 if it fails.

See C API: H5Glink()

## ◆ h5gmove2_f()

subroutine h5gmove2_f | ( | integer(hid_t), intent(in) | src_loc_id,
|  | character(len=*), intent(in) | src_name,
|  | integer(hid_t), intent(in) | dst_loc_id,
|  | character(len=*), intent(in) | dst_name,
|  | integer, intent(out) | hdferr )

Renames an object within an HDF5 file.

Parameters

  src_loc_id | Original location identifier.
  src_name | Object's name at specified original location.
  dst_loc_id | Original location identifier.
  dst_name | Object's new name.
  hdferr | Returns 0 if successful and -1 if it fails.

See C API: H5Gmove2()

## ◆ h5gmove_f()

subroutine h5gmove_f | ( | integer(hid_t), intent(in) | loc_id,
|  | character(len=*), intent(in) | name,
|  | character(len=*), intent(in) | new_name,
|  | integer, intent(out) | hdferr )

Renames an object within an HDF5 file.

Parameters

  loc_id | Location identifier.
  name | Object's name at specified location.
  new_name | Object's new name.
  hdferr | Returns 0 if successful and -1 if it fails.

See C API: H5Gmove()

## ◆ h5gn_members_f()

subroutine h5gn_members_f | ( | integer(hid_t), intent(in) | loc_id,
|  | character(len=*), intent(in) | name,
|  | integer, intent(out) | nmembers,
|  | integer, intent(out) | hdferr )

Returns the number of group members.

Parameters

  loc_id | Location identifier.
  name | Name of the group at the specified location.
  nmembers | Number of group members.
  hdferr | Returns 0 if successful and -1 if it fails.

## ◆ h5gopen_async_f()

subroutine h5gopen_async_f | ( | integer(hid_t), intent(in) | loc_id,
|  | character(len=*), intent(in) | name,
|  | integer(hid_t), intent(out) | grp_id,
|  | integer(hid_t), intent(in) | es_id,
|  | integer, intent(out) | hdferr,
|  | integer(hid_t), intent(in), optional | gapl_id,
|  | type(c_ptr), intent(in), optional | file,
|  | type(c_ptr), intent(in), optional | func,
|  | integer, intent(in), optional | line )

Asynchronously opens an existing group.

Parameters

  loc_id | Location identifier.
  name | Name of the group to open.
  grp_id | Group identifier.
  es_id | Event set identifier
  hdferr | Returns 0 if successful and -1 if it fails.
  gapl_id | Group access property list identifier.
  file | Pointer to filename the async subroutine is being called from, filename must be null character terminated
  func | Pointer to function name the async subroutine is being called in, func must be null character terminated
  line | Line number the async subroutine is being called at

See C API: H5Gopen_async()

## ◆ h5gopen_f()

subroutine h5gopen_f | ( | integer(hid_t), intent(in) | loc_id,
|  | character(len=*), intent(in) | name,
|  | integer(hid_t), intent(out) | grp_id,
|  | integer, intent(out) | hdferr,
|  | integer(hid_t), intent(in), optional | gapl_id )

Opens an existing group.

Parameters

  loc_id | Location identifier.
  name | Name of the group to open.
  grp_id | Group identifier.
  hdferr | Returns 0 if successful and -1 if it fails.
  gapl_id | Group access property list identifier.

See C API: H5Gopen2()

## ◆ h5gset_comment_f()

subroutine h5gset_comment_f | ( | integer(hid_t), intent(in) | loc_id,
|  | character(len=*), intent(in) | name,
|  | character(len=*), intent(in) | comment,
|  | integer, intent(out) | hdferr )

Sets comment for specified object.

Parameters

  loc_id | Location identifier.
  name | Name of the object.
  comment | Comment to set for the object.
  hdferr | Returns 0 if successful and -1 if it fails.

See C API: H5Gset_comment()

## ◆ h5gunlink_f()

subroutine h5gunlink_f | ( | integer(hid_t), intent(in) | loc_id,
|  | character(len=*), intent(in) | name,
|  | integer, intent(out) | hdferr )

Removes the specified name from the group graph and decrements the link count for the object to which name points.

Parameters

  loc_id | Location identifier.
  name | Name of the object to unlink.
  hdferr | Returns 0 if successful and -1 if it fails.

See C API: H5Gunlink()

## Variable Documentation

## ◆ h5g_dataset_f

integer h5g_dataset_f

H5G_DATASET.

## ◆ h5g_group_f

integer h5g_group_f

H5G_GROUP.

## ◆ h5g_link_error_f

integer h5g_link_error_f

H5G_LINK_ERROR.

## ◆ h5g_link_f

integer h5g_link_f

H5G_LINK.

## ◆ h5g_link_hard_f

integer h5g_link_hard_f

H5G_LINK_HARD.

## ◆ h5g_link_soft_f

integer h5g_link_soft_f

H5G_LINK_SOFT.

## ◆ h5g_same_loc_f

integer h5g_same_loc_f

H5G_SAME_LOC.

## ◆ h5g_storage_type_compact_f

integer h5g_storage_type_compact_f

H5G_STORAGE_TYPE_COMPACT.

## ◆ h5g_storage_type_dense_f

integer h5g_storage_type_dense_f

H5G_STORAGE_TYPE_DENSE.

## ◆ h5g_storage_type_symbol_table_f

integer h5g_storage_type_symbol_table_f

H5G_STORAGE_TYPE_SYMBOL_TABLE.

## ◆ h5g_storage_type_unknown_f

integer h5g_storage_type_unknown_f

H5G_STORAGE_TYPE_UNKNOWN.

## ◆ h5g_type_f

integer h5g_type_f

H5G_TYPE.

## ◆ h5g_udlink_f

integer h5g_udlink_f

H5G_UDLINK.

## ◆ h5g_unknown_f

integer h5g_unknown_f

H5G_UNKNOWN.