Page tree

The license could not be verified: License Certificate has expired!

 

JAVA

FORTRAN

C++

C

 

Link

H5S_COMBINE_HYPERSLAB

Performs an operation on a hyperslab and an existing selection and returns the resulting selection

Procedure:

H5S_COMBINE_HYPERSLAB  ( space_id, op, start, stride, count, block)

Signature:

hid_t  H5Scombine_hyperslab ( hid_t space_id, H5S_seloper_t op, const hsize_t start[],
                      const hsize_t stride[], const hsize_t count[], const hsize_t block[] )

Parameters:
hid_t space_idIN: Dataspace identifier of the selection to use
H5S_seloper_t opIN: Operation to perform on the current selection
const hsize_t start[]IN: Offset of the start of of the hyperslab
const hsize_t stride[]IN: Hyperslab stride
const hsize_t count[]IN: Number of blocks included in the hyperslab
const hsize_t block[]IN: Size of a block in the hyperslab

Description:

H5S_COMBINE_HYPERSLAB combines a hyperslab selection specified by start, stride, count and block with the current selection for the dataspace space_id, creating a new dataspace to return the generated selection.  If the current selection is not a hyperslab, it is freed and the hyperslab parameters passed in are combined with the H5S_SEL_ALL hyperslab (ie. a selection composing the entire current extent). If either stride or block is NULL, then it will be set to 1.

Returns:

Dataspace identifier on success / H5I_INVALID_HID on failure

Example:

test / tselect.c [5199:5204]  hdf5_1_12  HDFFV/hdf5
    start[0]=2; start[1]=1; start[2]=2;
    stride[0]=1; stride[1]=1; stride[2]=1;
    count[0]=6; count[1]=6; count[2]=8;
    block[0]=1; block[1]=1; block[2]=1;
    tmp_space = H5Scombine_hyperslab(sid2,H5S_SELECT_SET,start,stride,count,block);
    CHECK(tmp_space, FAIL, "H5Sselect_hyperslab");

History:
ReleaseChange
1.12.0Function introduced in this release.

--- Last Modified: December 16, 2019 | 12:58 PM