Mondaic
This API reference is not for the latest stable Salvus version.

salvus.flow.collections.data_proxies.hdf5_data_proxy

HDF5 data proxy.

Classes

HDF5DataProxy

class HDF5DataProxy(salvus.flow.collections.data_proxies.BaseDataProxy):
    def __init__(self, config: Dict): ...

Init.

Parameters
  • config Dict — The configuration dictionary.
Attributes
available_fields List[str]

The receiver fields contained in the HDF5 file.

contents Dict

The contents of the file as a dictionary.

Methods
compute_hash()
def compute_hash(self) -> str: ...

Compute a hash to uniquely identify the data proxy.

Returns str
get_data()
def get_data(
    self, event_name: str, receiver_field: str
) -> xarray.core.dataset.Dataset: ...

Get data for one event/shot from the HDF5 data format.

Parameters
  • event_name str — The event name.
  • receiver_field str — The receiver field to retrieve.
Returns xarray.core.dataset.Dataset