- 积分
- 14
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2017-12-8
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
我在使用以下代码读取txt文件时,txt文件中40多行数据读完以后为什么继续读了很多行的“missing”?
代码:
begin
fil = systemfunc("ls /mnt/hgfs/monortm/200*")
print(fil)
do i=0,1029
filename = fil(i)
print(filename)
filename_output = fil(i)+".nc"
print(filename_output)
dt1 = readAsciiTable(filename,12,"string",(/16,16/))
dt1 = str_sub_str(dt1,"C","0")
dt1 = str_sub_str(dt1,"///","0")
print (dt1)
dims1 = dimsizes(dt1)
结果:
Variable: dt1
Type: string
Total Size: 50304 bytes
6288 values
Number of Dimensions: 2
Dimensions and sizes: [524] x [12]
Coordinates:
Number Of Attributes: 1
_FillValue : missing
(0,0) 0 0.0 -13.4 693 46 -22.5 9.1 -13.1 0 0 0000 0000
(0,1) 50 0.1 -10.3 689 49 -18.9 8.6 -9.9 0 0 5000 5000
(0,2) 100 0.3 -10.4 684 46 -19.8 9.4 -10.0 7 2 5000 5000
(0,3) 150 0.4 -10.9 679 44 -20.8 9.9 -10.5 7 2 5000 5000
(0,4) 200 0.5 -11.3 675 43 -21.3 10.0 -10.9 7 2 5000 5000
(0,5) 250 0.7 -11.7 671 43 -21.8 10.1 -11.3 7 2 5001 5000
(0,6) 300 0.8 -12.2 666 43 -22.1 9.9 -11.8 0 0 5001 5000
(0,7) 350 1.0 -12.6 662 44 -22.3 9.7 -12.3 0 0 5001 5000
(0,8) 400 1.1 -13.1 657 45 -22.6 9.5 -12.8 0 0 5001 5000
(0,9) 450 1.2 -13.5 653 45 -22.8 9.3 -13.2 187 2 5001 5000
(0,10) 500 1.4 -14.0 648 47 -22.8 8.8 -13.7 187 2 5001 5000
(0,11) 550 1.5 -14.5 643 53 -21.9 7.4 -14.2 187 2 5000 5000
...
(43,0) 25800 67.9 -52.2 13 6 -72.7 20.5 -51.9 111 20 5186 1501
(43,1) 25850 68.0 -52.2 13 6 -72.7 20.5 -51.9 111 20 5186 1499
(43,2) 25900 68.1 -52.3 13 6 -72.8 20.5 -52.0 111 20 5185 1499
(43,3) 25950 68.3 -52.4 13 6 -72.9 20.5 -52.1 111 20 5185 1499
(43,4) 26000 68.4 -52.3 13 6 -72.8 20.5 -52.0 111 20 5184 1499
(43,5) 26050 68.5 -52.1 13 6 -72.6 20.5 -51.8 111 20 5184 1499
(43,6) 26100 68.6 -52.0 13 6 -72.5 20.5 -51.7 111 20 5184 1499
(43,7) 26150 68.7 -52.0 12 6 -72.5 20.5 -51.7 111 20 5183 1499
(43,8) missing
(43,9) missing
(43,10) missing
(43,11) missing |
|