wradlib.io.hdf.read_generic_hdf5

wradlib.io.hdf.read_generic_hdf5#

wradlib.io.hdf.read_generic_hdf5(fname)[source]#

Reads hdf5 files according to their structure

In contrast to other file readers under wradlib.io, this function will not return a two item tuple with (data, metadata). Instead, this function returns ONE dictionary that contains all the file contents - both data and metadata. The keys of the output dictionary conform to the Group/Subgroup directory branches of the original file.

Parameters:

fname (str or file-like) – a hdf5 file path or file-like object

Returns:

output (dict) – a dictionary that contains both data and metadata according to the original hdf5 file structure

Examples

See Reading HDF5 files with a generic reader.