Page tree

 

JAVA

FORTRAN

C++

C

 

Link

H5S_GET_SIMPLE_EXTENT_NDIMS

Determines the dimensionality of a dataspace.

Procedure:

H5S_GET_SIMPLE_EXTENT_NDIMS ( space_id )

Signature:

int H5Sget_simple_extent_ndims(
            hid_t space_id
        )

Fortran90 Interface: h5sget_simple_extent_ndims_f
    
SUBROUTINE h5sget_simple_extent_ndims_f(space_id, rank, hdferr) 
  IMPLICIT NONE
  INTEGER(HID_T), INTENT(IN) :: space_id   ! Dataspace identifier 
  INTEGER, INTENT(OUT) :: rank             ! Number of dimensions 
  INTEGER, INTENT(OUT) :: hdferr           ! Error code
                                           ! 0 on success and -1 on failure
END SUBROUTINE h5sget_simple_extent_ndims_f

Parameters:

hid_t space_id     IN: Identifier of the dataspace

Description:

H5Sget_simple_extent_ndims determines the dimensionality (or rank) of a dataspace.

Returns:

Returns the number of dimensions in the dataspace if successful; otherwise returns a negative value.

Example:

examples / h5_attribute.c [253:253]  1.10/master  HDFFV/hdf5
    rank = H5Sget_simple_extent_ndims(aspace);

Coming Soon!

History:

None

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