> 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/parameters/interpolation-parameters/interpolated-volume.md).

# Volume interpolato

{% embed url="<https://www.youtube.com/watch?v=0X0-BHUScC4#t=4m40s>" %}
Video utilizzando il parametro Volume interpolato
{% endembed %}

## Descrizione generale

Parametro di interpolazione generico che restituisce un valore basato sul volume corrente (step temporale) di un Reservoir o di Storage node. Il

parameter utilizza un **matrice** (tabella) di **Volumi del serbatoio** e valori corrispondenti. In questo caso i valori associati sono i corrispondenti **Area del bacino idrico** per un dato **Volume**.

L'interpolazione viene utilizzata per calcolare i valori tra i punti indicati nell'array di interpolazione. [API Riferimento](https://pywr.github.io/pywr-docs/master/api/generated/pywr.parameters.InterpolatedVolumeParameter.html#pywr.parameters.InterpolatedVolumeParameter)

## Attributi

<table><thead><tr><th width="167">Nome</th><th width="392">Descrizione</th><th>Richiesto</th></tr></thead><tbody><tr><td>tipo</td><td>volume interpolato</td><td>sì</td></tr><tr><td>snodo</td><td>Storage node per fornire i valori del volume di input per il calcolo dell'interpolazione</td><td>sì</td></tr><tr><td>volumi</td><td>coordinate x dei punti dati per l'interpolazione</td><td>sì</td></tr><tr><td>valori</td><td>coordinate y dei punti dati per l'interpolazione</td><td>sì</td></tr><tr><td>interp_kwargs</td><td>Dizionario degli argomenti delle parole chiave a cui passare <em>scipy.interpolate.interp1d</em> classe e usato per l'interpolazione</td><td>Facoltativo</td></tr></tbody></table>

## Esempio

Il seguente Json mostra un esempio di cura di classificazione Area vs Volume per un serbatoio. Questo potrebbe essere usato per definire l'attributo Area di un nodo Storage o Reservoir.

```json
{
  «type»: «InterpolatedVolumeParameter»,
  «node»: «Serbatoio o nome Storage node»,
	«volumi»: [
		0,
		7,
		10,
		15,
		25
	],
	«valori»: [
		1,
		2,
		4,
		6,
		14
	],

	«interp_kwargs»: {
		«kind»: «lineare»
	},
  «comment»: «volumi: Mm3, valori: Km2"
}
```

Il Json rappresenta la tabella seguente:

<table><thead><tr><th width="166">Volume (Mm3)</th><th width="182">Superficie (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>

Quando viene tracciato si presenta così:

Di seguito è riportato un esempio di tabella di classificazione dell'area

<table><thead><tr><th width="166">Volume (Mm3)</th><th width="182">Superficie (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>

Quando viene tracciato sembra questo

<figure><img src="https://2382307583-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBg8BcxZRxPP2vxAwzrhK%2Fuploads%2Fgit-blob-d0301f4465b5c6bbb3573f129822ddd045b29514%2Fimage%20(123).png?alt=media" alt=""><figcaption></figcaption></figure>


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://water-strategy.gitbook.io/waterstrategy/italiano/nozioni-di-base-sulla-modellazione/parameters/interpolation-parameters/interpolated-volume.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
