- 积分
- 999
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2012-5-13
- 最后登录
- 1970-1-1
|

楼主 |
发表于 2017-11-6 13:26:55
|
显示全部楼层
画图脚本如下:::、
;**********set geographic**********
res@mpGridAndLimbOn = True
res@mpGridLineColor = "red"
res@mpGridLatSpacingF = 1
res@mpGridLonSpacingF = 1
res@mpGridLineDashPattern = 16
res@mpGridLineThicknessF = 0.2
res@mpMaxLatF = 37
res@mpMinLatF = 31
res@mpMaxLonF = 117
res@mpMinLonF = 109
;******set map**********
res@mpDataSetName = "Earth..4"
res@mpDataBaseVersion = "MediumRes" ; or "Ncarg4_1"
res@mpAreaMaskingOn = True
res@mpOutlineOn = True
res@mpMaskAreaSpecifiers = (/"China:henan"/)
res@mpOutlineSpecifiers = (/"China:henan"/)
res@mpOceanFillColor = 0
res@mpInlandWaterFillColor = 0
res@mpLandFillColor = 0
res@mpOutlineBoundarySets = "NoBoundaries"
res@mpShapeMode = "FreeAspect"
res@mpFillDrawOrder = "PostDraw"
res@tmXBLabelFontHeightF = 0.018
res@cnLinesOn = False
res@cnFillOn = True
res@cnLineColor = "white"
res@cnLineThicknessF = 0.5
res@lbOrientation = "Vertical" ; 麓鹿直掳诜?
res@cnLevelSelectionMode = "ExplicitLevels"
; res@cnMinLevelValF = 0
res@cnFillDrawOrder = "PreDraw"
res@cnFillDrawOrder = "PreDraw"
; add China map
;>------------------------------------------------------------<
cnres = True
cnres@china = True ;draw china map or not
cnres@river = False ;draw changjiang&huanghe or not
cnres@province = False ;draw province boundary or not
cnres@nanhai = False ;draw nanhai or not
cnres@diqu = True ; draw diqujie or not
;;;*************draw pols!**********
res@cnLevels = (/0,10,20,30,40,45,50,55,60,65,70,75,80,90,100,115,130,140,150,160,170,175,180,190,200,220,240,250,270,290,300,500/)
res@cnExplicitLabelBarLabelsOn= True
res@lbLabelStrings = (/"0","","","","","","50","","","","","","","","100","","","","150","","","","","","200","","","","","","300",""/)
plot = gsn_csm_contour_map (wks,var,res)
chinamap = add_china_map(wks,plot,cnres)
draw(plot)
frame(wks) |
|