# 插值音量

{% embed url="<https://www.youtube.com/watch?v=0X0-BHUScC4#t=4m40s>" %}
使用插值音量参数的视频
{% endembed %}

## 一般描述

通用插值参数，根据水库或存储节点的当前（时间步长）体积返回值。这个

参数使用 **排列** （表）的 **水库容量** 和相应的值。在这种情况下，关联值是对应的 **库区** 为了给定的 **音量**.

插值用于计算插值数组中给出的点之间的值。 [API 参考资料](https://pywr.github.io/pywr-docs/master/api/generated/pywr.parameters.InterpolatedVolumeParameter.html#pywr.parameters.InterpolatedVolumeParameter)

## 属性

<table><thead><tr><th width="167">姓名</th><th width="392">描述</th><th>必填项</th></tr></thead><tbody><tr><td>类型</td><td>插值音量</td><td>是的</td></tr><tr><td>节点</td><td>Storage node 为插值计算提供输入音量值</td><td>是的</td></tr><tr><td>卷</td><td>插值数据点的 x 坐标</td><td>是的</td></tr><tr><td>价值</td><td>插值数据点的 y 坐标</td><td>是的</td></tr><tr><td>interp_kwargs</td><td>要传递给的关键字参数字典 <em>scipy.interpolate.interp1d</em> 类并用于插值</td><td>可选</td></tr></tbody></table>

## 示例

以下 Json 显示了水库面积与体积额定值的示例。这可用于定义存储或水库节点的区域属性。

\`\`json { “类型”：“插值音量参数”， “节点”：“水库或 Storage node 名称”， “音量”：\[ 0， 7, 10， 15， 25 ]， “价值观”：\[ 1, 2， 4， 6, 14 ]，

```
“interp_kwargs”：{
	“种类”：“线性”
}，
```

“评论”：“体积：Mm3，值：Km2” }

```

Json 表示下表：

<table><thead><tr><th width="166">体积 (Mm3)</th><th width="182">面积 (Km2)</th></tr></thead><tbody><tr><td>0</td><td>1</td></tr><tr><td>7</td><td>2</td></tr><tr><td>10</td><td>4</td></tr><tr><td>15</td><td>6</td></tr><tr><td>25</td><td>14</td></tr></tbody></table>

绘制时它看起来像这样：

以下是区域评分表示例

<table><thead><tr><th width="166">体积 (Mm3)</th><th width="182">面积 (Km2)</th></tr></thead><tbody><tr><td>0</td><td>1</td></tr><tr><td>7</td><td>2</td></tr><tr><td>10</td><td>4</td></tr><tr><td>15</td><td>6</td></tr><tr><td>25</td><td>14</td></tr></tbody></table>

绘制时看起来像这样

<figure><img src="../../../.gitbook/assets/image (123).png" alt=""><figcaption></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/jian-mo-ji-chu-zhi-shi/parameters/interpolation-parameters/interpolated-volume.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.
