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

# H5S_GET_SELECT_BOUNDS

The H5S_GET_SELECT_BOUNDS function retrieves the coordinates of the bounding box containing the current dataspace selection.

## Syntax

Result = H5S_GET_SELECT_BOUNDS(Dataspace_id)

## Return Value

Returns an (m x 2) array, where m is the number of dimensions (or rank) of the dataspace. The first row in the array is the starting coordinates of the bounding box, while the second row is the ending coordinates.

## 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_NPOINTS, H5S_GET_SELECT_NPOINTS, H5S_GET_SELECT_ELEM_NPOINTS, H5S_GET_SELECT_HYPER_BLOCKLIST