- 积分
- 9060
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2013-1-28
- 最后登录
- 1970-1-1

|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
求助!在用ncl制作贵州省地图时,发现自带地图有边界缺失部分,叠加贵州省地图后出现部分地区并未填色,然后想着采用shp文件直接进行处理,但是在用插值后的数据画填色图中出现超出边界部分,自己尝试了很多方法,仍没有办法解决去除边界外填色部分,还请各位大神帮帮忙抽空给指导一下,万分感谢!
画图的程序代码如下:
minlat = 24
maxlat = 30
minlon = 103
maxlon = 110
wks = gsn_open_wks("x11","guizhou_Map")
gsn_merge_colormaps(wks,"MPL_Purples","MPL_Greens")
res = True
res@gsnMaximize = True
res@gsnDraw = False
res@gsnFrame = False
res@tmXTOn = False
res@tmYROn = False
res@gsnAddCyclic = False
;------------------------------------------------------
res@mpFillOn = True
res@mpDataBaseVersion = "LowRes"
res@mpOutlineOn = False
res@mpLandFillColor = "white"
;---Zoom in on area of interest
res@mpLimitMode = "LatLon"
res@mpMinLatF = minlat
res@mpMaxLatF = maxlat
res@mpMinLonF = minlon
res@mpMaxLonF = maxlon
;-----------------------------------------------------
res@cnInfoLabelOn = False
res@cnLinesOn = False
res@cnFillOn = True
res@cnLineLabelsOn = False
res@cnLevelSelectionMode = "ExplicitLevels"
res@cnLevels = (/145,150,155,160,165,170,175,180,185,190,195,200,205/)
res@lbLabelBarOn = True
res@gsnSpreadColorStart = 10
res@gsnSpreadColorEnd = 120
res@lbLabelFontHeightF = 0.01
res@pmLabelBarOrthogonalPosF = 0.15 ;调节色标大小
res@pmLabelBarHeightF = 0.05
map_plot = gsn_csm_contour_map(wks,gridtd,res) ;画填色图
;****************************************************************************
; sections for shapefiles
;****************************************************************************
;---加上省级区域地图
shpfn2="Guizhou_province.shp"
gres = True
gres@gsEdgesOn =True
gres@gsColors = -1 ;省内填色透明
shp_plot= gsn_add_shapefile_polygons(wks,map_plot,shpfn2,gres)
|
-
贴出程序所出的图
|