<div dir="ltr"><div class="gmail_default" style="font-size:small">Ross,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">If I understand your question correctly, I believe what you want to do is use the "where" function to set your prec values to missing at values below a certain level.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">For example:</div><div class="gmail_default" style="font-size:small"><br></div> prec = where(prec.le.0.1,prec@_FillValue,prec)
<div><br></div><div><div class="gmail_default" style="font-size:small">I've cleaned up your example to allow you to use the native lambert projection parameters defined on your GRIB file. You can set USE_NATIVE_PROJ to False if you don't want this, and you will get the original map projection you had.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">See the attached plots and modified script.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br></div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 29, 2017 at 1:09 PM, Roussan <span dir="ltr"><<a href="mailto:rousslucas@gmail.com" target="_blank">rousslucas@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<div>I'm trying to overlay a map, and 2 differents contours.</div><div><br></div><div>-Map</div><div>-Cloud cover</div><div>-Precipitations</div><div><br></div><div>I can't achieve that without seting "prec_res@cnFillOpacityF" below 1</div><div>(line 98 of my script), but legend colors become untrue.</div><div><br></div><div>if I comment "prec_res@cnFillOpacityF" I only can see map and precipitations,</div><div>but no clouds.</div><div><br></div><div>I would like to fully plot precipitations over clouds and map,</div><div>without alter legends colors.</div><div><br></div><div>Thanks in advance for your help.</div><div>Ross</div><div><br></div><div> PS : script + grib2 in attachement.</div><div><br></div><div><br></div><div><br></div></div>
<br>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>