- 积分
- 3251
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2020-3-19
- 最后登录
- 1970-1-1
|
楼主 |
发表于 2021-3-2 21:39:09
|
显示全部楼层
我的脚本如下
begin
filepath1 = "./topo_cn.nc"
f1 = addfile(filepath1, "r")
height = f1->z
wks = gsn_open_wks("png", "topo_cn")
res = True
res@gsnDraw = False
res@gsnFrame = False
;res@gsnMaximize = True
;res@vpWidthF = 0.6
;res@vpHeightF = 0.25
res@cnLinesOn = False
res@cnInfoLabelOn = False
res@cnLineLabelsOn = False
res@cnFillOn = True
res@cnFillPalette = "MPL_Greys";"precip3_16lev"
res@gsnAddCyclic = False
;res@cnFillMode = "RasterFill";"CellFill";
;set for map
res@mpOutlineBoundarySets = "NoBoundaries"
res@mpDataSetName = "Earth..4"
res@mpAreaMaskingOn = True
res@mpMaskAreaSpecifiers = (/"China","Taiwan","Disputed area between India and China","India:Arunachal Pradesh"/)
res@mpDataBaseVersion = "MediumRes"
;res@pmLegendDisplayMode = "Always"
res@pmTickMarkDisplayMode = "Always"
res@mpMinLatF = 15
res@mpMaxLatF = 55
res@mpMinLonF = 70
res@mpMaxLonF = 137
res@mpFillOn = True
res@mpLandFillColor = 0
res@mpOceanFillColor = 0
res@mpInlandWaterFillColor = 0
res@cnLevelSelectionMode = "ExplicitLevels";"AutomaticLevels"
res@cnLevels = (/0,200,500,800,1200,1600,2000,2500,3000/)
res@cnLabelBarEndStyle = "ExcludeOuterBoxes"
; res@cnLevelSelectionMode = "ManualLevels "
; res@cnMinLevelValF = -500
; res@cnMaxLevelValF = 2000
; res@cnLevelSpacingF = 500
res@gsnLeftString = ""
res@gsnRightString = ""
res@lbLabelBarOn = False
; res@tiMainFontHeightF = 0.015
; res@tiMainFontThicknessF = 2
res@lbOrientation = "vertical"
res@lbTitlePosition = "Bottom"
res@lbTitleString = ""
res@lbTitleFontHeightF = 0.015
res@lbLabelFontHeightF = 0.015
res@pmLabelBarParallelPosF = 0.4
;res@lbBoxSeparatorLinesOn = False
;res@lbBoxLineColor = "grey"
res@pmLabelBarHeightF = 0.8
res@pmLabelBarWidthF = 0.1
res@lbLabelStride = 5
res@tmXBOn = True
res@tmXBLabelsOn = True
res@tmXTOn = False
res@tmXTLabelsOn = False
res@tmYROn = False
res@tmYRLabelsOn = False
res@tmYLOn = False
res@tmYLLabelsOn = False
plot = gsn_csm_contour_map(wks, height, res)
draw(plot)
frame(wks)
end
|
|