Open dschlaep opened 1 month ago
Example: convert domain.nc into NCZarr
ncdump tests/example/Input_nc/domain.nc > domain.cdl
ncgen -4 -b -o file://domain.nczarr#mode=nczarr,file domain.cdl
ncdump file://domain.nczarr#mode=nczarr,file > domain_nczarr.cdl
See https://docs.unidata.ucar.edu/nug/current/nczarr_head.html
As of netcdf-c v4.9.2: "NCZarr currently is not thread-safe. So any attempt to use it with parallelism, including MPIO, is likely to fail."
"Note specifically that there is no NC_NCZARR flag for the mode argument of nc_create or nc_open. In this case, it is indicated by the URL path."
-> Replace
"fileName"
with"file://fileName#mode=nczarr,file"
or"file://fileName#mode=nczarr,zip"
for creating withnc_create(fileName, ...)
and opening withnc_open(fileName, ...)