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
The 'example_zarr_py.zarr' folder created has files like '.zarray', '0.0', '0.1'.... (the array data) and does not have a sub-folder with a variable or dataset name or a .zgroup file.
I am trying to read this file using NCZarr.
While I can open this file with:
status = nc_open(FILENAME, NC_NOWRITE, &ncid);
where FILENAME is "file://example_zarr_py.zarr#mode=zarr,file"
I am not sure of how to proceed after this to read the data as the logical next step in netCDF to read a variable is to use 'nc_inq_varid' with the variable name (For example in the example here) or 'nc_inq_var' to get the name of the first variable.
Are these Zarr files with no variable or dataset names and no '.zgroup' files not supported?
If not, how do I read the variable data?
The Python repro code that I posted above is borrowed from the Zarr documentation (https://zarr.readthedocs.io/en/stable/tutorial.html#creating-an-array) from the sections on 'Creating an Array' and 'Reading and writing data'.
I am not sure of what the Zarr v2 spec specifically mentions, but I thought that since this is the first example in the Zarr tutorials, it is allowed.
We do not really need it as of now.
I was trying to experiment with NCZarr by creating files in Python and reading them using NCZarr. The nameless array was one of the first ones I created (by following the tutorial). So I tried to read the data using NCZarr.
NetCDF version: 4.9.0
OS: Linux
I am using Zarr Python to create a Zarr file without a variable name.
My Python code:
The 'example_zarr_py.zarr' folder created has files like '.zarray', '0.0', '0.1'.... (the array data) and does not have a sub-folder with a variable or dataset name or a .zgroup file.
I am trying to read this file using NCZarr.
While I can open this file with:
status = nc_open(FILENAME, NC_NOWRITE, &ncid);
where FILENAME is "file://example_zarr_py.zarr#mode=zarr,file"
I am not sure of how to proceed after this to read the data as the logical next step in netCDF to read a variable is to use 'nc_inq_varid' with the variable name (For example in the example here) or 'nc_inq_var' to get the name of the first variable.
Are these Zarr files with no variable or dataset names and no '.zgroup' files not supported?
If not, how do I read the variable data?
example_zarr_py.zarr.zip
The text was updated successfully, but these errors were encountered: