【问题标题】:Combining temp/lat/lon netcdf files via nco通过 nco 组合 temp/lat/lon netcdf 文件
【发布时间】:2016-12-09 16:22:18
【问题描述】:

我正在尝试根据每日最高和每日最低 netcdf 文件计算平均每日平均温度,因此执行了以下任务。但这并没有给我结果。你能帮我解决这个问题吗?

C:\nco>ncks -A G:\CORDEX\ACCESS1-0\RCP45\tasmin.nc G:\CORDEX\ACCESS1-0\RCP45\tasmax.nc

已复制 1 个文件。 已移动 1 个文件。

C:\nco>ncap2 -s "tasavg=(tasmin+tasmax)/2" G:\CORDEX\ACCESS1-0\RCP45\tasmax.nc G:\CORDEX\ACCESS1-0\RCP45\tasavg.nc

ncap2: ERROR malloc() returns error on Unable to malloc() value buffer when retrieving variable from disk request for 985675200 B = 962573 k
B = 940 MB = 0 GB
ncap2: malloc() error is "Not enough space"
ncap2: User-supplied supplemental error message is "nco_var_get()"
ncap2: INFO NCO has reported a malloc() failure. malloc() failures usually indicate that your machine does not have enough free memory (RAM+swap) to perform the requested operation. 

你能帮我解决这个问题吗

【问题讨论】:

    标签: nco


    【解决方案1】:

    它清楚地表明 RAM 不够用。您可能需要释放一些内存并尝试运行上述命令。

    【讨论】:

    • 在保持 RAM 不受其他正在运行的程序影响后尝试过,但不起作用
    • 其他选项可能是 (1) 使用 CDO 或 (2) NCL 。 CDO不会出问题
    • 而且 NCL 也很容易使用。不使用 NCO,而是使用以下 CDO 命令 cdo expr,'sum=(var1+var2)/2;' ifile ofile
    猜你喜欢
    • 2015-04-21
    • 2021-09-18
    • 2021-12-23
    • 2018-09-02
    • 1970-01-01
    • 2018-09-05
    • 2016-02-20
    • 2018-02-13
    • 2019-12-18
    相关资源
    最近更新 更多