- 积分
- 179
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2011-7-4
- 最后登录
- 1970-1-1
|
发表于 2013-7-25 18:05:32
|
显示全部楼层
云南那块儿 好像有问题?不知道是不是这样,而且我在后面加了省界线,也没有显示
wks_type = "png"
wks = gsn_open_wks(wks_type,argu(1))
gsn_define_colormap(wks,"precip4_11lev")
; gsn_draw_colormap(wks)
res = True
res@gsnAddCyclic = False
res@mpDataSetName = "Earth..4"
res@cnFillDrawOrder = "PreDraw"
res@mpDataBaseVersion = "MediumRes"
; res@mpOutlineOn = False
res@mpOutlineOn = True
res@mpOutlineColor = 0
; res@mpOutlineSpecifiers = (/"China:states","Taiwan"/)
res@mpOutlineSpecifiers = (/"China","Taiwan","Disputed area between India and China","India:Arunachal Pradesh"/)
res@mpMinLatF = 17 ; Asia limits
res@mpMaxLatF = 53
res@mpMinLonF = 75
res@mpMaxLonF = 135
res@mpGeophysicalLineThicknessF= 1.
res@mpNationalLineThicknessF= 1.
res@mpProjection = "LambertConformal" ;?录虏庐???露?掳
res@mpLambertMeridianF = 105
res@mpLimitMode = "LatLon"
res@mpLambertParallel1F = 29
res@mpLambertParallel2F = 29
res@mpAreaMaskingOn = True
; res@mpMaskAreaSpecifiers = (/"China:states","Taiwan"/)
res@mpMaskAreaSpecifiers = (/"China","Taiwan","Disputed area between India and China","India:Arunachal Pradesh"/)
res@mpLandFillColor = "white"
res@mpOceanFillColor = 0
res@mpInlandWaterFillColor = 0
res@cnFillOn = True
res@cnLinesOn = False
res@cnLineLabelsOn = False
res@cnFillDrawOrder = "PreDraw"
res@cnLevelSelectionMode = "ExplicitLevels"
res@cnLevels = (/0.1, 10.0, 25., 50.0, 100.0 ,250.0/)
res@lbLabelBarOn = True
res@lbLabelStrings = (/"0.1","10","25","50","100","250"/)
res@lbOrientation = "vertical" ; vertical label bar
res@tiMainFont = "helvetica"
res@tiMainOffsetYF = 0.02 ;set place for main title along Y,offset
res@tiMainFontHeightF = 0.02 ;set main title font size
res@tiMainString = argu(1)
; res@tiMainString = argu(0)
plot = gsn_csm_contour_map(wks,data1,res)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
cnres = True
cnres@china = True
cnres@river = True
cnres@province = True
cnres@nanhai = True
cnres@diqu = False
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; plot = gsn_csm_contour_map(wks,data1,res)
chinamap = add_china_map(wks,plot,cnres)
; ADD Yellow River and Yangtze River
; res for following lines
resline = True
resline@gsLineThicknessF = 2.0 ; thickness of lines
resline@gsLineColor = 6
; Yangtze River
Yangtze = asciiread("Yangtze.ascii",(/73,2/),"float")
dum1 = new(dimsizes(Yangtze(:,0)),graphic)
n=dimsizes(Yangtze(:,0))
do i = 0 ,n-2
dum1(i) = gsn_add_polyline(wks,plot,Yangtze(i:i+1,0),Yangtze(i:i+1,1),resline)
end do
; Yellow River
Yellow = asciiread("Yellow.ascii",(/75,2/),"float")
dum2 = new(dimsizes(Yellow(:,0)),graphic)
n2=dimsizes(Yellow(:,0))
do j = 0 ,n2-2
; dum2(j) = gsn_add_polyline(wks,plot,Yellow(j:j+1,0),Yellow(j:j+1,1),resline)
dum2(j) = gsn_add_polyline(wks,plot,Yellow(j:j+1,0),Yellow(j:j+1,1),resline)
end do
|
|