Page tree

 

JAVA

FORTRAN

C++

C

 

Link

H5S_GET_SELECT_HYPER_NBLOCKS

Get number of hyperslab blocks

Procedure:

H5S_GET_SELECT_HYPER_NBLOCKS ( space_id )

Signature:

hssize_t H5Sget_select_hyper_nblocks(
        hid_t space_id
        )

Fortran90 Interface: h5sget_select_hyper_nblocks_f
    
SUBROUTINE h5sget_select_hyper_nblocks_f(space_id, num_blocks, hdferr) 
  IMPLICIT NONE
  INTEGER(HID_T), INTENT(IN) :: space_id         ! Dataspace identifier
  INTEGER(HSSIZE_T), INTENT(OUT) :: num_blocks   ! Number of hyperslab blocks in 
                                                 ! current hyperslab selection
  INTEGER, INTENT(OUT) :: hdferr                 ! Error code
END SUBROUTINE h5sget_select_hyper_nblocks_f

Parameters:

hid_t space_id     IN: Identifier of dataspace to query

Description:

H5S_GET_SELECT_HYPER_NBLOCKS returns the number of hyperslab blocks in the current dataspace selection.

Returns:

Returns the number of hyperslab blocks in the current dataspace selection if successful. Otherwise returns a negative value.

Example:

examples / h5_vds.c [190:194]  1.10/master  HDFFV/hdf5
        /* Make sure that this is a hyperslab selection and then print information. */
        if (H5Sget_select_type(vspace) == H5S_SEL_HYPERSLABS) { 
            nblocks = H5Sget_select_hyper_nblocks (vspace);
            buf = (hsize_t *)malloc(sizeof(hsize_t)*2*RANK2*nblocks);
            status = H5Sget_select_hyper_blocklist (vspace, (hsize_t)0, nblocks, buf);

Coming Soon!

History:

None

--- Last Modified: September 27, 2018 | 11:31 AM