- 积分
- 157
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2021-5-24
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
本帖最后由 fanlock 于 2022-3-23 23:21 编辑
我在sst数组中给第一维度命名为“mode”,并给mode赋值字符串,但在录入nc文件的时候被提示: an error occurred while adding variable <mode> to file <mod_nino1>, check to make sure data type is supported by the output format。
想问问这种情况怎么才能录入nc文件?
代码如下
begin
f=addfile("G:\NCL\cygwin\home\76588\mod_nino2.nc","r")
sst=f->sst
fpath=systemfunc("ls j:/tos/*/tos_regrid.nc")
delim = "/"
mod_name= str_get_field (fpath, 3, delim)
sst&mode=mod_name
print(sst&mode)
printVarSummary(sst)
system("rm -f ./mod_nino1.nc")
fout=addfile("mod_nino1.nc","c")
fout->sst=sst
end
下图一是字符串,图二是sst数组详情
|
-
-
fig2
|