Order of data in variable of a dataset when using open_mfdataset #5942
Replies: 1 comment 2 replies
-
With
Not really - consistent rules for combining attributes from multiple datasets is a difficult problem in general, and at the moment
What I suggest you try is using the |
Beta Was this translation helpful? Give feedback.
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 xarray-users,
I understand now that with
xr.open_mfdataset
I can open multiple hdf5 files and store the data in a dataset. My hdf5 files don't have labeled dimensions. I get a dataset withI used:
to receive the output at the top.
When I open the hdf5 files, I have 10,10,1 2D numpy arrays, hence
(phony_dim_0: 21)
. But how can I be sure, the 21 2D arrays are in the right order, please? How doesxr.open_mfdataset
keeps the correct order when putting all arrays in one big one together, please?And my second question would be, is there a way to collect the attributes of the different hdf5 wile using
open_mfdataset
and store them as well with the dataset? I have per hdf5 file one attribute with two values.Thank you.
PS: Sorry, if these questions are too easy.
Beta Was this translation helpful? Give feedback.
All reactions