<div dir="ltr"><div style="font-family:trebuchet ms,sans-serif" class="gmail_default">Dear Mary and Karin,<br><br></div><div style="font-family:trebuchet ms,sans-serif" class="gmail_default">Thanks for your mail. I just sorted the problem out. I was basically plotting temperature from wrfout files and each file had 24 hourly values. I was trying to join the values from all the files in my ncl-script using:<br><br>FILES = systemfunc (" ls -1 " + DATADir + "wrfout_d03_2014-* ")<br>a = addfiles(FILES,"r")<br>temp = a[:]->T2(:,144,79)<br></div><div style="font-family:trebuchet ms,sans-serif" class="gmail_default"><br>and I had an extra file for the 25th of October in my directory which was creating these extra values.<br><br><br></div><div style="font-family:trebuchet ms,sans-serif" class="gmail_default">It is all sorted now.<br><br></div><div style="font-family:trebuchet ms,sans-serif" class="gmail_default">Thanks again,<br><br></div><div style="font-family:trebuchet ms,sans-serif" class="gmail_default">Tabish<br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div><font size="1"><span style="font-family:tahoma,sans-serif">Tabish U Ansari<br></span></font></div><font size="1"><span style="font-family:tahoma,sans-serif">PhD student, Lancaster Environment Center<br></span></font></div><font size="1"><span style="font-family:tahoma,sans-serif">Lancaster Univeristy<br> <span>Bailrigg</span>, <span>Lancaster</span>, <br><span>LA1 4YW</span>, <span>United Kingdom</span></span></font><br></div></div></div>
<br><div class="gmail_quote">On 15 December 2016 at 16:16, Mary Haley <span dir="ltr"><<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.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"><div class="gmail_default" style="font-size:small">Tabish,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">As Karin said, there's not enough information here.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">It is very important to look at your data! If the plot is incorrect, it's not always NCL that's the problem. It looks like your X values are not monotonic so you must try to figure out why.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">To debug this, there are number of things you can do.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">One is to simply print the data in the region where the problem is, and check if your X values are doing something unexpected.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Another suggestion is to plot the data again, but zoom in on the area with the problem so you can better see it. You can do this with the tr* resources:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">res@trXMinF = 23</div><div class="gmail_default" style="font-size:small">res@trXMaxF = 27</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">This might help you see the source of the problem better.</div><span class="HOEnZb"><font color="#888888"><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></font></span></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Tue, Dec 13, 2016 at 8:41 PM, Tabish Ansari <span dir="ltr"><<a href="mailto:tabishumaransari@gmail.com" target="_blank">tabishumaransari@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Hi<br><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">I'm trying to plot some time-series data : simulated vs observed. I'm able to produce the plot successfully without any errors, but for a small stretch on the timescale, it is showing extraneous data - as double lines. This is happening exactly at the same period for both simulated and observed data. Please refer to the screenshot attached.<br><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Many thanks!<br><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Tabish<br><br clear="all"></div><div><div class="m_3068454655259010359m_487002498659627485gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div><font size="1"><span style="font-family:tahoma,sans-serif">Tabish U Ansari<br></span></font></div><font size="1"><span style="font-family:tahoma,sans-serif">PhD student, Lancaster Environment Center<br></span></font></div><font size="1"><span style="font-family:tahoma,sans-serif">Lancaster Univeristy<br> <span>Bailrigg</span>, <span>Lancaster</span>, <br><span>LA1 4YW</span>, <span>United Kingdom</span></span></font><br></div></div></div>
</div>
<br></div></div><span class="">______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">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/mailma<wbr>n/listinfo/ncl-talk</a><br>
<br></span></blockquote></div><br></div>
</blockquote></div><br></div>