Routines (alphabetical) > Routines: H > HDF5 Routines > H5S_GET_SIMPLE_EXTENT_NDIMS

# H5S_GET_SIMPLE_EXTENT_NDIMS

The H5S_GET_SIMPLE_EXTENT_NDIMS function determines the number of dimensions (or rank) of a dataspace.

## Syntax

Result = H5S_GET_SIMPLE_EXTENT_NDIMS(Dataspace_id)

## Return Value

Returns the number of dimensions.

## Arguments

### Dataspace_id

An integer representing the dataspace’s identifier to be queried.

## Keywords

None

## Version History

5.6 | Introduced

## See Also

H5S_GET_SIMPLE_EXTENT_DIMS, H5S_GET_SIMPLE_EXTENT_NPOINTS, H5S_GET_SIMPLE_EXTENT_TYPE