---
title: 确定数据空间维度
description: "确定数据空间的维度。"
url: https://www.hikunpeng.com/document/detail/zh/kunpenghpcs/hpckit/devg/userg_hyperio_0121.html
sourcePath: /source/zh/kunpenghpcs/hpckit/devg/userg_hyperio_0121.html
indexId: 8c2fbe285f2b005ae64e49e329f8903f882aac31336a58a1646974b4b5aae65558
---
# 确定数据空间维度

#### 函数定义

确定数据空间的维度。

int H5Sget_simple_extent_ndims(hid_t spaceId)


#### 参数

| 参数名 | 描述 | 取值范围 | 输入/输出 |
| --- | --- | --- | --- |
| spaceId | 数据空间标识。 | 整数 | 输入 |


#### 返回值

成功：返回数据空间中的维数。

失败：返回负值。
