爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 8267|回复: 3

[其他] 求助:NCL res@mpLandFillColor失效

[复制链接]
发表于 2015-10-29 21:38:58 | 显示全部楼层 |阅读模式

登录后查看更多精彩内容~

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
本帖最后由 气象妹子 于 2015-10-29 21:40 编辑

这是一个相关图,,阴影代表通过95%置信水平,,我想把陆地设为灰色,,但是使用了 res@mpLandFillColor 没有效果,但是当我把res@cnFillOn   = False后陆地颜色就能改变了,,不知道是怎么回事。。。还希望大家能帮我看一下。脚本如下:
wks  = gsn_open_wks("pdf","d:/indonesia/ncl/corr2012DJF")              ; open a ps plot
gsn_define_colormap(wks,"rainbow+white+gray")              ; choose colormap
plot = new(1,graphic)
res = True
res@gsnDraw               = False
res@gsnFrame              = False
res@cnFillOn              = True
res@lbLabelBarOn          = False
res@cnLinesOn             = True
res@cnLineLabelsOn        = True
res@tmXBLabelFontHeightF  = 0.015
res@tmYLLabelFontHeightF  = 0.015
res@gsnAddCyclic          = True  
;res@mpCenterLonF          = 180.  
res@mpMinLonF             = 60.
res@mpMaxLonF             = 160.
res@mpMinLatF             = -30.
res@mpMaxLatF             =  30.
res@cnSmoothingOn = True
res@cnSmoothingDistanceF = 0.001
res@cnSmoothingTensionF = -2
;---About the contour
res@cnLabelMasking   = True
res@cnLineDashSegLenF = 0.1   ;the density of the mark on the contour
res@cnLevelSpacingF  = 2
res@cnLineThicknessF     = 0.6
res@cnLineLabelFontHeightF = 0.008
res@cnLineLabelFontThicknessF = 0.005
res@cnLineLabelFormat  =  "@^sg"               ;eg:change .5 to 0.5
res@gsnContourNegLineDashPattern = 2           ; sets negative contours to dash pattern 1
res@cnLevelSelectionMode  = "ExplicitLevels"
res@cnLevels              = (/-0.8,-0.6,-0.34,-0.3,0,0.3,0.34,0.6,0.8/)
res@cnFillColors          = (/76,84,90,0,0,0,0,183,191,196/)
res@mpLandFillColor       = 239
plot(0) = gsn_csm_contour_map_ce(wks,ccr4,res)
;************************************************
; panel res
;************************************************
  pres = True
  pres@gsnFrame = False
  pres@gsnPanelLabelBar   = True
  pres@pmLabelBarWidthF   = 0.8
  pres@pmLabelBarOrthogonalPosF = -0.0
  pres@lbLabelFontHeightF = 0.015
  pres@gsnPanelYWhiteSpacePercent = 2
  pres@gsnPanelXWhiteSpacePercent = 0
  gsn_panel(wks,plot,(/1,1/),pres)
  frame(wks)
密码修改失败请联系微信:mofangbao
发表于 2015-10-30 08:22:26 | 显示全部楼层
在map属性多想想办法!~
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2015-10-30 13:29:03 | 显示全部楼层
yang69can 发表于 2015-10-30 08:22
在map属性多想想办法!~


你好,,我添加了
res@cnFillDrawOrder       = "PreDraw"  后地图会把陆地上的阴影盖住,,但是 Fill  PostDraw又不行

密码修改失败请联系微信:mofangbao
发表于 2020-7-8 20:32:17 | 显示全部楼层
气象妹子 发表于 2015-10-30 13:29
你好,,我添加了res@cnFillDrawOrder       = "PreDraw"  后地图会把陆地上的阴影盖住,,但是 Fill   ...

  res@mpLandFillColor = "transparent"
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

快速回复 返回顶部 返回列表