- 积分
- 9405
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2013-2-6
- 最后登录
- 1970-1-1
|
发表于 2017-3-15 19:36:11
|
显示全部楼层
res = True
res@cnLevelSelectionMode = "ManualLevels"
res@cnFillOn =True ; 打开颜色填色
res@cnLinesOn = False ; 关闭等值线线条
res@lbLabelBarOn =False ; turn off label bar
res@gsnContourNegLineDashPattern = 1 ; sets negative contours to dash pattern 1负值画虚线线
res@cnLineLabelsOn =False
res@cnMinLevelValF = -1; Min contour
res@cnMaxLevelValF = 1 ; Max contour
res@cnLevelSpacingF = 0.1 ; Spacing
res@cnSmoothingOn = True
res@gsnDraw = False ; Do not draw plot
res@gsnFrame = False ; Do not advance frome
res@gsnAddCyclic = False ;由于我们的数据不是循环地球一周的,因此必须把这个置否
res@mpDataBaseVersion="Ncarg4_1"
res@mpDataSetName = "Earth..4" ; This new database contains
res@cnFillDrawOrder = "PreDraw"
res@mpDataBaseVersion = "MediumRes" ; Medium resolution database
res@mpOutlineOn = True ; Turn on map outlines
res@mpOutlineSpecifiers = (/"China:states","Taiwan","Disputed area between India and China","India:Arunachal Pradesh"/)
res@mpLambertMeridianF = 105.0
res@mpLimitMode = "LatLon"
res@cnLabelDrawOrder ="PreDraw"
res@mpAreaMaskingOn = True ;使能填充覆盖
;res@mpMaskAreaSpecifiers = (/"China","Taiwan","Disputed area between India and China","India:Arunachal Pradesh"/)
res@mpMaskAreaSpecifiers = (/"China","Taiwan"/)
;填充海洋,内陆等
res@mpLandFillColor = "white"
res@mpInlandWaterFillColor = "white"
res@mpOceanFillColor = "white"
;
;设置中国范围
res@pmTickMarkDisplayMode="Always"
res@mpMinLatF = 5.0 ; Asia limits
res@mpMaxLatF = 55.0
res@mpMinLonF = 72.0
res@mpMaxLonF = 136.0
res@lbLabelBarOn = False ;LabelBar显示
res1 = True
res1@cnFillOn = False ; turn on color
res1@cnLinesOn = True ; turn off contour lines
res1@cnLineLabelsOn = False ; turn off contour line labels
res1@gsnContourNegLineDashPattern = 1
res1@lbLabelBarOn = False
res1@gsnAddCyclic =False
res1@cnLevelSelectionMode = "ManualLevels"
res1@cnFillMode = "RasterFill"
res1@cnRasterSmoothingOn = True
res1@cnLevelSpacingF = 0.2; Spacing
res1@cnConstFLabelOn =False
res1@cnInfoLabelOn =False
res1@gsnDraw = False ; Do not draw plot
res1@gsnFrame = False ; Do not advance frome
res1@cnFillDrawOrder= "PreDraw"
resP = True ; modify the panel plot
resP@gsnMaximize = True ; large format
resP@gsnPanelLabelBar = True ; add common colorbar
resP@lbLabelAutoStride = True ; auto stride on labels
;resP@txString = "2001"
neof=4
plot = new(neof,graphic)
plot2 = new(neof,graphic)
do n=0,neof-1
res@gsnLeftStringFontHeightF= 0.02
plot2(n)=gsn_csm_contour(wks,rc(:,:,n),res1)
plot(n)=gsn_csm_contour_map_ce(wks,prob(:,:,n),res)
overlay(plot(n),plot2(n))
end do
;overlay(plot,plot2)
gsn_panel(wks,plot,(/2,2/),resP)
;***********************************************************
draw(wks)
frame(wks)
end
我等值线叠加了阴影
阴影是 plot(n)=gsn_csm_contour_map_ce(wks,prob(:,:,n),res)
等值线 plot2(n)=gsn_csm_contour(wks,rc(:,:,n),res1)
请问这种情况怎么把等值线超出中国的地方去掉啊?????
|
|