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 Dataspace (H5S) Interface

## Detailed Description

See also
  Dataspaces (H5S), C-API
  Dataspaces and Partial I/O, User Guide

## Modules
module | h5s
| This module contains Fortran interfaces for H5S functions.

## Functions/Subroutines
subroutine | h5sclose_f (space_id, hdferr)
| Releases and terminates access to a dataspace.
subroutine | h5scopy_f (space_id, new_space_id, hdferr)
| Creates an exact copy of a dataspace.
subroutine | h5screate_f (classtype, space_id, hdferr)
| Creates a new dataspace of a specified type.
subroutine | h5screate_simple_f (rank, dims, space_id, hdferr, maxdims)
| Creates a new simple data space and opens it for access.
subroutine | h5sdecode_f (buf, obj_id, hdferr)
| Decode a binary object description of data space and return a new object handle.
subroutine | h5sencode_f (obj_id, buf, nalloc, hdferr, fapl_id)
| Encode a data space object description into a binary buffer.
subroutine | h5sextent_copy_f (dest_space_id, source_space_id, hdferr)
| Copies the extent of a dataspace.
subroutine | h5sextent_equal_f (space1_id, space2_id, equal, hdferr)
| Determines whether two dataspace extents are equal.
subroutine | h5sget_regular_hyperslab_f (space_id, start, stride, count, block, hdferr)
| Retrieves a regular hyperslab selection.
subroutine | h5sget_select_bounds_f (space_id, start, end, hdferr)
| Gets the bounding box containing the current selection.
subroutine | h5sget_select_elem_npoints_f (space_id, num_points, hdferr)
| Gets the number of element points in the current selection.
subroutine | h5sget_select_elem_pointlist_f (space_id, startpoint, num_points, buf, hdferr)
| Gets the list of element points currently selected.
subroutine | h5sget_select_hyper_blocklist_f (space_id, startblock, num_blocks, buf, hdferr)
| Gets the list of hyperslab blocks currently selected.
subroutine | h5sget_select_hyper_nblocks_f (space_id, num_blocks, hdferr)
| Get number of hyperslab blocks.
subroutine | h5sget_select_npoints_f (space_id, npoints, hdferr)
| Determines the number of elements in a dataspace selection.
subroutine | h5sget_select_type_f (space_id, type, hdferr)
| Retrieve the type of selection.
subroutine | h5sget_simple_extent_dims_f (space_id, dims, maxdims, hdferr)
| Retrieves dataspace dimension size and maximum size.
subroutine | h5sget_simple_extent_ndims_f (space_id, rank, hdferr)
| Determines the dimensionality of a dataspace.
subroutine | h5sget_simple_extent_npoints_f (space_id, npoints, hdferr)
| Determines the number of elements in a dataspace.
subroutine | h5sget_simple_extent_type_f (space_id, classtype, hdferr)
| Determine the current class of a dataspace.
subroutine | h5sis_regular_hyperslab_f (space_id, isregular, hdferr)
| Retrieves a regular hyperslab selection.
subroutine | h5sis_simple_f (space_id, status, hdferr)
| Determines whether a dataspace is a simple dataspace.
subroutine | h5soffset_simple_f (space_id, offset, hdferr)
| Sets the offset of a simple dataspace.
subroutine | h5ssel_iter_close_f (sel_iter_id, hdferr)
| Closes a dataspace selection iterator.
subroutine | h5ssel_iter_create_f (space_id, elmt_size, flags, ds_iter_id, hdferr)
| Creates a dataspace selection iterator for a dataspace's selection.
subroutine | h5ssel_iter_get_seq_list_f (sel_iter_id, maxseq, maxbytes, nseq, nbytes, off, len, hdferr)
| Retrieves a list of offset / length sequences for the elements in an iterator.
subroutine | h5ssel_iter_reset_f (sel_iter_id, space_id, hdferr)
| Resets a dataspace selection iterator back to an initial state.
subroutine | h5sselect_all_f (space_id, hdferr)
| Selects the entire dataspace.
subroutine | h5sselect_elements_f (space_id, operator, rank, num_elements, coord, hdferr)
| Selects elements to be included in the selection for a dataspace.
subroutine | h5sselect_hyperslab_f (space_id, operator, start, count, hdferr, stride, block)
| Selects a hyperslab region to add to the current selected region.
subroutine | h5sselect_intersect_block_f (space_id, istart, iend, intersects, hdferr)
| Checks if current selection intersects with a block.
subroutine | h5sselect_none_f (space_id, hdferr)
| Resets the selection region to include no elements.
subroutine | h5sselect_shape_same_f (space1_id, space2_id, same, hdferr)
| Checks if two selections are the same shape.
subroutine | h5sselect_valid_f (space_id, status, hdferr)
| Verifies that the selection is within the extent of the dataspace.
subroutine | h5sset_extent_none_f (space_id, hdferr)
| Removes the extent from a dataspace.
subroutine | h5sset_extent_simple_f (space_id, rank, current_size, maximum_size, hdferr)
| Sets or resets the size of an existing dataspace.

