# 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="https://2382307583-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBg8BcxZRxPP2vxAwzrhK%2Fuploads%2Fgit-blob-dd9abb42f7fb7f74a79fe48055f6a88d4aba416c%2Fimage%20(110).png?alt=media" 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="https://2382307583-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBg8BcxZRxPP2vxAwzrhK%2Fuploads%2Fgit-blob-c65c48e6edb4d31d23605d7b9e503d9ca279851d%2FScreenshot%202024-07-09%20091615.png?alt=media" 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="https://2382307583-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBg8BcxZRxPP2vxAwzrhK%2Fuploads%2Fgit-blob-c45749bdfa369c801fb56bed7621f3ec62b7d256%2Fimage%20(113).png?alt=media" alt=""><figcaption></figcaption></figure>

Compila il registratore nell'editor JSON:

<figure><img src="https://2382307583-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBg8BcxZRxPP2vxAwzrhK%2Fuploads%2Fgit-blob-0e65cf33cacf2551ab3e609985a67b44179303ae%2Fimage%20(112).png?alt=media" 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: 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/italiano/nozioni-di-base-sulla-modellazione/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.
