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

# Reading h5 DataFrame for pywr-scenarios

Go to the catchment node **Days Weir,** click Edit **Flow**

<figure><img src="https://2363830371-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FODCd8VK2OOl9jOdp5KFf%2Fuploads%2FBomadI8bYYtLXUtEnqWq%2Fimage.png?alt=media&amp;token=8ec2a91e-4ec9-4074-9abd-579da2b3fd31" alt="" width="563"><figcaption></figcaption></figure>

A new window will pop up, select **PYWR\_PARAMETER** and click **Save**

<figure><img src="https://2363830371-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FODCd8VK2OOl9jOdp5KFf%2Fuploads%2FSoCQrCATerCNoVW5huuO%2Fimage.png?alt=media&amp;token=6b7c6c53-bad6-4cf4-94e4-bdbb052442b8" alt=""><figcaption></figcaption></figure>

Paste the following configuration and **Save**

```json
{
	"key": "Days Weir",
	"scenario": "Climate Change",
	"type": "DataFrameParameter",
	"url": "Thames_inflows_pywrScenarios.h5",
	"index_col": "timestep",
	"parse_dates": true
}
```

It should look like the following image

<figure><img src="https://2363830371-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FODCd8VK2OOl9jOdp5KFf%2Fuploads%2F25ic8BPRXo7ng0sEQCUi%2Fimage.png?alt=media&amp;token=faef16cc-2a98-4105-bf23-badfc44d809a" alt="" width="563"><figcaption></figcaption></figure>

Repeat the procedure for catchment **Lower\_Thames** using the following configuration

```json
{
	"key": "Lower Thames",
	"scenario": "Climate Change",
	"type": "DataFrameParameter",
	"url": "Thames_inflows_pywrScenarios.h5",
	"index_col": "timestep",
	"parse_dates": true
}
```

## Results

As the total number of simulations is four, this is because we are using a single **pywr-scenarios** setup for **Climate Change**, which contains 4 scenarios. Each of these scenarios will run separately, and the result of all 4 simulations will be displayed each output result, as shown below

<figure><img src="https://2363830371-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FODCd8VK2OOl9jOdp5KFf%2Fuploads%2F6EnFsXAkqXUefwtyEHfe%2Fimage.png?alt=media&amp;token=63405a5e-36d7-44ce-94fb-502e112a3dac" alt=""><figcaption><p>simulated_flow (Lower_Thames)</p></figcaption></figure>

<figure><img src="https://2363830371-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FODCd8VK2OOl9jOdp5KFf%2Fuploads%2FVZgtV9XXP22m3fP0JaNP%2Fimage.png?alt=media&amp;token=2d9066ec-61a9-441e-9bc8-23bfcebd22f9" alt=""><figcaption><p>simulated_volume (New Reservoir)</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 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/tutorials/pywr-scenarios-reading-external-dataframe-and-adding-custom-rules/reading-h5-dataframe-for-pywr-scenarios.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.
