# 添加水库测深（等级）

水 **级别** 水库的计算方法与水库的计算方法相同。水库的水位必须能够计算水力发电。虽然博茨瓦纳国家模型不包括水力发电，但为了完整起见，它包含在本教程中。

*请注意：与在水库节点上定义的面积参数不同。我们将在接口的 “参数” 选项卡中定义关卡参数。这是为了演示 “参数” 选项卡，也可以在节点上定义级别。*

以下是区域等级与音量评级表的示例：

| 体积 (Mm3) | 级别 (m) |
| -------- | ------ |
| 0        | 1      |
| 7        | 8      |
| 10       | 16     |
| 15       | 18     |
| 25       | 20     |

绘制时它看起来像这样：

<figure><img src="/files/WZDZMVp2HdDPEA0ZyAuL" alt=""><figcaption><p>水位与水库容积的关系</p></figcaption></figure>

1。点击 **参数** 界面上的选项卡。

<figure><img src="/files/swHAjt18VxK5goa3xPzO" alt=""><figcaption><p>单击 “参数” 选项卡</p></figcaption></figure>

2。点击 **+** 添加新参数。选择 **PYWR\_参数**

<figure><img src="/files/xizCI5mTXpMjErHYFL5t" alt=""><figcaption><p>选择 PYWR_PARAMETER</p></figcaption></figure>

3.在出现的文本字段中写入 **'大坝水位'**

<figure><img src="/files/q7O7X1hJhBLmgs984Zh8" alt="" width="375"><figcaption><p>为参数命名</p></figcaption></figure>

4。复制和 **粘贴** 将下面的 Json 放入编辑器然后单击 **保存**。

```
{
	“类型”：“插值音量参数”，
	“节点”：“示例水库”，
	“音量”：[
		0，
		7,
		10，
		15，
		25
	]，
	“价值观”：[
		1,
		8,
		16，
		18，
		20
	]，
	“interp_kwargs”：{
		“种类”：“线性”
	}，
	“评论”：“体积：Mm3，值：m”
}
```

<figure><img src="/files/ECOMofKYXB3awEav5GW3" alt=""><figcaption><p>粘贴代码并保存</p></figcaption></figure>

5。点击 **时间序列** 在 **产出** 选项卡以启用关卡时间序列的保存。

<figure><img src="/files/jYR2Bfd8S4tjP10tN29P" alt=""><figcaption><p>启用关卡时间序列的保存</p></figcaption></figure>

6。点击 **地图** 返回地图视图

<figure><img src="/files/FkyxFkCVBiDUhKqq75aC" alt=""><figcaption><p>返回地图视图</p></figcaption></figure>

\
7\。需要在水库的等级属性上引用大坝水位参数，为此，请单击水库并将参数的名称写入水库的等级属性中（**大坝水位）。** 请注意，该名称区分大小写。

<figure><img src="/files/Y9zTGtqe5ZI7jZeuf9x7" alt=""><figcaption><p>输入参数的名称</p></figcaption></figure>

8。运行模型。 9。你会看到的，因为 **大坝水位** 节点上未定义参数， **模拟\_级别** 不在水库节点上输出。而是要查看输出，请单击 **网络属性**按钮。

<figure><img src="/files/XuJDugTH0k0vPit5C17C" alt="" width="288"><figcaption><p>单击 “网络属性” 按钮</p></figcaption></figure>

10。点击 **模拟\_大坝水位。** 请注意，水库节点名称位于参数输出的名称中。

<figure><img src="/files/IOUpbJFAPd1yMdKTSFHm" alt="" width="348"><figcaption><p>查看大坝关卡</p></figcaption></figure>

**关卡时间序列如下所示。**

<figure><img src="/files/UXmIC6nV8SHBAnxWSXBK" alt=""><figcaption><p>关卡时间序列</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://water-strategy.gitbook.io/waterstrategy/zhong-guo-ren/jiao-cheng/creating-a-reservoir-system/adding-reservoir-details/adding-reservoir-bathymetry-level.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
