You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we need to know the order of dims when using region in to_zarr. Generally in xarray we're fine with the order, because we have the names, so this is a bit of an aberration. It means that code needs to carry around the correct order of dims.
Here's an MCVE:
ds=xr.tutorial.load_dataset('air_temperature')
ds.to_zarr('foo', mode='w')
ds.transpose(..., 'lat').to_zarr('foo', mode='r+')
# ValueError: variable 'air' already exists with different dimension names ('time', 'lat', 'lon') != ('time', 'lon', 'lat'), but changing variable dimensions is not supported by to_zarr().
Describe the solution you'd like
I think we should be able to transpose them based on the target?
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem?
Currently we need to know the order of dims when using
region
into_zarr
. Generally in xarray we're fine with the order, because we have the names, so this is a bit of an aberration. It means that code needs to carry around the correct order of dims.Here's an MCVE:
Describe the solution you'd like
I think we should be able to transpose them based on the target?
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: