Replies: 3 comments 17 replies
-
There is no "open hdf5" but you can do it manually. Use |
Beta Was this translation helpful? Give feedback.
-
Depending on how many variables you want, you can also use one of the netcdf engines to read a group-path/variable at a time into DataSets, which you'll then have to manually manipulate a bunch to get coordinates and dimensions right and merge into a single DataSet. |
Beta Was this translation helpful? Give feedback.
-
Hi there, I'm coming back to this topic because I had a similar question about the recommended way to open a single hdf5 group in xarray. On the Reading and Writing page of docs I noticed that HDF5 is primarily mentioned in the chunking section, and once in comparison to netCDF4. Using a sort of "guess and check" method I figured out that you can open a particular HDF5 group using the same syntax described in the netCDF4 groups section:
Is that the recommended way to open a single HDF5 group in xarray? If so, would it make sense to add an "HDF5" section to the Reading and Writing docs page? I would be happy to submit a draft PR for review. Main points would be something like:
|
Beta Was this translation helpful? Give feedback.
-
I am wondering is there any way to use HDF files in xarray? For example, MOD06 files of the MODIS cloud dataset consist of multiple satellite swaths over a region given in multiple files, Is there anyway to open it using xarray and handle it as a xr.dataset?.
Beta Was this translation helpful? Give feedback.
All reactions