- 积分
- 315
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2016-4-27
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
本帖最后由 sourpomelo 于 2020-12-30 10:40 编辑
我在ncl中创建内存文件时出现了错误:fatal:Could not create (chooseddistance.nc),我第一反应是内存不够了,但是用free查看发现内存够用这是怎么回事呢?求各位大神解救
以下是ncl程序:
f := addfile("cov_4d.nc","r")
cov_4d = f->cov_4d
lat = f->lat
lon = f->lon
f := addfile("dist.nc","r")
dist_4d = f->dist
copy_VarCoords(cov_4d,dist_4d)
f := addfile("/wind1/home/17shixy/sunwb/reconstructure/low_frequency/data.nc","r")
data = f->data
f := addfile("/wind1/home/17shixy/sunwb/reconstructure/high_frequency/1979-2018_modes_operational/masked_reSAT_15yr_2minyrfilter_0.2crit.nc","r")
masked_reSAT = f->masked_reSAT2
masked_reSAT(:,{-90:-60},:) = masked_reSAT@_FillValue
choosed_distance = new((/2028,36,72,36,72/),float)
choosed_distance!0 = "time"
choosed_distance!1 = "lat1"
choosed_distance!2 = "lon1"
choosed_distance!3 = "lat2"
choosed_distance!4 = "lon2"
choosed_distance&lat1 = lat
choosed_distance&lon1 = lon
choosed_distance&lat2 = lat
choosed_distance&lon2 = lon
do t = 0,2027
do i = 0,35
do j = 0,71
choosed_distance(t,i,j,:,:) = where((.not.ismissing(data(t,:,:))) .and. (.not.ismissing(masked_reSAT(t,i,j))), dist_4d(i,j,:,:),data@_FillValue)
end do
end do
end do
system("/bim/rm chooseddistance.nc")
setfileoption("nc","Format","LargeFile")
fout = addfile("chooseddistance.nc","c")
fout->choosed_distance = choosed_distance
fout->lat = lat
fout->lon = lon
|
-
|