> 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/russkii/osnovy-modelirovaniya/parameters/hdf5-parameter.md).

# Параметр HDF5

## Общее описание

Этот параметр считывает данные массива из базы данных PyTables HDF.

Параметр считывает данные с помощью интерфейса массива PyTables и поэтому не требует загрузки всего набора данных в память. Это полезно для больших запусков модели. [API Справка](https://pywr.github.io/pywr-docs/master/api/generated/pywr.parameters.TablesArrayParameter.html#pywr.parameters.TablesArrayParameter)

Сохраняя файлы HDF5 в «фиксированном» формате, пользователи могут достичь оптимальной скорости доступа к данным, что делает HDF5 эффективным инструментом для сценариев PYWR, использующих фреймы данных в качестве параметров, где быстрое извлечение данных имеет решающее значение. Файлы HDF5 читаются в виде словаря, где каждый ключ представляет собой фрейм данных панды. Например, структура файла inflows.h5 может содержать три ключа, каждый из которых представляет отдельную реку. Каждый ключ содержит три временных ряда, которые можно отнести к сценарию Pywr размера 3.

При использовании h5-файла DataFrame для запуска pywr-сценариев обратитесь к [раздел pywr-сценариев](/waterstrategy/modeling-basics/scenarios/pywr-scenarios.md) чтобы активировать эту функцию

**Примечание:** Размер pywr-сценариев должен соответствовать количеству ключей в файле h5

## Атрибуты

<table><thead><tr><th width="158">Имя</th><th width="409">Описание</th><th>Требуется</th></tr></thead><tbody><tr><td>файл h5</td><td>Дескриптор файла таблицы или имя файла, к которому нужно прикрепить объекты CarRay. Если указано имя файла, объект откроет и закроет дескрипторы файлов</td><td>Да</td></tr><tr><td>узел</td><td>Имя узла в базе данных таблиц для чтения данных</td><td>Да</td></tr><tr><td>где</td><td>Путь для чтения узла</td><td>Да</td></tr><tr><td>сценарий</td><td>Сценарий для использования в качестве второго индекса в массиве</td><td>Да</td></tr></tbody></table>

## Пример

<figure><img src="https://3817892601-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fn9Lkjv9vPu8czwmW2MeG%2Fuploads%2Fgit-blob-846adaf63d356d2aa1bebd28c57e964c7f9f9d62%2Fimage%20(369).png?alt=media" alt=""><figcaption><p>Структура притоков.h5</p></figcaption></figure>

```json
{
	«ключ»: «Водосборная река 1»,
	«сценарий»: «Изменение климата»,
	«тип»: «Параметр фрейма данных»,
	«url»: «inflows.h5",
	«index_col»: «временной шаг»,
	«parse_dates»: правда
}

```


---

# 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/russkii/osnovy-modelirovaniya/parameters/hdf5-parameter.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.
