- 积分
- 43
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2019-5-14
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
本帖最后由 RDSHQEASUIAYRIW 于 2020-8-3 22:17 编辑
刚接触ncl很多都不太会 想要批量读取一个文件夹里的所有二进制文件,一直报错
这是我写的命令:
ncl 0> diri = "/usr/bin/2020/"
ncl 1> filenames = systemfunc("ls " + diri + "PRCP_CU_GAUGE_V1.0GLB_0.50deg.lnx* ")
ncl 2> setfileoption("bin", "ReadByteOrder", "LittleEndian")
ncl 3> ps = fbindirread (filenames, 0, (/213,360,720/), "float")
fatal:Number of elements of dimension (0) of argument (0) is (213) in function ( fbindirread), expected (1) elements
fatal:["Execute.c":8635]:Execute: Error occurred at or near line 3
这是数据的ctl文件
dset E:\ZILIAO\2020\PRCP_CU_GAUGE_V1.0GLB_0.50deg.lnx.%y4%m2%d2.RT
options little_endian template
title global daily analysis (grid box mean, the grid shown is the center of the grid box)
undef -999.0
xdef 720 linear 0.25 0.50
ydef 360 linear -89.75 0.50
zdef 1 linear 1 1
tdef 213 linear 01jan2020 1dy
vars 2
rain 1 00 the grid analysis (0.1mm/day)
gnum 1 00 the number of stn
ENDVARS
求指点呀!
|
|