- 积分
- 334
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2016-2-27
- 最后登录
- 1970-1-1
|
发表于 2017-5-24 20:54:35
|
显示全部楼层
在某个相似贴里回复过,为了方便大家查找吧,贴一下我之前的回复,以及别人的好答案
;--------------分割------------------
简单说来,是用polyline函数
举个栗子
wks=...
res=True
...
res@cnFillDrawOrder="Predraw"
plot=gsn_csm_contour_map(wks,tp(0,:,:),res)
a1=23.4
a2=27.6
b1=114.4
b2=120.2
pglat=(/a1,a2,a2,a1,a1/)
pglon=(/b1,b1,b2,b2,b1/)
;对应矩形四个角的坐标(注意闭合)
gsres=True
gsres@gsLineThicknessF =10. ;线粗细
gsres@gsLineColor="Red"
ab=gsn_add_polyline(wks,plot,pglon,pglat,gsres) ;to overlay the rectangular to the contour
draw(plot)
frame(wks)
;-----------------分割----------------------
一位站友(忘记ID了)
推荐网页学习各类标记
http://www.ncl.ucar.edu/Applications/polyg.shtml
|
|