rex.multi_file_resource.MultiH5

class MultiH5(h5_files, check_files=False)[source]

Bases: object

Class to handle multiple h5 file Resources

Parameters:
  • h5_files (list) – List of .h5 files to source data from

  • check_files (bool) – Check to ensure files have the same coordinates and time_index

Methods

close()

Close all h5py.File instances

Attributes

attrs

Global .h5 file attributes sourced from first .h5 file

datasets

Available datasets

h5_files

.h5 files data is being sourced from

property attrs

Global .h5 file attributes sourced from first .h5 file

Returns:

attrs (dict) – .h5 file attributes sourced from first .h5 file

property datasets

Available datasets

Returns:

list – List of dataset present in .h5 files

property h5_files

.h5 files data is being sourced from

Returns:

list – List of .h5 files data is being sourced from

close()[source]

Close all h5py.File instances