爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 6021|回复: 1

ncl读取某wrfout文件温度T2报错

[复制链接]

新浪微博达人勋

发表于 2019-10-31 12:03:44 | 显示全部楼层 |阅读模式

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

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

x
begin
f = addfile("/gpfs/lyf/wrfout_26/20171212/wrfout_d02_2017-12-13_00:00:00.nc","r")

outdata = f->T2(:,:,82,68)
opt = True
opt@fout = "222.txt"
fmtx = "360f12.3"
write_matrix(outdata,fmtx,opt)
;write_matrix (outdata, "7f7.2", False)
;printVarSummary(outdata)
end
错误显示:

fatal:Number of subscripts do not match number of dimensions of variable, (4) subscripts used, (3) subscripts expected
fatal:["Execute.c":8575]:Execute: Error occurred at or near line 6 in file hy_extract_wrf.ncl
设置变量T就可以,T2就不行
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2019-10-31 17:04:06 | 显示全部楼层
提示的很明显了,T2是单层数据,T是多层数据,他们的维数不一样
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

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

本版积分规则

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

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

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