Replies: 3 comments 14 replies
-
@bmcandr, which version of zarr are you using? I'm asking because I am unable to reproduce the issue on my end: In [6]: ds
Out[6]:
<xarray.Dataset>
Dimensions: (time: 36, x: 275, y: 205)
Coordinates:
* time (time) object 1980-09-16 12:00:00 ... 1983-08-17 00:00:00
xc (y, x) float64 ...
yc (y, x) float64 ...
Dimensions without coordinates: x, y
Data variables:
SoilMoist_tavg (time, y, x) float64 ...
Attributes:
title: /workspace/jhamman/processed/R1002RBRxaaa01a/l...
institution: U.W.
source: RACM R1002RBRxaaa01a
output_frequency: daily
output_mode: averaged
convention: CF-1.4
references: Based on the initial model of Liang et al., 19...
comment: Output from the Variable Infiltration Capacity...
nco_openmp_thread_number: 1
NCO: "4.6.0"
history: Tue Dec 27 14:15:22 2016: ncatted -a dimension...
In [7]: ds.to_zarr('test.zarr', consolidated=True, mode='w')
Out[7]: <xarray.backends.zarr.ZarrStore at 0x2b93487d8e80>
In [8]: xr.open_zarr('test.zarr', consolidated=True)
Out[8]:
<xarray.Dataset>
Dimensions: (time: 36, x: 275, y: 205)
Coordinates:
* time (time) object 1980-09-16 12:00:00 ... 1983-08-17 00:00:00
xc (y, x) float64 dask.array<chunksize=(103, 275), meta=np.ndarray>
yc (y, x) float64 dask.array<chunksize=(103, 275), meta=np.ndarray>
Dimensions without coordinates: x, y
Data variables:
SoilMoist_tavg (time, y, x) float64 dask.array<chunksize=(9, 52, 138), meta=np.ndarray>
Attributes:
NCO: "4.6.0"
comment: Output from the Variable Infiltration Capacity...
convention: CF-1.4
history: Tue Dec 27 14:15:22 2016: ncatted -a dimension...
institution: U.W.
nco_openmp_thread_number: 1
output_frequency: daily
output_mode: averaged
references: Based on the initial model of Liang et al., 19...
source: RACM R1002RBRxaaa01a
title: /workspace/jhamman/processed/R1002RBRxaaa01a/l...
In [9]: import zarr
In [10]: zarr.__version__
Out[10]: '2.8.1'
In [11]: xr.__version__
Out[11]: '0.17.0' |
Beta Was this translation helpful? Give feedback.
13 replies
-
Perhaps related to s3fs normalizing path names somehow? cc @martindurant |
Beta Was this translation helpful? Give feedback.
1 reply
-
This should be fixed now (#5028 (comment)) |
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.
-
After converting a multi-file NetCDF dataset to a consolidated Zarr store using xarray's
to_zarr()
function, I noticed that the variable names were converted from mixed-case to lowercase (e.g.,SoilMoist_tavg
becamesoilmoist_tavg
).open_mfdataset()
:open_zarr()
:The sample variable lists above appear different because the change in case results in a change in alphabetic sorting. All the variable fields from the NetCDF are present, however.
Some notes:
Let me know if there is any additional information I can provide.
Beta Was this translation helpful? Give feedback.
All reactions