- 积分
- 557
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2018-6-14
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
试过用gsn_polyline的方法添加gsn_polyline(wks,plot,(/36,36/),(/ 1000,10 /),lnres)
lnres="True"
lnres@gsLineThicknessF = 3.0
lnres@gsLineColor = "Red"
;---Draw plot from pole to pole at 170E
plot = gsn_csm_pres_hgt_vector(wks,u(0,:,:,{103}),v(0,:,:,{103}),\
wscale(0,:,:,{103}),res )
draw(plot)
print(plot)
gsn_polyline(wks,plot,(/36,36/),(/ 1000,10 /),lnres)
frame(wks)
end
用print(plot)输出了:
Variable: plot
Type: obj
Total Size: 4 bytes
1 values
Number of Dimensions: 1
Dimensions and sizes: [1]
Coordinates:
Number Of Attributes: 4
data : vector_data scalarFieldClass 9
contour : vector_contour contourPlotClass 11
sfdata : vector_data scalarFieldClass 9
vcdata : vector_data vectorFieldClass 61
但是最终的错误显示为:
fatal:Argument type mismatch on argument (4) of (gsn_polyline) can not coerce
fatal:["Execute.c":8637]:Execute: Error occurred at or near line 76 in file u.ncl
感觉是数组维度 的不匹配,请问应该怎么修改呀?
|
|