- 积分
- 5723
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2015-1-6
- 最后登录
- 1970-1-1
|
发表于 2016-6-25 13:53:24
|
显示全部楼层
sorry,我一开始理解错你的意思了,但读两个文件名还是很容易的
read.ncl
begin
diri = "/cma/g3/shenxsh/wanghao/exercise/zxholystar/"
params = systemfunc("ls "+diri+"trecout.txt")
fl = asciiread(params,(/2,1/),"string")
print(fl)
end
结果:
Variable: fl
Type: string
Total Size: 16 bytes
2 values
Number of Dimensions: 2
Dimensions and sizes: [2] x [1]
Coordinates:
Number Of Attributes: 1
_FillValue : missing
(0,0) HS_H08_20160513_0740_B14_FLDK_R20_EXPTRO_F000M_SX.bin
(1,0) HS_H08_20160513_0740_B14_FLDK_R20_EXPTRO_F000M_WX.bin
这就行了啊 |
|