# 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&#x26;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&#x26;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&#x26;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&#x26;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&#x26;token=2d9066ec-61a9-441e-9bc8-23bfcebd22f9" alt=""><figcaption><p>simulated_volume (New Reservoir)</p></figcaption></figure>


---

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