## Variables
integer(hid_t) | h5s_all_f
| H5S_ALL.
integer(hid_t) | h5s_block_f
| H5S_BLOCK.
integer | h5s_null_f
| H5S_NULL.
integer(hid_t) | h5s_plist_f
| H5S_PLIST.
integer | h5s_scalar_f
| H5S_SCALAR.
integer | h5s_sel_all_f
| H5S_SEL_ALL.
integer | h5s_sel_error_f
| H5S_SEL_ERROR.
integer | h5s_sel_hyperslabs_f
| H5S_SEL_HYPERSLABS.
integer | h5s_sel_iter_get_seq_list_sorted_f
| H5S_SEL_ITER_GET_SEQ_LIST_SORTED.
integer | h5s_sel_iter_share_with_dataspace_f
| H5S_SEL_ITER_SHARE_WITH_DATASPACE.
integer | h5s_sel_none_f
| H5S_SEL_NONE.
integer | h5s_sel_points_f
| H5S_SEL_POINTS.
integer | h5s_select_and_f
| H5S_SELECT_AND.
integer | h5s_select_append_f
| H5S_SELECT_APPEND.
integer | h5s_select_invalid_f
| H5S_SELECT_INVALID.
integer | h5s_select_noop_f
| H5S_SELECT_NOOP.
integer | h5s_select_nota_f
| H5S_SELECT_NOTA.
integer | h5s_select_notb_f
| H5S_SELECT_NOTB.
integer | h5s_select_or_f
| H5S_SELECT_OR.
integer | h5s_select_prepend_f
| H5S_SELECT_PREPEND.
integer | h5s_select_set_f
| H5S_SELECT_SET.
integer | h5s_select_xor_f
| H5S_SELECT_XOR.
integer | h5s_simple_f
| H5S_SIMPLE.
integer(hsize_t) | h5s_unlimited_f
| H5S_UNLIMITED.

## Function/Subroutine Documentation

## ◆ h5sclose_f()

subroutine h5sclose_f | ( | integer(hid_t), intent(in) | space_id,
|  | integer, intent(out) | hdferr )

Releases and terminates access to a dataspace.

Parameters

  space_id | Identifier of dataspace to release.
  hdferr | Returns 0 if successful and -1 if it fails.

See C API: H5Sclose()

## ◆ h5scopy_f()

subroutine h5scopy_f | ( | integer(hid_t), intent(in) | space_id,
|  | integer(hid_t), intent(out) | new_space_id,
|  | integer, intent(out) | hdferr )

Creates an exact copy of a dataspace.

Parameters

  space_id | Dataspace identifier.
  new_space_id | Identifier of dataspace's copy.
  hdferr | Returns 0 if successful and -1 if it fails.

See C API: H5Scopy()

## ◆ h5screate_f()

subroutine h5screate_f | ( | integer, intent(in) | classtype,
|  | integer(hid_t), intent(out) | space_id,
|  | integer, intent(out) | hdferr )

