- 积分
- 2917
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2019-1-19
- 最后登录
- 1970-1-1
|
楼主 |
发表于 2019-9-1 09:56:24
|
显示全部楼层
感谢回复 我按你的方法还是不行 可能是因为剖面图的原因 没有map?感觉没有overlay上
以下是我的脚本
countour_dv = new(3, "graphic")
contour_ter = new(3, "graphic")
vector = new(3, "graphic")
countour_dv(0) = gsn_csm_contour(wks, dv_plane(0:zmax_pos,:), opts_dv)
countour_dv(1) = gsn_csm_contour(wks, dv_plane1(0:zmax_pos1,:), opts_dv1)
countour_dv(2) = gsn_csm_contour(wks, dv_plane2(0:zmax_pos2,:), opts_dv2)
contour_ter(0) = gsn_csm_xy(wks,X_plane,ter_plane,opts_ter)
contour_ter(1) = gsn_csm_xy(wks,X_plane1,ter_plane1,opts_ter1)
contour_ter(2) = gsn_csm_xy(wks,X_plane2,ter_plane2,opts_ter2)
vector(0) = gsn_csm_vector(wks,u_plane(0:zmax_pos,:),w_plane(0:zmax_pos,:)*10.,vcres)
vector(1) = gsn_csm_vector(wks,u_plane1(0:zmax_pos1,:),w_plane1(0:zmax_pos1,:)*10.,vcres1)
vector(2) = gsn_csm_vector(wks,u_plane2(0:zmax_pos2,:),w_plane2(0:zmax_pos2,:)*10.,vcres2)
;plots(0) = wrf_overlays(a,wks,(/countour_dv,vector,contour_ter/),True) ; plot x-section
;plots(1) = wrf_overlays(a1,wks,(/countour_dv1,vector1,contour_ter/),True) ; plot x-section
;plots(2) = wrf_overlays(a2,wks,(/countour_dv2,vector2,contour_ter2/),True) ; plot x-section
overlay(contour_ter(0) , countour_dv(0))
overlay(contour_ter(0), vector(0))
overlay(contour_ter(1) , countour_dv(1))
overlay(contour_ter(1), vector(1))
overlay(contour_ter(2) , countour_dv(2))
overlay(contour_ter(2), vector(2))
; Delete options and fields, so we don't have carry over
delete(opts_xy)
delete(ter_plane)
delete(opts_xy1)
delete(ter_plane1)
delete(opts_xy2)
delete(ter_plane2)
;set panel
pnlres = res
pnlres@gsnPanelCenter = True
pnlres@gsnPanelLabelBar = True
pnlres@lbOrientation = "Vertical"
pnlres@lbLabelPosition = "Right"
pnlres@pmLabelBarParallelPosF = 0.0
pnlres@pmLabelBarOrthogonalPosF = 0.0
pnlres@pmLabelBarWidthF = 0.05
pnlres@pmLabelBarHeightF = 0.15
pnlres@gsnPanelRowSpec = True
pnlres@gsnPanelYWhiteSpacePercent = 5
pnlres@gsnPanelScalePlotIndex = 1
pnlres@amJust = "TopLeft"
gsn_panel(wks, contour_ter, (/3/), pnlres)
end出图如下:
|
-
|