- 积分
- 363
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2015-11-6
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
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]数组应该不大吧?求各位大神指教?
|
|