[ncl-talk] Overlay contours
Adam Phillips
asphilli at ucar.edu
Wed Sep 9 13:48:00 MDT 2015
Hi Yann,
Without seeing more of your script, I do not believe there is much for
ncl-talk to go on. Please send your complete script and an example of the
output graphic, and also please tell us the NCL version you are running.
As always, please respond to the ncl-talk email list.
Adam
On Tue, Sep 8, 2015 at 10:45 PM, Yann Bertrand <yann74 at yahoo.fr> wrote:
> Dear users,
>
> I try to overlay a contour over another contour.
> My problem is :
> when I overlay I can only see the last (in order) contour.
> I have tried to use :
> prec_res at cnFillOpacityF = .7
> it not works as i would expect, colors are merged,
> I would like to really have "prec_plot" over "to_plot".
> In my color triplet for prec_plot, when data=0 white color is (user)
> defined, not transpartent, is the problem there ?.
>
> Here is a part of my code :
>
> ;---------------
> ;MAP
> ;---------------
>
> res at mpOutlineDrawOrder = "PostDraw"
> res at gsnDraw = False
> res at gsnFrame = False
> plot = gsn_csm_map(wks,res)
>
> ;------------------
> ;TO_PLOT
> ;------------------
>
> gsn_define_colormap(wks, to_colors) ; RGB triplet user defined
> to_plot = gsn_csm_contour(wks, to_cloud,to_res)
>
> ;---------------------
> ;PREC_PLOT
> ;---------------------
>
> gsn_define_colormap(wks, prec_color) ; RGB triplet user defined
> prec_plot = gsn_csm_contour(wks,prec,prec_res)
>
> overlay (plot, to_plot)
> overlay (plot, prec_plot)
> draw(plot)
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
--
Adam Phillips
Associate Scientist, Climate and Global Dynamics Laboratory, NCAR
www.cgd.ucar.edu/staff/asphilli/ 303-497-1726
<http://www.cgd.ucar.edu/staff/asphilli>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150909/5b1e84ee/attachment.html
More information about the ncl-talk
mailing list