netcdf - 使用 ncks 将时间设置为记录维度的内存错误
问题描述
我正在尝试使用 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)
解决方案
不知道为什么它会自动选择太大的块大小。将格式更改为 netCDF-64 位是可行的,因为这样分块就不是问题了。我认为,您还可以通过将块大小显式设置为例如单个时间步长来保持格式为 netCDF4
ncks -O --cnk_dmn time,1 --mk_rec_dmn time vorticity_1979_1.40625deg.nc test.nc
推荐阅读
- python - 动态指定选项和参数
- scala - 找不到 Scala Play 路由操作
- matlab - vpasolve 返回一个空的 sym 0x1 变量,而系统显然有一个解决方案(Matlab)
- python - 数组大小差异Python
- c# - 如何在文本框中显示与控件相对应的文本?
- java - Hibernate 搜索手动索引
- nginx - Nginx 区域(limit_conn_zone 或 limit_req_zone)是否可以独立应用于多个位置,或者它们是否冲突?
- shell - Shell:如何正确确定文件是否包含一个或多个空字符?
- sql-server - 将数据类型 nvarchar 转换为数字时出错 - 排序规则
- r - 如何在R中绘制美国多个州的轮廓?