<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Saurabh,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">It&#39;s a subtle thing, but what&#39;s happening is that the gsn_csm_contour_map function is spanning the full contour plot, and wrf_contour is not.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">If you want the color bar to look like the TRMM one, then when you call wrf_contour, you need to set:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">opts@gsnSpreadColors = True</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">If you want the color bar to look like the WRF one, then when you call gsn_csm_contour_map you need to set:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">res@gsnSpreadColors = False</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">It&#39;s possible that wrf_contour may give you a warning about gsnSpreadColors. Let me know if this happens.</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></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 21, 2017 at 5:23 AM, Saurabh Singh <span dir="ltr">&lt;<a href="mailto:saurabhsingh123op@gmail.com" target="_blank">saurabhsingh123op@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br></div>NCL version 6.4.0<div><br></div><div>I am using ncl to plot wrf and TRMM output side by side. My contour settings are following for TRMM:</div><div><br></div><div><div>  res@cnLevelSelectionMode = &quot;ManualLevels&quot;</div><div>  res@cnMinLevelValF  = 1.<span class="m_7456951997751303059gmail-Apple-tab-span" style="white-space:pre-wrap">                        </span>; set the minimum contour level</div><div>  res@cnMaxLevelValF  = 30.<span class="m_7456951997751303059gmail-Apple-tab-span" style="white-space:pre-wrap">                        </span>; set the maximum contour level</div><div>  res@cnLevelSpacingF = 2. </div><div>  res@cnFillPalette = &quot;precip2_17lev&quot;<br></div><div>plot(1) = gsn_csm_contour_map(wks,rain3,<wbr>res)<br></div><div><br></div><div>and for WRF my contour settings are following:</div><div><br></div><div><div>  opts@cnLevelSelectionMode = &quot;ManualLevels&quot;</div><div>  opts@cnMinLevelValF  = 1.<span class="m_7456951997751303059gmail-Apple-tab-span" style="white-space:pre-wrap">                         </span>; set the minimum contour level</div><div>  opts@cnMaxLevelValF  = 30.<span class="m_7456951997751303059gmail-Apple-tab-span" style="white-space:pre-wrap">                        </span>; set the maximum contour level</div><div>  opts@cnLevelSpacingF = 2. </div><div>  ;opts@cnLevels     = cl1</div><div>  opts@cnFillPalette = &quot;precip2_17lev&quot;</div><div><div>  contour = wrf_contour(b,wks,full(:,:),<wbr>opts)</div><div>   plot(0) = wrf_map_overlays(b,wks,(/<wbr>contour/),pltres,mpres)</div></div></div><div><br></div><div><br></div><div>However, in my plots, i see a mismatch between the WRF and TRMM contour color table. i.e TRMM has an orange for range(23-25) while WRF <img src="cid:ii_15b9040dbb265ede" alt="Inline images 1" width="544" height="544">has yellow for this range. please find the attached plots.</div><div><br></div><div>Regards</div><span class="HOEnZb"><font color="#888888"><div><br></div>-- <br><div class="m_7456951997751303059gmail_signature"><div dir="ltr"><font style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif" size="2"><span>With regards</span><span></span></font><font style="font-family:arial,helvetica,sans-serif" size="2"><span style="color:rgb(0,0,0)"><span><br></span></span></font><font style="font-family:arial,helvetica,sans-serif" size="2"><span style="color:rgb(0,0,0)"><span>Saurabh Kumar singh</span><span></span> </span></font><br style="color:rgb(51,204,0)"><br><font style="color:rgb(102,102,102)" size="1"> <b><i><span style="font-family:webdings" lang="EN-GB">P</span></i></b><b><i><span style="font-family:tahoma,sans-serif" lang="EN-GB"> : </span></i></b><b><i><span style="font-family:arial,sans-serif" lang="EN-GB"> </span></i></b><b><i><span style="font-family:tahoma,sans-serif" lang="EN-GB">Please consider the environment before printing this e-mail</span></i></b> </font><br style="color:rgb(102,102,102)"><br><br><br></div></div>
</font></span></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>