Creates a new dataspace of a specified type.

Parameters

  classtype | The type of the dataspace to be created. Possible values are: H5S_SCALAR_F H5S_SIMPLE_F H5S_NULL_F
  space_id | Dataspace identifier.
  hdferr | Returns 0 if successful and -1 if it fails.

See C API: H5Screate()

## ◆ h5screate_simple_f()

subroutine h5screate_simple_f | ( | integer, intent(in) | rank,
|  | integer(hsize_t), dimension(1:rank), intent(in) | dims,
|  | integer(hid_t), intent(out) | space_id,
|  | integer, intent(out) | hdferr,
|  | integer(hsize_t), dimension(1:rank), intent(in), optional | maxdims )

Creates a new simple data space and opens it for access.

Parameters

  rank | Number of dimensions.
  dims | An array of the size of each dimension.
  space_id | Dataspace identifier.
  hdferr | Returns 0 if successful and -1 if it fails.
  maxdims | An array of the maximum size of each dimension.

See C API: H5Screate_simple()

## ◆ h5sdecode_f()

subroutine h5sdecode_f | ( | character(len=*), intent(in) | buf,
|  | integer(hid_t), intent(out) | obj_id,
|  | integer, intent(out) | hdferr )

Decode a binary object description of data space and return a new object handle.

Parameters

  buf | Buffer for the data space object to be decoded.
  obj_id | Object ID.
  hdferr | Returns 0 if successful and -1 if it fails.

See C API: H5Sdecode()

## ◆ h5sencode_f()

subroutine h5sencode_f | ( | integer(hid_t), intent(in) | obj_id,
|  | character(len=*), intent(out) | buf,
|  | integer(size_t), intent(inout) | nalloc,
|  | integer, intent(out) | hdferr,
|  | integer(hid_t), intent(in), optional | fapl_id )

Encode a data space object description into a binary buffer.

Parameters

  obj_id | Identifier of the object to be encoded.
  buf | Buffer for the object to be encoded into.
  nalloc | The size of the buffer needed.
  hdferr | Returns 0 if successful and -1 if it fails.
  fapl_id | File access property list identifier.

See C API: H5Sencode2()

## ◆ h5sextent_copy_f()

subroutine h5sextent_copy_f | ( | integer(hid_t), intent(in) | dest_space_id,
|  | integer(hid_t), intent(in) | source_space_id,
|  | integer, intent(out) | hdferr )

Copies the extent of a dataspace.

Parameters

  dest_space_id | The identifier for the dataspace to which the extent is copied.
  source_space_id | The identifier for the dataspace from which the extent is copied.
  hdferr | Returns 0 if successful and -1 if it fails.

See C API: H5Sextent_copy()

## ◆ h5sextent_equal_f()

subroutine h5sextent_equal_f | ( | integer(hid_t), intent(in) | space1_id,
|  | integer(hid_t), intent(in) | space2_id,
|  | logical, intent(out) | equal,
|  | integer, intent(out) | hdferr )

Determines whether two dataspace extents are equal.

Parameters

  space1_id | First dataspace identifier.
  space2_id | Second dataspace identifier.
  Equal | .TRUE. if equal, .FALSE. if unequal.
  hdferr | Returns 0 if successful and -1 if it fails.

See C API: H5Sextent_equal()

## ◆ h5sget_regular_hyperslab_f()

subroutine h5sget_regular_hyperslab_f | ( | integer(hid_t), intent(in) | space_id,
|  | integer(hsize_t), dimension(*), intent(out), target | start,
|  | integer(hsize_t), dimension(*), intent(out), target | stride,
|  | integer(hsize_t), dimension(*), intent(out), target | count,
|  | integer(hsize_t), dimension(*), intent(out), target | block,
|  | integer, intent(out) | hdferr )

Retrieves a regular hyperslab selection.

Parameters

  space_id | The identifier of the dataspace.
  start | Offset of the start of the regular hyperslab.
  stride | Stride of the regular hyperslab.
  count | Number of blocks in the regular hyperslab.
  block | Size of a block in the regular hyperslab.
  hdferr | Returns 0 if successful and -1 if it fails.

