爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 7587|回复: 1

NclMalloc Failed:[errno=12]错误

[复制链接]

新浪微博达人勋

发表于 2017-8-16 11:48:26 | 显示全部楼层 |阅读模式

登录后查看更多精彩内容~

您需要 登录 才可以下载或查看,没有帐号?立即注册 新浪微博登陆

x
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"  
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl"
begin
        files = systemfunc("ls /home/zkf/paper/Gt/CMIP5/model/model_*.nc ")
        f   = addfiles(files,"r")
        ListSetType(f,"join")
        ts   = f[:]->TMP
        time = f[0]->time
        lat  = f[0]->lat
        lon  = f[0]->lon
        
        ts!0 = "join"
        ts!1 = "time"
        ts!2 = "lat"
        ts!3 = "lon"
        ts&time = time
        ts&lat  = lat
        ts&lon  = lon
        ts&lat@units = "degrees_north"
        ts&lon@units = "degrees_east"


    ntime = dimsizes(time)
        nlat  = dimsizes(lat)
        nlon  = dimsizes(lon)
        printVarSummary(ts)
        TS = new((/ntime,nlat,nlon/),float)
        TS = dim_avg_n_Wrap(ts(:,:,:,:),0)      ;31行
            exit
终端显示:
Variable: ts
Type: float
Total Size: 1940889600 bytes
            485222400 values
Number of Dimensions: 4
Dimensions and sizes:    [join | 4] x [time | 1872] x [lat | 180] x [lon | 360]
Coordinates:
            time: [674900.5..731809.5]
            lat: [-89.5..89.5]
            lon: [ 0.5..359.5]
Number Of Attributes: 1
  _FillValue :    1e+20

fatal:NclMalloc Failed:[errno=12]
fatal:dim_avg_n: Could not coerce input data to double, can't continue
fatal:["Execute.c":8640]:Execute: Error occurred at or near line 2522 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl

fatal:["Execute.c":8640]:Execute: Error occurred at or near line 31 in file data.ncl
这个错误是跟使用dim_avg_n有关吗,之前也遇到过类是的问题,那是数组太大,但这个[join | 4] x [time | 1872] x [lat | 180] x [lon | 360]数组应该不大吧?求各位大神指教?


密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2021-2-4 17:06:33 | 显示全部楼层
请问您解决了吗,我也遇到了同样的问题
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

快速回复 返回顶部 返回列表