[ncl-talk] gsnShadeFillType not valid

Mary Haley haley at ucar.edu
Wed Mar 1 12:21:40 MST 2017


Hi Yan,

These resources only work with the gsn_contour_shade function:

http://www.ncl.ucar.edu/Document/Graphics/Interfaces/gsn_contour_shade.shtml

See the coneff_13.ncl example:

http://www.ncl.ucar.edu/Applications/coneff.shtml#ex13

--Mary


On Tue, Feb 28, 2017 at 8:56 PM, WIND <954051157 at qq.com> wrote:

> Hi all,
> I'm trying to draw the trend and its significance level above 95%, the
> data has been stored in jantest.nc. But it always warning
> gsnShadeFillType is not a valid resource in re_contour at this time
> gsnShadeHigh is not a valid resource in re_contour at this time
> I have referred to this: http://www.ncl.ucar.edu/
> Applications/Scripts/coneff_7.ncl
> so I just don't know why and how to solve this problem.
> It's very appreciate if you could help me find a way to sove the problem.
> Thanks a lot!
>
> Here is my script.
>
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl"
> f = addfile("jantest.nc","r")
> trend=f->jantrend
> sig=f->sig
>
> wks  = gsn_open_wks("eps" ,"re")
> res                       = True
> res at gsnDraw              = True
> res at cnLevelSelectionMode = "ManualLevels"
> res at cnMinLevelValF       = -4
> res at cnMaxLevelValF       =  4
> res at cnLevelSpacingF      =  0.5
> res at cnLineLabelInterval  = 1
> res at cnSmoothingOn        = True
> plot0 = gsn_csm_contour(wks,trend,res)
>
> opt = True
> opt at gsnShadeFillType = "pattern"
> opt at gsnShadeHigh =17
> plota = gsn_csm_contour(wks,sig,opt)
> plota = ShadeGtContour(plota,0.95,17)
> overlay(plot0,plota)
> draw(plot0)
> frame(wks)
>
> Sincerely,
> Yan
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170301/b70bf880/attachment.html 


More information about the ncl-talk mailing list