Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to choose output format as NCZarr or netCDF-4 (if netCDF-based) #403

Open
dschlaep opened this issue May 21, 2024 · 1 comment
Open

Comments

@dschlaep
Copy link
Member

dschlaep commented May 21, 2024

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 with nc_create(fileName, ...) and opening with nc_open(fileName, ...)

@dschlaep dschlaep added this to the Release v8.0.0 milestone May 21, 2024
@dschlaep dschlaep changed the title Option to output as NCZarr in addition to netCDF-4 mode Option to choose output format as NCZarr or netCDF-4 (if netCDF-based) Jun 10, 2024
@dschlaep
Copy link
Member Author

dschlaep commented Jul 5, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant