- 积分
- 561
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2014-4-15
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
求助攻~我想批量读取外接设备里wrfout文件,就在pc上装了Ubuntu,安了ncl,可以正常运行ncl。然后用之前在学校大型机上可以顺利运行的一个脚本,但是到Ubuntu就不行了。看报错应该是[size=14.3999996185303px]WRFUserARW.ncl有问题,重新安装过ncl,依旧没有解决。外接硬盘已经连上ubuntu了,数据量比较大,10T左右,上传大型机实在太耗时间和空间了,所以想用pc读出里面的数据。脚本报错已附上,到底哪里出了问题?
附上脚本:
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/wrf/WRF_contributed.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl"
begin
;************************************************
; open file and read in data
;************************************************
files = systemfunc("ls -1 /media/jmw/2013_b/WRF_2013/2/00/wrfout_d02_2013-02-01*")
f = addfiles(files,"r")
times = wrf_user_getvar(f,"times",-1) ; get times in the file
ntimes = dimsizes(times) ; number of times in the file
x = wrf_user_getvar(f,"W",-1)
;do it = 24,ntimes-1,6
;print (x(it,:,:,:))
;end do
print(x(:,0,118,32))
end
附上报错:(有些长==)
Copyright (C) 1995-2013 - All Rights Reserved
University Corporation for Atmospheric Research
NCAR Command Language Version 6.1.2
The use of this software is governed by a License Agreement.
See http://www.ncl.ucar.edu/ for more details.
fatal:syntax error: line 272 in file $NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl before or near \n
copy_VarAtts(var3d,var3)
-----------------------------^
fatal:syntax error: possibly an undefined procedure
fatal:syntax error: line 274 in file $NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl before or near \n
delete_VarAtts(var3,(/"description"/))
---------------------------------------------^
fatal:syntax error: possibly an undefined procedure
fatal:syntax error: line 277 in file $NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl before or near \n
delete_VarAtts(var3,(/"units"/))
---------------------------------------^
fatal:syntax error: possibly an undefined procedure
fatal:syntax error: line 280 in file $NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl before or near \n
delete_VarAtts(var3,(/"MemoryOrder"/))
---------------------------------------------^
fatal:syntax error: possibly an undefined procedure
fatal:syntax error: line 283 in file $NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl before or near \n
delete_VarAtts(var3,(/"_FillValue"/))
--------------------------------------------^
fatal:syntax error: possibly an undefined procedure
fatal:syntax error: line 285 in file $NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl before or near \n
copy_VarAtts(var3,var2d)
-----------------------------^
fatal:syntax error: possibly an undefined procedure
fatal:Syntax Error in block, block not executed
fatal:error at line 438 in file $NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl
fatal:syntax error: line 534 in file $NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl before or near \n
copy_VarAtts(varin,varout)
------------------------------^
fatal:syntax error: possibly an undefined procedure
fatal:syntax error: line 558 in file $NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl before or near \n
copy_VarAtts(varin,varout)
------------------------------^
fatal:syntax error: possibly an undefined procedure
fatal:syntax error: line 579 in file $NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl before or near \n
copy_VarAtts(varin,varout)
------------------------------^
fatal:syntax error: possibly an undefined procedure
fatal:Syntax Error in block, block not executed
fatal:error at line 591 in file $NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl
fatal:syntax error: line 734 in file $NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl before or near \n
delete_VarAtts(u,(/"description","units"/))
----------------------------------------------------^
fatal:syntax error: possibly an undefined procedure
fatal:syntax error: line 735 in file $NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl before or near \n
copy_VarAtts(u,uvmet)
------------------------------^
fatal:syntax error: possibly an undefined procedure
fatal:syntax error: line 797 in file $NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl before or near \n
delete_VarAtts(u,(/"description","units"/))
----------------------------------------------------^
fatal:syntax error: possibly an undefined procedure
fatal:syntax error: line 798 in file $NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl before or near \n
copy_VarAtts(u,uvmet)
------------------------------^
fatal:syntax error: possibly an undefined procedure
fatal:syntax error: line 1047 in file $NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl before or near \n
delete_VarAtts(T,(/"description"/))
--------------------------------------------^
fatal:syntax error: possibly an undefined procedure
fatal:syntax error: line 1048 in file $NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl before or near \n
copy_VarAtts(T,t)
--------------------------^
fatal:syntax error: possibly an undefined procedure
fatal:syntax error: line 1108 in file $NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl before or near \n
delete_VarAtts(T,(/"description"/))
--------------------------------------------^
fatal:syntax error: possibly an undefined procedure
fatal:syntax error: line 1109 in file $NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl before or near \n
copy_VarAtts(T,eth)
----------------------------^
fatal:syntax error: possibly an undefined procedure
fatal:syntax error: line 1145 in file $NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl before or near \n
delete_VarAtts(QVAPOR,(/"description","units"/))
-------------------------------------------------------^
fatal:syntax error: possibly an undefined procedure
fatal:syntax error: line 1146 in file $NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl before or near \n
copy_VarAtts(QVAPOR,td)
------------------------------^
fatal:syntax error: possibly an undefined procedure
fatal:syntax error: line 1172 in file $NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl before or near \n
delete_VarAtts(Q2,(/"description","units"/))
---------------------------------------------------^
fatal:syntax error: possibly an undefined procedure
fatal:syntax error: line 1173 in file $NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl before or near \n
copy_VarAtts(Q2,td)
--------------------------^
fatal:syntax error: possibly an undefined procedure
fatal:syntax error: line 1225 in file $NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl before or near \n
delete_VarAtts(T,(/"description","units"/))
----------------------------------------------------^
fatal:syntax error: possibly an undefined procedure
fatal:syntax error: line 1226 in file $NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl before or near \n
copy_VarAtts(T,slp)
----------------------------^
fatal:syntax error: possibly an undefined procedure
fatal:syntax error: line 1285 in file $NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl before or near \n
delete_VarAtts(T,(/"description","units"/))
----------------------------------------------------^
fatal:syntax error: possibly an undefined procedure
fatal:syntax error: line 1286 in file $NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl before or near \n
copy_VarAtts(T,rh)
---------------------------^
fatal:syntax error: possibly an undefined procedure
fatal:syntax error: line 1336 in file $NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl before or near \n
delete_VarAtts(T2,(/"description","units"/))
-----------------------------------------------------^
fatal:syntax error: possibly an undefined procedure
fatal:syntax error: line 1337 in file $NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl before or near \n
copy_VarAtts(T2,rh)
----------------------------^
fatal:syntax error: possibly an undefined procedure
fatal:syntax error: line 1416 in file $NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl before or near \n
delete_VarAtts(T,(/"description","units"/))
--------------------------------------------------^
fatal:syntax error: possibly an undefined procedure
fatal:syntax error: line 1417 in file $NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl before or near \n
copy_VarAtts(T,pvo)
--------------------------^
fatal:syntax error: possibly an undefined procedure
fatal:syntax error: line 1462 in file $NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl before or near \n
delete_VarAtts(COR,(/"description","units"/))
----------------------------------------------------^
fatal:syntax error: possibly an undefined procedure
fatal:syntax error: line 1463 in file $NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl before or near \n
copy_VarAtts(COR,avo)
----------------------------^
fatal:syntax error: possibly an undefined procedure
fatal:syntax error: line 1561 in file $NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl before or near \n
delete_VarAtts(T,(/"description","units"/))
--------------------------------------------------^
fatal:syntax error: possibly an undefined procedure
fatal:syntax error: line 1562 in file $NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl before or near \n
copy_VarAtts(T,dbz)
--------------------------^
fatal:syntax error: possibly an undefined procedure
fatal:syntax error: line 1586 in file $NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl before or near \n
copy_VarAtts(dbz,mdbz)
-------------------------------^
fatal:syntax error: possibly an undefined procedure
fatal:syntax error: line 1652 in file $NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl before or near \n
delete_VarAtts(T,(/"MemoryOrder"/))
--------------------------------------------^
fatal:syntax error: possibly an undefined procedure
fatal:syntax error: line 1656 in file $NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl before or near \n
delete_VarAtts(T,(/"description","units"/))
--------------------------------------------------^
fatal:syntax error: possibly an undefined procedure
fatal:syntax error: line 1657 in file $NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl before or near \n
copy_VarAtts(T,cape)
---------------------------^
fatal:syntax error: possibly an undefined procedure
fatal:syntax error: line 1928 in file $NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl before or near \n
delete_VarAtts(T,(/"description"/))
------------------------------------------^
fatal:syntax error: possibly an undefined procedure
fatal:syntax error: line 1929 in file $NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl before or near \n
copy_VarAtts(T,twb)
--------------------------^
fatal:syntax error: possibly an undefined procedure
fatal:syntax error: line 1972 in file $NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl before or near \n
delete_VarAtts(T,(/"description","units"/))
--------------------------------------------------^
fatal:syntax error: possibly an undefined procedure
fatal:syntax error: line 1973 in file $NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl before or near \n
copy_VarAtts(T,omg)
--------------------------^
fatal:syntax error: possibly an undefined procedure
fatal:syntax error: line 2011 in file $NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl before or near \n
delete_VarAtts(T,(/"description"/))
------------------------------------------^
fatal:syntax error: possibly an undefined procedure
fatal:syntax error: line 2012 in file $NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl before or near \n
copy_VarAtts(T,tv)
-------------------------^
fatal:syntax error: possibly an undefined procedure
fatal:syntax error: line 2148 in file $NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl before or near \n
delete_VarAtts(T,(/"description","units"/))
--------------------------------------------------^
fatal:syntax error: possibly an undefined procedure
fatal:syntax error: line 2149 in file $NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl before or near \n
copy_VarAtts(T,fctt)
---------------------------^
fatal:syntax error: possibly an undefined procedure
fatal:Syntax Error in block, block not executed
fatal:error at line 2246 in file $NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl
fatal:syntax error: line 2889 in file $NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl before or near \n
copy_VarMeta(field,field_out)
-------------------------------^
fatal:syntax error: possibly an undefined procedure
fatal:Syntax Error in block, block not executed
fatal:error at line 2898 in file $NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl
fatal:Undefined identifier: (wrf_user_getvar) is undefined, can't continue
fatal:["Execute.c":8128]:Execute: Error occurred at or near line 14 in file ti_qu_shu_ju_Original.ncl
|
|