See C API: H5Sget_regular_hyperslab()

## ◆ h5sget_select_bounds_f()

subroutine h5sget_select_bounds_f | ( | integer(hid_t), intent(in) | space_id,
|  | integer(hsize_t), dimension(*), intent(out) | start,
|  | integer(hsize_t), dimension(*), intent(out) | end,
|  | integer, intent(out) | hdferr )

Gets the bounding box containing the current selection.

Parameters

  space_id | Dataspace identifier.
  start | Starting coordinates of bounding box.
  end | Ending coordinates of bounding box, i.e., the coordinates of the diagonally opposite corner.
  hdferr | Returns 0 if successful and -1 if it fails.

See C API: H5Sget_select_bounds()

## ◆ h5sget_select_elem_npoints_f()

subroutine h5sget_select_elem_npoints_f | ( | integer(hid_t), intent(in) | space_id,
|  | integer(hssize_t), intent(out) | num_points,
|  | integer, intent(out) | hdferr )

Gets the number of element points in the current selection.

Parameters

  space_id | Dataspace identifier.
  num_points | Number of element points in the current dataspace selection
  hdferr | Returns 0 if successful and -1 if it fails.

See C API: H5Sget_select_elem_npoints()

## ◆ h5sget_select_elem_pointlist_f()

subroutine h5sget_select_elem_pointlist_f | ( | integer(hid_t), intent(in) | space_id,
|  | integer(hsize_t), intent(in) | startpoint,
|  | integer(hsize_t), intent(in) | num_points,
|  | integer(hsize_t), dimension(*), intent(out) | buf,
|  | integer, intent(out) | hdferr )

Gets the list of element points currently selected.

Parameters

  space_id | Dataspace identifier.
  startpoint | Element point to start with, 0-based indices.
  num_points | Number of element points to get.
  buf | Buffer with element points selected.
  hdferr | Returns 0 if successful and -1 if it fails.

See C API: H5Sget_select_elem_pointlist()

## ◆ h5sget_select_hyper_blocklist_f()

subroutine h5sget_select_hyper_blocklist_f | ( | integer(hid_t), intent(in) | space_id,
|  | integer(hsize_t), intent(in) | startblock,
|  | integer(hsize_t), intent(in) | num_blocks,
|  | integer(hsize_t), dimension(*), intent(out) | buf,
|  | integer, intent(out) | hdferr )

Gets the list of hyperslab blocks currently selected.

Parameters

  space_id | Dataspace identifier.
  startblock | Hyperslab block to start with.
  num_blocks | Number of blocks to get.
  buf | Buffer to hold block list.
  hdferr | Returns 0 if successful and -1 if it fails.

See C API: H5Sget_select_hyper_blocklist()

## ◆ h5sget_select_hyper_nblocks_f()

subroutine h5sget_select_hyper_nblocks_f | ( | integer(hid_t), intent(in) | space_id,
|  | integer(hssize_t), intent(out) | num_blocks,
|  | integer, intent(out) | hdferr )

Get number of hyperslab blocks.

Parameters

  space_id | Dataspace identifier.
  num_blocks | Number of hyperslab blocks in the current hyperslab selection.
  hdferr | Returns 0 if successful and -1 if it fails.

See C API: H5Sget_select_hyper_nblocks()

## ◆ h5sget_select_npoints_f()

subroutine h5sget_select_npoints_f | ( | integer(hid_t), intent(in) | space_id,
|  | integer(hssize_t), intent(out) | npoints,
|  | integer, intent(out) | hdferr )

Determines the number of elements in a dataspace selection.

Parameters

  space_id | Dataspace identifier.
  npoints | Number of points in the dataspace selection.
  hdferr | Returns 0 if successful and -1 if it fails.

See C API: H5Sget_select_npoints()

## ◆ h5sget_select_type_f()

