> For the complete documentation index, see [llms.txt](https://water-strategy.gitbook.io/waterstrategy/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://water-strategy.gitbook.io/waterstrategy/italiano/nozioni-di-base-sulla-modellazione/recorders.md).

# registratori

Questa pagina descrive il processo di creazione di un nuovo registratore in WaterStrategy e una selezione dei tipi di Pywrrecorder e degli attributi più comunemente usati. L'elenco completo dei registratori integrati e il loro elenco completo di attributi sono [qui](https://pywr.github.io/pywr-docs/master/api/pywr.recorders.html).

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

## 1. Creazione di un registratore in WaterStrategy

In una pagina di rete, fai clic sulla scheda «Registratori»:

<figure><img src="/files/WakkwZV8PhoKZFWDkl3e" alt=""><figcaption><p>Fai clic sulla scheda «Registratori»</p></figcaption></figure>

Accanto al testo «Categorie di tipo registratore», fai clic sul pulsante «+» e seleziona «PYWR\ \_RECORDER»:\\

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

Inserisci il nome del tuo registratore. Può essere qualsiasi cosa tu voglia, <mark style="color:red;">**ma deve essere unico all'interno della rete**</mark>**.**

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

Compila il registratore nell'editor JSON:

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

## 2. Editor di registratori in WaterStrategy

Attualmente, ci sono due modi diversi per inserire un registratore in WaterStrategy....

## 3. Recorder NumpyArrayNode

Registratore per informazioni sulle serie temporali da un nodo. [API Riferimento](https://pywr.github.io/pywr-docs/master/api/generated/pywr.recorders.NumpyArrayNodeRecorder.html#pywr.recorders.NumpyArrayNodeRecorder)

Questa classe memorizza il flusso da un nodo specifico per ogni fase temporale di una simulazione. I risultati di un registratore vengono visualizzati nel pannello Attributi di rete e saranno denominati 'simulated\ \_\<recordername>'

### 3.1. Attributi

<table><thead><tr><th width="196">Nome</th><th width="243">Descrizione</th><th>Richiesto</th><th>Valore predefinito</th></tr></thead><tbody><tr><td>tipo</td><td>registratore di nodi numpyarray</td><td>sì</td><td>Nessuna</td></tr><tr><td>snodo</td><td>Nome del nodo da registrare</td><td>sì</td><td>Nessuna</td></tr><tr><td>temporale_agg_func</td><td></td><td>Facoltativo</td><td>significare</td></tr><tr><td>agg_func</td><td></td><td>Facoltativo</td><td>significare</td></tr></tbody></table>

### 3.2. Esempio

```json
{
	«type»: «NumpyArrayNodeRecorder»,
	«node»: «Serbatoio 1",
	«temporale_agg_func»: «medio»,
	«agg_func»: «medio»
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://water-strategy.gitbook.io/waterstrategy/italiano/nozioni-di-base-sulla-modellazione/recorders.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
