> 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/portugues/nocoes-basicas-de-modelagem/parameters/interpolation-parameters/interpolated-volume.md).

# Volume interpolado

{% embed url="<https://www.youtube.com/watch?v=0X0-BHUScC4#t=4m40s>" %}
Vídeo usando o parâmetro de volume interpolado
{% endembed %}

## Descrição geral

Parâmetro de interpolação genérico que retorna um valor com base no volume atual (intervalo de tempo) de um reservatório ou nós de armazenamento. O

O parâmetro usa um **matriz** (tabela) de **Volumes do reservatório** e valores correspondentes. Nesse caso, os valores associados são os correspondentes **Área do reservatório** para um dado **Volume**.

A interpolação é usada para calcular valores entre os pontos fornecidos na matriz de interpolação. [API Referência](https://pywr.github.io/pywr-docs/master/api/generated/pywr.parameters.InterpolatedVolumeParameter.html#pywr.parameters.InterpolatedVolumeParameter)

## Atributos

<table><thead><tr><th width="167">Nome</th><th width="392">Descrição</th><th>Obrigatório</th></tr></thead><tbody><tr><td>tipo</td><td>volume interpolado</td><td>sim</td></tr><tr><td>nó</td><td>Storage node para fornecer valores de volume de entrada para o cálculo de interpolação</td><td>sim</td></tr><tr><td>volumes</td><td>coordenadas x dos pontos de dados para interpolação</td><td>sim</td></tr><tr><td>valores</td><td>coordenadas y dos pontos de dados para interpolação</td><td>sim</td></tr><tr><td>interp_kwargs</td><td>Dicionário de argumentos de palavras-chave para passar <em>scipy.interpolate.interp1d</em> classe e usado para interpolação</td><td>Opcional</td></tr></tbody></table>

## Exemplo

O Json a seguir mostra um exemplo de cura de classificação de área versus volume para um reservatório. Isso pode ser usado para definir o atributo Área de um nó de armazenamento ou reservatório.

```json
{
  “tipo”: “Parâmetro de volume interpolado”,
  “node”: “Reservatório ou Storage node nome”,
	“volumes”: [
		0,
		7,
		10,
		15,
		25
	],
	“valores”: [
		1,
		2,
		4,
		6,
		14
	],

	“interp_kwargs”: {
		“tipo”: “linear”
	},
  “comentário”: “volumes: Mm3, valores: Km2"
}
```

O Json representa a tabela abaixo:

<table><thead><tr><th width="166">Volume (Mm3)</th><th width="182">Área (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 plotado, fica assim:

Abaixo está um exemplo de tabela de classificação de área

<table><thead><tr><th width="166">Volume (Mm3)</th><th width="182">Área (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 plotado, fica assim

<figure><img src="/files/CRuBOs5K87N65RSPkSRo" 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 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/portugues/nocoes-basicas-de-modelagem/parameters/interpolation-parameters/interpolated-volume.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.
