<div dir="ltr"><div>Hi Alison,</div><div>It is difficult to answer the question without data file, but I just noticed that you may need to switch your xpts and ypts in the call to gsn_add_polyline.</div><div> So replace the line:</div><div><br></div><div>From:<br></div><div></div><div>        dum(i) = gsn_add_polyline(wks,contour_tot,xpts(i:i+1),ypts(i:i+1),resp)<br></div><div>To:</div><div>        dum(i) = gsn_add_polyline(wks,contour_tot,ypts(i:i+1),xpts(i:i+1),resp)<br></div><div><br></div><div>I not sure if this would solve the issue because I do not have experience in WRF related plotting.<br></div><div><br></div><div>Cheers,</div><div>Rashed<br></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 31, 2018 at 4:02 PM, Alison Bridger <span dir="ltr"><<a href="mailto:alison.bridger@sjsu.edu" target="_blank">alison.bridger@sjsu.edu</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">Ooops - wtest.ncl attached!<div><br></div><div>Another way to state my problem is by looking at the sample code under gsn_add_polygon</div><div><br></div><div>The quantities dum1, dum2, and dum3 are defined (left of equals sign) but I don't see them again in the code, so how are they used???</div></div><div class="HOEnZb"><div class="h5"><br><div class="gmail_quote"><div dir="ltr">On Tue, Jul 31, 2018 at 2:06 PM Alison Bridger <<a href="mailto:alison.bridger@sjsu.edu" target="_blank">alison.bridger@sjsu.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Although my NCL skills are gradually improving, I am still stumped by simple tasks!<div><br></div><div>The attached code reads in WRF output, extracts rainfall, sums it over the run, and contour plots the total each hour. I got it from somebody else here!</div><div><br></div><div>I want to superimpose ("overplot") small columns at a few locations showing obs versus WRF rain totals. So imagine - say - small red and blue columns side-by-side somewhere on this plot (e.g., SFO) showing obs and WRF rain totals.</div><div><br></div><div>I have spent 2 hours (!) trying to morph the sample code in polyg_4.ncl (from the NCL pages) into my code (wtest.ncl, attached), but I get nothing visual and no useful diagnostics.</div><div><br></div><div>I fell this is related to things like "frame" and "draw" and "plot" and so forth, but no amount of trying seems to make me understand how these relate to each other!</div><div><br></div><div>The added code starts near the end with "xpts = ...".</div><div><br></div><div>Thanks for any pointers!</div><div><br></div><div>Alison</div><div><br></div><div>PS can supply wrfout file if needed<br clear="all"><div><br></div>-- <br><div dir="ltr" class="m_-45654988020849407m_-3337553799981804315gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><pre><font face="comic sans ms, sans-serif">                 Alison F.C. Bridger<br>                  Professor & Chair<br><br>    Department of Meteorology and Climate Science<br><br>    San Jose State University      tel  408.924.5206<br>    One Washington Square          fax  408.924.5191<br>    San Jose, CA 95192-0104<br><br>             email:   <a>Alison.Bridger@sjsu.edu</a></font></pre><pre><font face="comic sans ms, sans-serif">       <b>Global CO2 levels...410 ppm and still rising</b></font></pre><pre><font face="comic sans ms, sans-serif"><br>                 <a href="http://www.met.sjsu.edu" target="_blank">www.sjsu.edu/meteorology</a><br>       </font><br></pre></div></div></div></div></div></div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="m_-45654988020849407gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><pre><font face="comic sans ms, sans-serif">                 Alison F.C. Bridger<br>                  Professor & Chair<br><br>    Department of Meteorology and Climate Science<br><br>    San Jose State University      tel  408.924.5206<br>    One Washington Square          fax  408.924.5191<br>    San Jose, CA 95192-0104<br><br>             email:   <a>Alison.Bridger@sjsu.edu</a></font></pre><pre><font face="comic sans ms, sans-serif">       <b>Global CO2 levels...410 ppm and still rising</b></font></pre><pre><font face="comic sans ms, sans-serif"><br>                 <a href="http://www.met.sjsu.edu" target="_blank">www.sjsu.edu/meteorology</a><br>       </font><br></pre></div></div></div></div></div></div>
</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>