subroutine h5sget_select_type_f | ( | integer(hid_t), intent(inout) | space_id,
|  | integer, intent(out) | type,
|  | integer, intent(out) | hdferr )

Retrieve the type of selection.

Parameters

  space_id | Dataspace identifier with selection.
  type | Selection type flag, valid values are: H5S_SEL_ERROR_F H5S_SEL_NONE_F H5S_SEL_POINTS_F H5S_SEL_HYPERSLABS_F H5S_SEL_ALL_F
  hdferr | Returns 0 if successful and -1 if it fails.

See C API: H5Sget_select_type()

## ◆ h5sget_simple_extent_dims_f()

subroutine h5sget_simple_extent_dims_f | ( | integer(hid_t), intent(in) | space_id,
|  | integer(hsize_t), dimension(*), intent(out) | dims,
|  | integer(hsize_t), dimension(*), intent(out) | maxdims,
|  | integer, intent(out) | hdferr )

Retrieves dataspace dimension size and maximum size.

Parameters

  space_id | Dataspace identifier.
  dims | Array to store size of each dimension.
  maxdims | Array to store maximum size of each dimension.
  hdferr | Returns 0 if successful and -1 if it fails.

See C API: H5Sget_simple_extent_dims()

## ◆ h5sget_simple_extent_ndims_f()

subroutine h5sget_simple_extent_ndims_f | ( | integer(hid_t), intent(in) | space_id,
|  | integer, intent(out) | rank,
|  | integer, intent(out) | hdferr )

Determines the dimensionality of a dataspace.

Parameters

  space_id | Dataspace identifier.
  rank | Number of dataspace dimensions.
  hdferr | Returns 0 if successful and -1 if it fails.

See C API: H5Sget_simple_extent_ndims()

## ◆ h5sget_simple_extent_npoints_f()

subroutine h5sget_simple_extent_npoints_f | ( | integer(hid_t), intent(in) | space_id,
|  | integer(hsize_t), intent(out) | npoints,
|  | integer, intent(out) | hdferr )

Determines the number of elements in a dataspace.

Parameters

  space_id | Dataspace identifier.
  npoints | Number of elements in the dataspace.
  hdferr | Returns 0 if successful and -1 if it fails.

See C API: H5Sget_simple_extent_npoints()

## ◆ h5sget_simple_extent_type_f()

subroutine h5sget_simple_extent_type_f | ( | integer(hid_t), intent(in) | space_id,
|  | integer, intent(out) | classtype,
|  | integer, intent(out) | hdferr )

Determine the current class of a dataspace.

Parameters

  space_id | Dataspace identifier.
  classtype | Class type, possible values are: H5S_NO_CLASS_F H5S_SCALAR_F H5S_SIMPLE_F H5S_NULL_F
  hdferr | Returns 0 if successful and -1 if it fails.

See C API: H5Sget_simple_extent_type()

## ◆ h5sis_regular_hyperslab_f()

subroutine h5sis_regular_hyperslab_f | ( | integer(hid_t), intent(in) | space_id,
|  | logical | isregular,
|  | integer, intent(out) | hdferr )

Retrieves a regular hyperslab selection.

Parameters

  space_id | The identifier of the dataspace.
  IsRegular | TRUE or FALSE for hyperslab selection if successful.
  hdferr | Returns 0 if successful and -1 if it fails.

See C API: H5Sis_regular_hyperslab()

## ◆ h5sis_simple_f()

subroutine h5sis_simple_f | ( | integer(hid_t), intent(in) | space_id,
|  | logical, intent(out) | status,
|  | integer, intent(out) | hdferr )

Determines whether a dataspace is a simple dataspace.

Parameters

  space_id | Dataspace identifier.
  status | Flag to indicate if dataspace is simple or not (TRUE or FALSE).
  hdferr | Returns 0 if successful and -1 if it fails.

See C API: H5Sis_simple()

## ◆ h5soffset_simple_f()

subroutine h5soffset_simple_f | ( | integer(hid_t), intent(in) | space_id,
|  | integer(hssize_t), dimension(*), intent(in) | offset,
|  | integer, intent(out) | hdferr )

