pywrdrb.utils.hdf5.extract_realization_from_hdf5#
- pywrdrb.utils.hdf5.extract_realization_from_hdf5(hdf5_file, realization, stored_by_node=False)#
Pull a single inflow realization from an HDF5 file of inflows.
- Parameters:
hdf5_file (str) – Path to the HDF5 file.
realization (str or int) – The realization number or name to extract.
stored_by_node (bool, optional) – If True, assumes that the data keys are node names. If False, keys are realizations. Default is False.
- Returns:
A DataFrame containing the extracted realization data, with datetime as the index.
- Return type:
pd.DataFrame