def load_dictionary(filename): dataset = xr.open_dataset(filename, engine='scipy') return dict(dataset.data_vars)