> 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/tutoriais/pywr-scenarios-reading-external-dataframe-and-adding-custom-rules/reading-h5-dataframe-for-pywr-scenarios.md).

# Lendo o DataFrame h5 para cenários pywr

Vá para o nó de captação **Dias Weir,** clique em Editar **Fluxo**

<figure><img src="https://2780811623-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ft4nCBOybr5foLIqkmwa6%2Fuploads%2Fgit-blob-122f78f6caa50d6525b64a7edbb7532b0c31aa7c%2Fimage%20(42).png?alt=media" alt="" width="563"><figcaption></figcaption></figure>

Uma nova janela aparecerá, selecione **PYWR\_PARÂMETRO** e clique em **Salvar**

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

Cole a seguinte configuração e **Salvar**

```json
{
	“key”: “Days Weir”,
	“cenário”: “Mudança climática”,
	“tipo”: “DataFrameParameter”,
	“url”: “Tâmisa_influxos_Cenários Pywr.h5",
	“index_col”: “etapa de tempo”,
	“parse_dates”: verdadeiro
}
```

Deve ter a aparência da imagem a seguir

<figure><img src="https://2780811623-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ft4nCBOybr5foLIqkmwa6%2Fuploads%2Fgit-blob-a16ac6d1504585edb44dc44adc4946dfc1d9207f%2Fimage%20(44).png?alt=media" alt="" width="563"><figcaption></figcaption></figure>

Repita o procedimento para captação **Inferior\_Thames** usando a seguinte configuração

```json
{
	“chave”: “Baixo Tamisa”,
	“cenário”: “Mudança climática”,
	“tipo”: “DataFrameParameter”,
	“url”: “Tâmisa_influxos_Cenários Pywr.h5",
	“index_col”: “etapa de tempo”,
	“parse_dates”: verdadeiro
}
```

## Resultados

Como o número total de simulações é quatro, isso ocorre porque estamos usando uma única **cenários pywr** configuração para **Mudança climática**, que contém 4 cenários. Cada um desses cenários será executado separadamente, e o resultado de todas as 4 simulações será exibido em cada resultado de saída, conforme mostrado abaixo

<figure><img src="https://2780811623-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ft4nCBOybr5foLIqkmwa6%2Fuploads%2Fgit-blob-7b985a4169f74776d6a0f395dce2058d3f7ca16e%2Fimage%20(45).png?alt=media" alt=""><figcaption><p>simulado_fluxo (Mais baixo)_Tâmisa)</p></figcaption></figure>

<figure><img src="https://2780811623-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ft4nCBOybr5foLIqkmwa6%2Fuploads%2Fgit-blob-e1c64630c4a4be54dae8d96da6d1a9b2b83600eb%2Fimage%20(48).png?alt=media" alt=""><figcaption><p>simulated_volume (Novo reservatório)</p></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/tutoriais/pywr-scenarios-reading-external-dataframe-and-adding-custom-rules/reading-h5-dataframe-for-pywr-scenarios.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.
