我尝试使用ncks将时间设置为一个大文件(14 GB)中的记录维度,但得到以下错误
$ ncks -O --mk_rec_dmn time vorticity_1979_1.40625deg.nc test.nc
nco_def_var_chunking(): ERROR Total requested chunk size = 14926479360 exceeds netCDF
maximium-supported chunk size = 4294967295
nco_err_exit(): ERROR Short NCO-generated message (usually name of function that triggered
error): nco_def_var_chunking()
nco_err_exit(): ERROR Error code is -127. Translation into English with nc_strerror(-127) is
"NetCDF: Bad chunk sizes."
nco_err_exit(): ERROR NCO will now exit with system call exit(EXIT_FAILURE)发布于 2020-10-10 13:25:22
我可以使用下面的命令解决这个问题
ncks -6 -O --mk_rec_dmn time vorticity_1979_1.40625deg.nc test.nc发布于 2020-10-12 01:31:29
不确定为什么它会自动选择太大的块大小。将格式更改为netCDF-64位是可行的,因为这样就不会出现分块问题。我认为,您也可以通过显式地将块大小设置为例如单个时间步的大小,来保持格式为netCDF4
ncks -O --cnk_dmn time,1 --mk_rec_dmn time vorticity_1979_1.40625deg.nc test.nchttps://stackoverflow.com/questions/64290269
复制相似问题