salvus.flow.collections.data_proxies.hdf5_data_proxy
HDF5 data proxy.
Classes
HDF5DataProxy
HDF5DataProxyclass HDF5DataProxy(salvus.flow.collections.data_proxies.BaseDataProxy):
def __init__(self, config: Dict): ...Init.
Parameters
configDict — The configuration dictionary.
Attributes
available_fields List[str]
available_fields List[str]The receiver fields contained in the HDF5 file.
contents Dict
contents DictThe contents of the file as a dictionary.
Methods
compute_hash()
compute_hash()def compute_hash(self) -> str: ...Compute a hash to uniquely identify the data proxy.
Returns str
get_data()
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_namestr — The event name.receiver_fieldstr — The receiver field to retrieve.
Returns xarray.core.dataset.Dataset