- 积分
- 1868
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2015-1-1
- 最后登录
- 1970-1-1
|
楼主 |
发表于 2019-1-16 14:47:51
|
显示全部楼层
您好,修改了一下,好像读取到数据了,不过由于列数不同,显示有缺省值:
xp = asciiread("D:/TPV/first/TPV_SELECTED/weakyeartxt/eastward/xp222.csv", -1, "string")
delim = ","
strs = str_split_csv(xp, delim,0)
print(strs)
xp2 = tofloat(str_get_field(strs, 1, delim))
Coordinates:
Number Of Attributes: 1
_FillValue : missing
(0,0) 95
(0,1) 95.89
(0,2) 97.94
(0,3) 100
(0,4) 101.96
(0,5) 103
(0,6) 105
(0,7) 105.96
(0,8) 107.01
(0,9) 108.95
(0,10) 110.91
(0,11) 115.36
(0,12) 117.46
(0,13) 121.43
(0,14) 123.43
(0,15) missing
(0,16) missing
(0,17) missing
(0,18) missing
(0,19) missing
绘图时,报错提示:
fatal:Number of subscripts do not match number of dimensions of variable,(2) Subscripts used, (1) Subscripts expected
fatal:["Execute.c":8575]:Execute: Error occurred at or near line 72 in file /cygdrive/d/TPV/first/script3/track.ncl
感觉是这一部分写错了:
do i = 0,40,1
pres = True ; polyline resources
pres@gsLineThicknessF = 1.0 ; line thickness
pres@gsLineColor = "black"
line(i) = gsn_add_polyline(wks,map,xp(i,:),yp(i,:),pres) ; draw the traj 这报错了,不知道该如何是好Orz
;Add markers to the trajectories.
mres = True ; marker resources for best track
mres@gsMarkerIndex = 16 ; marker style (filled circle)
mres@gsMarkerSizeF = 4.0 ; marker size
mres@gsMarkerColor = "black" ; maker color
markers(i) = gsn_add_polymarker(wks,map,xp(i,:),yp(i,:),mres)
end do
大神,请问能继续指点一下么QAQ,感谢!
|
-
|