Sets the offset of a simple dataspace.

Parameters

  space_id | Dataspace identifier.
  offset | The offset at which to position the selection.
  hdferr | Returns 0 if successful and -1 if it fails.

See C API: H5Soffset_simple()

## ◆ h5ssel_iter_close_f()

subroutine h5ssel_iter_close_f | ( | integer(hid_t), intent(in) | sel_iter_id,
|  | integer, intent(out) | hdferr )

Closes a dataspace selection iterator.

Parameters

  sel_iter_id | Dataspace selection iterator identifier
  hdferr | Returns 0 if successful and -1 if it fails.

See C API: H5Ssel_iter_close()

## ◆ h5ssel_iter_create_f()

subroutine h5ssel_iter_create_f | ( | integer(hid_t), intent(in) | space_id,
|  | integer(size_t), intent(in) | elmt_size,
|  | integer, intent(in) | flags,
|  | integer(hid_t), intent(out) | ds_iter_id,
|  | integer, intent(out) | hdferr )

Creates a dataspace selection iterator for a dataspace's selection.

Parameters

  space_id | Dataspace identifier
  elmt_size | Size of element in the selection
  flags | Selection iterator flag, valid values are: H5S_SEL_ITER_GET_SEQ_LIST_SORTED_F, ref. H5S_SEL_ITER_GET_SEQ_LIST_SORTED H5S_SEL_ITER_SHARE_WITH_DATASPACE_F, ref. H5S_SEL_ITER_SHARE_WITH_DATASPACE
  ds_iter_id | Dataspace selection iterator identifier
  hdferr | Returns 0 if successful and -1 if it fails.

See C API: H5Ssel_iter_create()

## ◆ h5ssel_iter_get_seq_list_f()

subroutine h5ssel_iter_get_seq_list_f | ( | integer(hid_t), intent(in) | sel_iter_id,
|  | integer(size_t), intent(in) | maxseq,
|  | integer(size_t), intent(in) | maxbytes,
|  | integer(size_t), intent(out) | nseq,
|  | integer(size_t), intent(out) | nbytes,
|  | integer(hsize_t), dimension(*), intent(out) | off,
|  | integer(size_t), dimension(*), intent(out) | len,
|  | integer, intent(out) | hdferr )

Retrieves a list of offset / length sequences for the elements in an iterator.

Parameters

  sel_iter_id | Dataspace selection iterator identifier
  maxseq | Maximum number of sequences to retrieve
  maxbytes | Maximum number of bytes to retrieve in sequences
  nseq | Number of sequences retrieved
  nbytes | Number of bytes retrieved, in all sequences
  off | Array of sequence offsets
  len | Array of sequence lengths
  hdferr | Returns 0 if successful and -1 if it fails.

See C API: H5Ssel_iter_get_seq_list()

## ◆ h5ssel_iter_reset_f()

subroutine h5ssel_iter_reset_f | ( | integer(hid_t), intent(in) | sel_iter_id,
|  | integer(hid_t), intent(in) | space_id,
|  | integer, intent(out) | hdferr )

Resets a dataspace selection iterator back to an initial state.

Parameters

  sel_iter_id | Identifier of the dataspace selection iterator to reset
  space_id | Identifier of the dataspace with selection to iterate over
  hdferr | Returns 0 if successful and -1 if it fails.

See C API: H5Ssel_iter_reset()

## ◆ h5sselect_all_f()

subroutine h5sselect_all_f | ( | integer(hid_t), intent(in) | space_id,
|  | integer, intent(out) | hdferr )

Selects the entire dataspace.

Parameters

  space_id | Identifier for the dataspace in which selection being made.
  hdferr | Returns 0 if successful and -1 if it fails.

See C API: H5Sselect_all()

## ◆ h5sselect_elements_f()

