Skip to content
Hyo-Kyung Lee edited this page Jan 12, 2023 · 11 revisions

NCZarr

Use the following command to test a Zarr file using NCZarr.

$ ncdump -h "file://$PWD/ATL08n.zarr#mode=nczarr"    

The above command throws Segmentation fault 11 for the flattened ATL08 Zarr file that Hyrax fileout_netcdf generated.

Use the following command to generate Zarr from CDL.

$ ncgen -4 -o "file://zarr#mode=nczarr,file" feb.cdl

The output file will be zarr/.

ATL08

ncgen fails to create NCZarr from CDL.

$ ncgen -4 -o "file://zarr#mode=nczarr" ATL08_20181014084920_02400109_003_01.cdl 
ncgen: NetCDF: Invalid dimension size
	(/Users/runner/miniforge3/conda-bld/libnetcdf_1630368167464/work/ncgen/genbin.c:genbin_netcdf:103)

ncks also fails to create NCZarr from HDF5.

$ ncks ATL08_20181014084920_02400109_003_01.h5 "file://foo#mode=nczarr,file"
ERROR: nco_def_dim() cannot define dimension "phony_dim_7" with illegal size = 0L
nco_err_exit(): ERROR Short NCO-generated message (usually name of function that triggered error): nco_def_dim()
nco_err_exit(): ERROR Error code is -63. Translation into English with nc_strerror(-63) is "NetCDF: Invalid dimension size"
nco_err_exit(): ERROR NCO will now exit with system call exit(EXIT_FAILURE)

SMAP

ncgen fails.

$ ncgen -4 -o "file://zarr#mode=nczarr" SMAP_L3_SM_P_20150406_R14010_001.cdl 
ncgen: NetCDF: NCZarr error
	(/Users/runner/miniforge3/conda-bld/libnetcdf_1630368167464/work/ncgen/genbin.c:genbin_netcdf:167)

ncks fails.

$ ncks SMAP_L3_SM_P_20150406_R14010_001.h5 "file://foo#mode=nczarr,file"
nco_err_exit(): ERROR Short NCO-generated message (usually name of function that triggered error): nco_def_var_deflate()
nco_err_exit(): ERROR Error code is -136. Translation into English with nc_strerror(-136) is "NetCDF: Filter error: undefined filter encountered"
nco_err_exit(): ERROR NCO will now exit with system call exit(EXIT_FAILURE)
Clone this wiki locally