xarray and h5py, hdf5plugin - first run works, second run crashes. #6004
Unanswered
PythonSchlumpf
asked this question in
Q&A
Replies: 1 comment
-
Okay, when I add |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Dear all,
I have h5 files, probably created with h5py.
In a first step, I want to check if all h5 files contain data and what is the shape of the np.arrays inside.
An extraction of my code:
This works well. And no matter how many times, I execute the code in Jupyter, it works.
Now, I thought I want to use xarray to extract from all h5 files the np.arrays.
I use
First run works fine. Output:
When I execute the jupyter notebook again, it crashes. And in the top section of the code. For me, it looks like the hdf files were not properly closed by
open_mfdataset
.I am uncertain what to enter as
group
information inxr.open_mfdataset
. With h5py I need to provide/entry/data/data
to make it work. Indeed, the path to the data in the .h5 is '/entry/data/data' and it exists when I check. But when I tested the xarray code section alone, it had worked. Anyways, I am confused now.Could you help me to learn how to do it correctly, please? Thank you.
Beta Was this translation helpful? Give feedback.
All reactions