Page tree

 

JAVA

FORTRAN

C++

C

 

Link

H5S_GET_SELECT_TYPE

Determines the type of the dataspace selection.

Procedure:

H5S_GET_SELECT_TYPE ( space_id )

Signature:

H5S_sel_type H5Sget_select_type(hid_t space_id)

Fortran90 Interface: h5sget_select_type_f
    
SUBROUTINE h5sget_select_type_f(space_id, type, hdferr) 
  IMPLICIT NONE
  INTEGER(HID_T), INTENT(IN) :: space_id ! Dataspace identifier
  INTEGER, INTENT(OUT) :: type           ! Selection type
                                         ! Valid values are:
                                         !    H5S_SEL_ERROR_F 
                                         !    H5S_SEL_NONE_F 
                                         !    H5S_SEL_POINTS_F 
                                         !    H5S_SEL_HYPERSLABS_F 
                                         !    H5S_SEL_ALL_F 
  INTEGER, INTENT(OUT) :: hdferr         ! Error code
END SUBROUTINE h5sget_select_type_f
    

Parameters:

hid_t space_id     IN: Dataspace identifier.

Description:

H5Sget_select_type retrieves the type of selection currently defined for the dataspace space_id.

Returns:

Returns the dataspace selection type, a value of the enumerated datatype H5S_sel_type, if successful. Valid return values are as follows:

H5S_SEL_NONENo selection is defined.
H5S_SEL_POINTSA sequence of points is selected.
H5S_SEL_HYPERSLABSA hyperslab or compound hyperslab is selected.
H5S_SEL_ALLThe entire dataset is selected.

Otherwise returns a negative value.

Example:

examples / h5_vds.c [188:194]  1.10/master  HDFFV/hdf5
        vspace = H5Pget_virtual_vspace (dcpl, (size_t)i);

        /* 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:
Release    C
1.6.0Function introduced in this release.

--- Last Modified: December 04, 2017 | 08:04 AM