<div dir="ltr">Hello Stuart,<div><br></div><div>Perhaps you&#39;ve noticed that the flat-line value of &quot;dew&quot; is equal to the value at the initial timestep.  Try displaying &quot;dew&quot; without first defining it, i.e., &#39;d const((dewpt(tmp2m....)&#39; and see what happens.  For me, it works fine if I display the line directly, not from a defined variable.</div><div><br></div><div>It appears that if you define it from the dewpt udf, then it takes only the initial value, but I have no idea why.  Perhaps another user has an explanation or resolution.</div><div><br></div><div>Good luck--</div><div>Stephen Mc</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 16, 2016 at 6:04 AM, Chorley Weather <span dir="ltr">&lt;<a href="mailto:weatherstu@chorleyweather.com" target="_blank">weatherstu@chorleyweather.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div style="font-size:10pt;font-family:Tahoma,Arial,Helvetica,sans-serif">
<p>Hi all,</p>
<p>I&#39;m trying to plot t2m, t850 and dew points in a line graph. The temp and 850&#39;s work fine but for some reason the dew point just flat lines, is there any reason for this? Ive attched an image to show and also here is the section of script for the dew point.</p>
<p> </p>
<p>&#39;set display color white&#39;<br> &#39;clear&#39;<br> &#39;set mpdset hires&#39;<br> &#39;set grads off&#39;</p>
<p>&#39;set t 1 65&#39;<br> &#39;set csmooth on&#39;<br>&#39;set cmark 0&#39;<br> &#39;set lat 53&#39;;&#39;set lon -2.23&#39;<br> &#39;set vrange -30 30&#39;<br>&#39;define dew = const((dewpt(tmp2m,rh2m)-273.16),0,-u)&#39;<br> &#39;set gxout line&#39;<br> &#39;set ccolor 2&#39;<br> &#39;set cthick 20&#39;<br> &#39;d dew&#39;</p>
<p>I&#39;m rather perplexed as to why the line is flat and clearly there is no value there but the Dew point script works fine when I produce charts.</p>
<p>Regards, </p>
<p>Stuart.</p><span class="HOEnZb"><font color="#888888">
<div>-- <br>
<p>Stuart Markham</p>
<p><img src="http://www.chorleyweather.com/forecast-charts/SampleDatasets/logo%20450x100.PNG" alt=""></p>
</div>
</font></span></div>
<br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br></div>