-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow track_order to be passed to h5netcdf #7680
Comments
@abunimeh - Thanks for opening this issue. Can you expand on the feature a bit more? What API would you like to see? I suspect this will need to be treated like Lines 1892 to 1895 in 86f3f21
_Note: it would be nice if we had |
First, I totally agree with @jhamman having For the particular use case, netcdf-c/netCDF4-python create HDF5 files (
@abunimeh As a workaround until this is sorted out you could create the file (or subgroup) using import xarray as xr
import h5netcdf
from time import sleep
ds = xr.Dataset(data_vars=dict(hello=(["x"], [1., 1., 1., 1., 1.])))
track_order = False
group = "/track"
with h5netcdf.File("sample1.nc", "a", track_order=track_order) as f1:
if group.split("/")[-1]:
f1.create_group(group)
ds.to_netcdf("sample1.nc", mode="a", engine="h5netcdf", group=group)
sleep(5)
with h5netcdf.File("sample2.nc", "a", track_order=track_order) as f2:
if group.split("/")[-1]:
f2.create_group(group)
ds.to_netcdf("sample2.nc", mode="a", engine="h5netcdf", group=group) Update: Use |
Thanks @kmuehlbauer for explaining this. @jhamman yes, i was hoping that I can pass It would be nice to enhance |
Is your feature request related to a problem?
when using
h5netcdf
as a backend. Writing the same exact content to two different files results in unique md5 checksum for the two identical xarray files.See h5netcdf/h5netcdf#211
Describe the solution you'd like
When saving an nc file. allow
track_order=False
to be passed as an argDescribe alternatives you've considered
using
netcdf4
engineAdditional context
No response
The text was updated successfully, but these errors were encountered: