爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 4787|回复: 1

[作图] 求助:overlay叠加阴影出错

[复制链接]
发表于 2017-2-24 16:14:15 | 显示全部楼层 |阅读模式

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

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

x
想对通过检验的区域叠加阴影,但overlay后出不来阴影,也没有错误提示,请问是哪里出问题了?

res                = True
res@cnFillOn       = True
res@gsnDraw        = False
res@gsnFrame       = False
res@gsnAddCyclic   = False
res@cnFillPalette  = "MPL_YlOrRd"
res@lbLabelBarOn   = True

res@mpMinLatF      = latS
res@mpMaxLatF      = latN
res@mpMinLonF      = lonL
res@mpMaxLonF      = lonR
res@mpCenterLonF   = (lonL+lonR)/2

res@cnLinesOn      = False
res@cnInfoLabelOn  = False
res@cnLineLabelsOn = False
res@cnLevelSelectionMode = "ManualLevels"
res@cnMinLevelValF  = 0
res@cnMaxLevelValF  = 0.24
res@cnLevelSpacingF = 0.02
res@gsnSpreadColorEnd =115

sres                = True
sres@gsnDraw        = False
sres@gsnFrame       = False
sres@gsnAddCyclic   = False
sres@cnFillOn       = False
sres@cnLinesOn      = False
sres@cnInfoLabelOn  = False
sres@cnLineLabelsOn = False
sres@lbLabelBarOn   = False
sres@cnLevelSelectionMode = "ExplicitLevels"
sres@cnLevels = (/-0.21, 0.21/)

res@gsnLeftString  = "CESM MME ANN-TREND"
plot=gsn_csm_contour_map(wks, b_MME2, res)
shade=gsn_csm_contour(wks, r, sres)
opt = True
opt@gsnShadeFillType = "pattern"
opt@gsnShadeHigh = 17
shade=gsn_contour_shade(shade, -999, 0.21, opt)

overlay(plot, shade)
draw(plot)
frame(wks)

密码修改失败请联系微信:mofangbao
发表于 2018-4-16 16:17:01 | 显示全部楼层
您好 请问您现在问题解决了吗 我也遇到了类似的问题 同样的脚本 一个能画 一个不能画
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

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

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