subroutine h5sselect_elements_f | ( | integer(hid_t), intent(in) | space_id,
|  | integer, intent(in) | operator,
|  | integer, intent(in) | rank,
|  | integer(size_t), intent(in) | num_elements,
|  | integer(hsize_t), dimension(rank,num_elements), intent(in) | coord,
|  | integer, intent(out) | hdferr )

Selects elements to be included in the selection for a dataspace.

Parameters

  space_id | Dataspace identifier.
  operator | Flag, valid values are: H5S_SELECT_SET_F H5S_SELECT_APPEND_F H5S_SELECT_PREPEND_F
  rank | Number of dataspace dimensions.
  num_elements | Number of elements to be selected.
  coord | 2D (rank x num_elements) array with the elements coordinates ( 1-based); in C the array is stored in 2D as (num_element x rank).
  hdferr | Returns 0 if successful and -1 if it fails.

See C API: H5Sselect_elements()

## ◆ h5sselect_hyperslab_f()

subroutine h5sselect_hyperslab_f | ( | integer(hid_t), intent(in) | space_id,
|  | integer, intent(in) | operator,
|  | integer(hsize_t), dimension(*), intent(in) | start,
|  | integer(hsize_t), dimension(*), intent(in) | count,
|  | integer, intent(out) | hdferr,
|  | integer(hsize_t), dimension(:), intent(in), optional | stride,
|  | integer(hsize_t), dimension(:), intent(in), optional | block )

Selects a hyperslab region to add to the current selected region.

Parameters

  space_id | Dataspace identifier.
  operator | Flag, valid values are: H5S_SELECT_SET_F H5S_SELECT_OR_F H5S_SELECT_AND_F H5S_SELECT_XOR_F H5S_SELECT_NOTB_F H5S_SELECT_NOTA_F
  start | Array with hyperslab offsets, 0-based indices.
  count | Number of blocks included in the hyperslab.
  hdferr | Returns 0 if successful and -1 if it fails.
  stride | Array with hyperslab strides.
  block | Array with hyperslab block sizes.

See C API: H5Sselect_hyperslab()

## ◆ h5sselect_intersect_block_f()

subroutine h5sselect_intersect_block_f | ( | integer(hid_t), intent(in) | space_id,
|  | integer(hsize_t), dimension(*), intent(in) | istart,
|  | integer(hsize_t), dimension(*), intent(in) | iend,
|  | logical, intent(out) | intersects,
|  | integer, intent(out) | hdferr )

Checks if current selection intersects with a block.

Parameters

  space_id | Dataspace identifier
  istart | Starting coordinate of the block
  iend | Opposite ("ending") coordinate of the block
  intersects | Dataspace intersects with the block specified
  hdferr | Returns 0 if successful and -1 if it fails.

See C API: H5Sselect_intersect_block()

## ◆ h5sselect_none_f()

subroutine h5sselect_none_f | ( | integer(hid_t), intent(in) | space_id,
|  | integer, intent(out) | hdferr )

Resets the selection region to include no elements.

Parameters

  space_id | The identifier for the dataspace in which the selection is being reset.
  hdferr | Returns 0 if successful and -1 if it fails.

See C API: H5Sselect_none()

## ◆ h5sselect_shape_same_f()

subroutine h5sselect_shape_same_f | ( | integer(hid_t), intent(in) | space1_id,
|  | integer(hid_t), intent(in) | space2_id,
|  | logical, intent(out) | same,
|  | integer, intent(out) | hdferr )

Checks if two selections are the same shape.

Parameters

  space1_id | Dataspace identifier
  space2_id | Dataspace identifier
  same | Value of check
  hdferr | Returns 0 if successful and -1 if it fails.

See C API: H5Sselect_shape_same()

## ◆ h5sselect_valid_f()

subroutine h5sselect_valid_f | ( | integer(hid_t), intent(in) | space_id,
|  | logical, intent(out) | status,
|  | integer, intent(out) | hdferr )

Verifies that the selection is within the extent of the dataspace.

Parameters

  space_id | Identifier for the dataspace for which selection is verified
  status | TRUE if the selection is contained within the extent, FALSE otherwise.
  hdferr | Returns 0 if successful and -1 if it fails.

