- 积分
- 341
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2016-8-1
- 最后登录
- 1970-1-1
|

楼主 |
发表于 2020-9-22 20:51:15
|
显示全部楼层
忘了附上代码:
(部分相关的)
res = True ; plot mods desired
res@gsnDraw = False
res@gsnFrame = False ; don't advance yet
res@gsnLeftString ="" ;图左上的数据信息
res@gsnRightString ="" ;图右上的数据信息
tres = res ;上层图与下层图参数一致的部分
res@mpFillOn = True
res@mpOutlineOn = True
res@mpOutlineDrawOrder = "PostDraw"
res@mpOutlineSpecifiers = (/"China","Taiwan","China:Provinces"/)
res@mpNationalLineColor = "black";"grey50" ;"black"
res@mpProvincialLineColor = "grey40";"black"; ;"transparent" ;"black" ;"gray"
res@mpGeophysicalLineColor = "black";"grey50" ;"black"
res@mpNationalLineThicknessF = thicknessF-0.5
res@mpProvincialLineThicknessF = thicknessF-0.5
res@mpGeophysicalLineThicknessF= thicknessF-0.5
res@mpDataBaseVersion = "MediumRes"
res@mpDataSetName = "Earth..4"
res@mpAreaMaskingOn = True
res@mpMaskAreaSpecifiers = (/"China"/)
res@tmXBLabelsOn = True
res@tmXBMode = "Explicit"
res@tmXBValues = (/100,105,110,115,120,125/) ;(/115,120/)
res@tmXBLabels = (/"100~S~o~N~E","105~S~o~N~E","110~S~o~N~E","115~S~o~N~E","120~S~o~N~E","125~S~o~N~E"/) ;(/"115E","120E"/)
res@tmXBMinorValues = (/97.5,102.5,107.5,112.5,117.5,122.5/)
res@tmYLLabelsOn = True
res@tmYLMode = "Explicit"
res@tmYLValues = (/20,25,30,35/) ;/30,35/)
res@tmYLLabels = (/"20~S~o~N~N","25~S~o~N~N","30~S~o~N~N","35~S~o~N~N"/) ;(/"30N","35N"/)
res@tmXBMinorOn = True
res@tmYLMinorValues = (/17.5,22.5,27.5,32.5/)
;--------------------------------------------- shade 参数设置
res@cnLinesOn = False
res@gsnAddCyclic = False
res@cnFillOn = True
res@cnFillDrawOrder = "PreDraw"
res@pmLabelBarWidthF = 0.1
res@lbOrientation = "Vertical"
;res@pmLabelBarHeightF = 0.08
;res@pmLabelBarOrthogonalPosF = 0.15
res@cnLevelSelectionMode = "ExplicitLevels"
res@cnLevels = (/100,500,1000/)
res@cnFillColors = (/12,10,5,3/)
base = gsn_csm_contour_map(wks, pop, res)
;--- 画地形高度等值线
topo_file = "./ETOPO1_Bed_c_gmt4.grd.nc" ;读入数据
a = addfile(topo_file,"r")
elev_lnd = a->z({latmin:latmax},{lonmin:lonmax})
elev_lnd = where(elev_lnd.le.200 .or. elev_lnd.ge.300,elev_lnd@_FillValue,elev_lnd)
tres@cnLevelSelectionMode = "ExplicitLevels"
;tres@cnLevelSpacingF = 100
tres@cnLevels = (/240,280/)
tres@cnFillOn = False
tres@cnLineLabelsOn = True
tres@cnLineLabelPerimOn = False
tres@cnLineLabelBackgroundColor = "transparent"
plot2 = gsn_csm_contour(wks,elev_lnd,tres)
overlay(base, plot2)
|
|