<div dir="ltr">sorry i forget the endif</div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Dec 5, 2015 at 10:06 PM, Chorley Weather <span dir="ltr"><<a href="mailto:weatherstu@chorleyweather.com" target="_blank">weatherstu@chorleyweather.com</a>></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"><div><div class="h5">
<p>On 05-12-2015 12:29, raymond ordinario wrote:</p>
</div></div><blockquote type="cite" style="padding-left:5px;border-left:#1010ff 2px solid;margin-left:5px"><div><div class="h5">
<div dir="ltr">Hi Stuart,
<div> </div>
<div>try this script...</div>
<div> </div>
<div> </div>
<div>Raymond</div>
</div>
</div></div><div class="gmail_extra"><br>
<div class="gmail_quote"><div><div class="h5">On Sat, Dec 5, 2015 at 8:12 PM, Chorley Weather <span><<a href="mailto:weatherstu@chorleyweather.com" target="_blank">weatherstu@chorleyweather.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"><span style="text-decoration:underline"></span>
<div style="font-size:10pt;font-family:Tahoma,Arial,Helvetica,sans-serif"><div><div class="h5">
<p>On 05-12-2015 10:09, raymond ordinario wrote:</p>
<blockquote style="padding-left:5px;border-left:#1010ff 2px solid;margin-left:5px">
<div dir="ltr">Hi Stuart,
<div> </div>
<div>yes it is easy you can play around with the time element as example below</div>
<div> </div>
<div>n=2</div>
<div>while (n <=96)</div>
<div>precip(t=n) - precip(t=n-1)</div>
<div>n=n+1</div>
<div>endwhile</div>
<div> </div>
<div>you can put this on a script.</div>
<div> </div>
<div>Thanks,</div>
<div> </div>
<div>Raymond</div>
<div> </div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Sat, Dec 5, 2015 at 6:03 PM, Chorley Weather <span><<a href="mailto:weatherstu@chorleyweather.com" target="_blank">weatherstu@chorleyweather.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span style="text-decoration:underline"></span>
<div style="font-size:10pt;font-family:Tahoma,Arial,Helvetica,sans-serif">
<p>Hi all,</p>
<p>This is probably an easy solution but if I have 96 hours worth of precipitation data but I need to subtract the previous value for an hourly output how would I go about this? For example hour 2 would need to subtract hour 1, then hour 3 would need to subtract hour 2 and so on......</p>
<p>Thanks in advance!!! </p>
<div>-- <br>
<p>Stuart Markham</p>
<p> </p>
</div>
</div>
<br>_______________________________________________<br> gradsusr mailing list<br> <a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br> <a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a></blockquote>
</div>
<br><br clear="all">
<div>HI Raymond,</div>
<div> </div>
<div>Thank you for the reply. I have tried the function but it just produces one image then ends the script. I have attached the script and control file. Can you advise why it does this or even maybe there is a better solution.</div>
<div> </div>
<div> </div>
--</div>
<div class="gmail_extra">Many Thanks,</div>
<div class="gmail_extra">Stuart.<br>
<div>
<div dir="ltr">
<div>-------------------------------------------------------------------------------------------------------------------------------</div>
Raymond C. Ordinario<br>MS Atmospheric Science<br>Ateneo De Manila University<br>Quezon City, Philippines<br><br>Weather Specialist I<br>
<div>Technique Application and Meteorological Satellite Section<br>Weather DIvision<br>Philippine Atmospheric, Geophysical and Astronomical Services Admistration<br>Quezon City, Philippines</div>
</div>
</div>
</div>
<br>
<pre>_______________________________________________
gradsusr mailing list
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><span><span style="color:#888888">
</span></span></pre>
<span><span style="color:#888888"> </span></span></blockquote>
<p> </p>
</div></div><div>
<p><img src="cid:14493207835662e14f3f656814664153@chorleyweather.com" alt=""></p>
</div>
</div><span class="">
<br>_______________________________________________<br> gradsusr mailing list<br> <a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br> <a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br> </span></blockquote>
</div><span class="">
<br><br clear="all">
<div> </div>
-- <br>
<div>
<div dir="ltr">
<div>-------------------------------------------------------------------------------------------------------------------------------</div>
Raymond C. Ordinario<br>MS Atmospheric Science<br>Ateneo De Manila University<br>Quezon City, Philippines<br><br>Weather Specialist I<br>
<div>Technique Application and Meteorological Satellite Section<br>Weather DIvision<br>Philippine Atmospheric, Geophysical and Astronomical Services Admistration<br>Quezon City, Philippines</div>
</div>
</div>
</span></div>
<br><span class="">
<pre>_______________________________________________
gradsusr mailing list
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a>
</pre>
</span></blockquote>
<p> Hi Raymond, </p>
<p>Thanks for your help in this. Tried the script and returned an error (see attached image) </p><span class="HOEnZb"><font color="#888888">
<div>-- <br>
<p>Stuart Markham</p>
<p> </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><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>-------------------------------------------------------------------------------------------------------------------------------</div>Raymond C. Ordinario<br>MS Atmospheric Science<br>Ateneo De Manila University<br>Quezon City, Philippines<br><br>Weather Specialist I<br><div>Technique Application and Meteorological Satellite Section<br>Weather DIvision<br>Philippine Atmospheric, Geophysical and Astronomical Services Admistration<br>Quezon City, Philippines</div></div></div>
</div>