shnitsel.open_frames

open_frames(path)

Opens a NetCDF4 file saved by shnitsel-tools, specially interpreting certain attributes.

Parameters:

path – The path of the file to open.

Return type:

An xarray.Dataset with any MultiIndex restored.

Raises:
  • FileNotFoundError – If there is is nothing at path, or path is not a file.

  • ValueError (or other exception) – Raised by the underlying h5netcdf engine if the file is corrupted.