> 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/italiano/nozioni-di-base-sulla-modellazione/parameters/hdf5-parameter.md).

# Parametro HDF5

## Descrizione generale

Questo parametro legge i dati dell'array da un database HDF PyTables.

Il parametro legge i dati utilizzando l'interfaccia dell'array PyTables e pertanto non richiede il caricamento dell'intero set di dati in memoria. Ciò è utile per esecuzioni di modelli di grandi dimensioni. [API Riferimento](https://pywr.github.io/pywr-docs/master/api/generated/pywr.parameters.TablesArrayParameter.html#pywr.parameters.TablesArrayParameter)

Archiviando i file HDF5 nel formato «fisso», gli utenti possono raggiungere velocità di accesso ai dati ottimali, rendendo HDF5 uno strumento efficace per scenari PyWR che utilizzano DataFrame come parametri, in cui il recupero rapido dei dati è fondamentale. I file HDF5 vengono letti come un dizionario, in cui ogni chiave rappresenta un DataFrame panda. Ad esempio, la struttura di un file inflows.h5 potrebbe contenere tre chiavi, ognuna delle quali rappresenta un fiume diverso. Ogni chiave contiene tre serie temporali che possono essere assegnate a uno scenario Pywr di dimensione 3.

Se si utilizza il file h5 DataFrame per eseguire pywr-scenarios, fare riferimento a [sezione pywr-scenarios](/waterstrategy/modeling-basics/scenarios/pywr-scenarios.md) per attivare questa funzionalità

**Nota:** La dimensione di pywr-scenarios deve corrispondere al numero di chiavi nel file h5

## Attributi

<table><thead><tr><th width="158">Nome</th><th width="409">Descrizione</th><th>Richiesto</th></tr></thead><tbody><tr><td>file h5</td><td>L'handle o il nome del file delle tabelle a cui collegare gli oggetti CarRay. Se viene dato un nome di file, l'oggetto aprirà e chiuderà gli handle dei file</td><td>sì</td></tr><tr><td>snodo</td><td>Nome del nodo nel database delle tabelle da cui leggere i dati</td><td>sì</td></tr><tr><td>dove</td><td>Percorso da cui leggere il nodo</td><td>sì</td></tr><tr><td>scenario</td><td>Scenario da utilizzare come secondo indice nell'array</td><td>sì</td></tr></tbody></table>

## Esempio

<figure><img src="https://2382307583-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBg8BcxZRxPP2vxAwzrhK%2Fuploads%2Fgit-blob-846adaf63d356d2aa1bebd28c57e964c7f9f9d62%2Fimage%20(369).png?alt=media" alt=""><figcaption><p>Struttura in afflusso.h5</p></figcaption></figure>

```json
{
	«chiave»: «Catchment River 1",
	«scenario»: «Cambiamenti climatici»,
	«type»: «DataFrameParameter»,
	«url»: «afflussi.h5",
	«index_col»: «passo temporale»,
	«parse_dates»: vero
}

```


---

# 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/italiano/nozioni-di-base-sulla-modellazione/parameters/hdf5-parameter.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.
