Hi Lena,
Try changing this:
opt = True
opt@gsnShadeFillType = "pattern"
opt@gsnShadeMid = 17
plot2 = gsn_contour_shade(plot2,95.,95.,opt)
to this:
opt = True
opt@gsnShadeFillType = "pattern"
opt@gsnShadeHigh = 17
plot2 = gsn_contour_shade(plot2,-999.,95.,opt)
As you want all areas greater than or equal to 95 to be shaded with fill
pattern 17, you should be setting gsnShadeHigh, and not gsnShadeMid. The
rest of your script looks good to me. If that fix doesn't work please
respond to ncl-talk.
Adam
On 6/20/13 11:14 AM, Lena Frey wrote:
> Hi,
> I've calculated the difference between ECHAM5 and NCEP data and made
> a ttest. Now I would like to overlay a pressure/height plot with the
> ttest
> results. I used the following configuration:
> sres = True
> sres@gsnDraw = False
> sres@gsnFrame = False
> sres@cnLevelSelectionMode = "ExplicitLevels"
> sres@cnLevels = 95.
> ses@cnInfoLabelOn = False
> sres@cnFillOn = False
> sres@cnLinesOn = False
> sres@cnLineLabelsOn = False
> sres@cnFillScaleF = 0.08
>
> plot2 = gsn_csm_contour(wks,prob(:,:),sres)
> opt = True
> opt@gsnShadeFillType = "pattern"
> opt@gsnShadeMid = 17
> plot2 = gsn_contour_shade(plot2,95.,95.,opt)
> overlay (ccrpresplot,plot2)
> draw (ccrpresplot)
> frame(wks)
> So is it possible to plot the 95% confidence level as a shaded contour
> over my pressure/height plot?
> Thanks.
> Lena
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Jun 20 15:18:43 2013
This archive was generated by hypermail 2.1.8 : Mon Jun 24 2013 - 11:46:47 MDT