# 录音机

本页介绍在 WaterStrategy 中创建新记录器的过程，以及一些最常用的 Pywrrecorder 类型和最常用的属性。内置记录器的完整列表及其详尽的属性列表是 [这里](https://pywr.github.io/pywr-docs/master/api/pywr.recorders.html)。

{% embed url="<https://youtu.be/ZAGU8HQ78to>" %}

## 1。在 WaterStrategy 中创建记录器

在 “网络” 页面中，单击 “录像机” 选项卡：

<figure><img src="/files/XQyE8oisVgZmq1dPvqPL" alt=""><figcaption><p>点击 “录像机” 选项卡</p></figcaption></figure>

在 “记录器类型类别” 文本旁边，单击 “+” 按钮并选择 “PYWR\ \_RECORDER”：\\

<figure><img src="/files/BhfvkAFEwhuwe6ZyCaYZ" alt=""><figcaption></figcaption></figure>

输入您的录音机的名称。这可以是你喜欢的任何东西， <mark style="color:red;">**但必须在网络中是唯一的**</mark>**。**

<figure><img src="/files/fAcBl8gOlw1zsj25dEXn" alt=""><figcaption></figcaption></figure>

在 JSON 编辑器中填充记录器：

<figure><img src="/files/20eZY7TQIrfZUUwpCB6K" alt=""><figcaption></figcaption></figure>

## 2。WaterStrategy 中的录音机编辑器

目前，在 WaterStrategy 中有两种不同的输入记录器的方式。...

## 3.numpyArrayNodeRecorder

记录来自节点的时间序列信息。 [API 参考资料](https://pywr.github.io/pywr-docs/master/api/generated/pywr.recorders.NumpyArrayNodeRecorder.html#pywr.recorders.NumpyArrayNodeRecorder)

该类存储仿真每个时间步来自特定节点的流量。记录器的结果输出在 “网络属性” 面板上，并将命名为 “模拟\ \_\<recordername>'

### 3.1。属性

<table><thead><tr><th width="196">姓名</th><th width="243">描述</th><th>必填项</th><th>默认值</th></tr></thead><tbody><tr><td>类型</td><td>numpyarraynodeRecorder</td><td>是的</td><td>无</td></tr><tr><td>节点</td><td>要记录的节点的名称</td><td>是的</td><td>无</td></tr><tr><td>时间的_AGG_func</td><td></td><td>可选</td><td>意思</td></tr><tr><td>agg_func</td><td></td><td>可选</td><td>意思</td></tr></tbody></table>

### 3.2。示例

\`\`json { “类型”：“NumpyArrayNodeRecorder”， “节点”：“水库 1”， “时间的\_AGG\_func”: “平均值”， “agg\_func”：“平均值” }

```
```


---

# 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/recorders.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.