See C API: H5Sselect_valid()

## ◆ h5sset_extent_none_f()

subroutine h5sset_extent_none_f | ( | integer(hid_t), intent(in) | space_id,
|  | integer, intent(out) | hdferr )

Removes the extent from a dataspace.

Parameters

  space_id | Dataspace identifier.
  hdferr | Returns 0 if successful and -1 if it fails.

See C API: H5Sset_extent_none()

## ◆ h5sset_extent_simple_f()

subroutine h5sset_extent_simple_f | ( | integer(hid_t), intent(in) | space_id,
|  | integer, intent(in) | rank,
|  | integer(hsize_t), dimension(rank), intent(in) | current_size,
|  | integer(hsize_t), dimension(rank), intent(in) | maximum_size,
|  | integer, intent(out) | hdferr )

Sets or resets the size of an existing dataspace.

Parameters

  space_id | Dataspace identifier.
  rank | Dataspace number of dimensions.
  current_size | Array with the new sizes of dimensions.
  maximum_size | Array with the new maximum sizes of dimensions.
  hdferr | Returns 0 if successful and -1 if it fails.

See C API: H5Sset_extent_simple()

## Variable Documentation

## ◆ h5s_all_f

integer(hid_t) h5s_all_f

H5S_ALL.

## ◆ h5s_block_f

integer(hid_t) h5s_block_f

H5S_BLOCK.

## ◆ h5s_null_f

integer h5s_null_f

H5S_NULL.

## ◆ h5s_plist_f

integer(hid_t) h5s_plist_f

H5S_PLIST.

## ◆ h5s_scalar_f

integer h5s_scalar_f

H5S_SCALAR.

## ◆ h5s_sel_all_f

integer h5s_sel_all_f

H5S_SEL_ALL.

## ◆ h5s_sel_error_f

integer h5s_sel_error_f

H5S_SEL_ERROR.

## ◆ h5s_sel_hyperslabs_f

integer h5s_sel_hyperslabs_f

H5S_SEL_HYPERSLABS.

## ◆ h5s_sel_iter_get_seq_list_sorted_f

integer h5s_sel_iter_get_seq_list_sorted_f

H5S_SEL_ITER_GET_SEQ_LIST_SORTED.

## ◆ h5s_sel_iter_share_with_dataspace_f

integer h5s_sel_iter_share_with_dataspace_f

H5S_SEL_ITER_SHARE_WITH_DATASPACE.

## ◆ h5s_sel_none_f

integer h5s_sel_none_f

H5S_SEL_NONE.

## ◆ h5s_sel_points_f

integer h5s_sel_points_f

H5S_SEL_POINTS.

## ◆ h5s_select_and_f

integer h5s_select_and_f

H5S_SELECT_AND.

## ◆ h5s_select_append_f

integer h5s_select_append_f

H5S_SELECT_APPEND.

## ◆ h5s_select_invalid_f

integer h5s_select_invalid_f

H5S_SELECT_INVALID.

## ◆ h5s_select_noop_f

integer h5s_select_noop_f

H5S_SELECT_NOOP.

## ◆ h5s_select_nota_f

integer h5s_select_nota_f

H5S_SELECT_NOTA.

## ◆ h5s_select_notb_f

integer h5s_select_notb_f

H5S_SELECT_NOTB.

## ◆ h5s_select_or_f

integer h5s_select_or_f

H5S_SELECT_OR.

## ◆ h5s_select_prepend_f

integer h5s_select_prepend_f

H5S_SELECT_PREPEND.

## ◆ h5s_select_set_f

integer h5s_select_set_f

H5S_SELECT_SET.

## ◆ h5s_select_xor_f

integer h5s_select_xor_f

H5S_SELECT_XOR.

## ◆ h5s_simple_f

integer h5s_simple_f

H5S_SIMPLE.

## ◆ h5s_unlimited_f

integer(hsize_t) h5s_unlimited_f

H5S_UNLIMITED.