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

# H5S_GET_SIMPLE_EXTENT_DIMS

The H5S_GET_SIMPLE_EXTENT_DIMS function returns the dimension sizes for a dataspace.

## Syntax

Result = H5S_GET_SIMPLE_EXTENT_DIMS(Dataspace_id [, MAX_DIMENSIONS=variable] )

## Return Value

Returns a vector containing the dimension sizes.

## Arguments

### Dataspace_id

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

## Keywords

### MAX_DIMENSIONS

Set this keyword to a named variable to return the maximum dimension sizes for the dataspace.

## Version History

5.6 | Introduced

## See Also

H5S_GET_SIMPLE_EXTENT_NDIMS, H5S_GET_SIMPLE_EXTENT_NPOINTS, H5S_GET_SIMPLE_EXTENT_TYPE