- 积分
- 4690
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2013-6-7
- 最后登录
- 1970-1-1
|
楼主 |
发表于 2016-1-8 20:17:11
|
显示全部楼层
附上我的resource:
res = True
res@tiMainString ="china_map"
res@gsnMaximize = True
res@gsnDraw = False
res@gsnFrame = False
res@tmXTOn=False
res@tmYROn=False
res@cnLevelSelectionMode = "ExplicitLevels"
res@cnLevels =(/-0.5,-0.4,-0.3,-0.2,-0.1,0,0.1,0.2,0.3,0.4,0.5/)
;>--------------------------------------------<
; set for the map
;>--------------------------------------------<
res@mpMinLatF = 17.
res@mpMaxLatF = 55.
res@mpMinLonF = 72.
res@mpMaxLonF = 136.
res@mpFillOn = True
res@mpOutlineOn = False ; Use outlines from shapefile
res@cnFillDrawOrder = "PreDraw"
res@mpDataBaseVersion = "MediumRes"
res@mpDataSetName = "Earth..4"
res@mpAreaMaskingOn = True
res@mpMaskAreaSpecifiers = (/"China","Taiwan","Disputed area between India and China","India:Arunachal Pradesh"/)
res@mpLandFillColor = "white"
res@mpInlandWaterFillColor = "white"
res@mpOceanFillColor = "white"
res@mpOutlineBoundarySets = "NoBoundaries"
;>--------------------------------------------<
; set for the plot
res@cnFillOn = True
res@cnLinesOn = True
res@cnLineColor="red"
res@cnLineThicknessF =2.0
res@cnLineLabelsOn = True
res@cnLineLabelFormat ="@^sg"
res@cnLineLabelInterval=1
res@gsnSpreadColors = True
res@lbLabelAutoStride = True
map=gsn_csm_contour_map(wks,r1,res)
;>============================================================<
; add China map
;>------------------------------------------------------------<
cnres = True
cnres@china = True ;draw china map or not
cnres@river = True ;draw changjiang&huanghe or not
cnres@province = True ;draw province boundary or not
cnres@nanhai = True ;draw nanhai or not
cnres@diqu = False ; draw diqujie or not
chinamap = add_china_map(wks,map,cnres)
;>============================================================<
draw(map)
frame(wks)
end |
|