Is it possible to read a compressed Zarr store? #328
-
Is it possible to read a compressed Zarr store at this time? I am attempting to read a simple Zarr store created by the ds = xarray.open_dataset('simple_xy.nc')
ds.to_zarr(<path>, consolidated=True) The Dumping the Zarr store produces incorrect data values: $ ncdump file://zlib.zarr#mode=zarr
netcdf simple_xy_xarray {
dimensions:
x = 6 ;
y = 12 ;
variables:
int data(x, y) ;
data:
data =
70320386, 288, 288, 112, 20, 88, 16793343, 84148994, 151521030, 218893066,
286265102, 353637138,
421009174, 488381210, 555753246, 623125282, 690497318, 757869354,
825241390, 892613426, 959985462, 1027357498, 1094729534, 1162101570,
18246, 83886080, 5290752, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ;
} Reading the data with a modified version of simple_xy_rd.f90 produces the same values as above rather than the expected output: $ ncdump simple_xy.nc
netcdf simple_xy {
dimensions:
x = 6 ;
y = 12 ;
variables:
int data(x, y) ;
data:
data =
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,
12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23,
24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35,
36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47,
48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59,
60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71 ;
} Dumping a Zarr store created with |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 9 replies
-
There is a rather circuitous path. But I need some info. |
Beta Was this translation helpful? Give feedback.
-
Ok. If you install c-blosc, then |
Beta Was this translation helpful? Give feedback.
-
Sort of; they are not offically supported, but do work. |
Beta Was this translation helpful? Give feedback.
-
Let me make sure I understand. |
Beta Was this translation helpful? Give feedback.
-
I do use ref_power_901_constants.zip as one of our test cases. |
Beta Was this translation helpful? Give feedback.
-
I realize I am being imprecise. I am referring to using the netcdf-c main branch. |
Beta Was this translation helpful? Give feedback.
Ok. If you install c-blosc, then
the current master should allow you to read it.