[gradsusr] Subtract previous value

raymond ordinario raymond1723 at gmail.com
Sat Dec 5 05:09:12 EST 2015


Hi Stuart,

yes it is easy you can play around with the time element as example below

n=2
while (n <=96)
precip(t=n) - precip(t=n-1)
n=n+1
endwhile

you can put this on a script.

Thanks,

Raymond


On Sat, Dec 5, 2015 at 6:03 PM, Chorley Weather <
weatherstu at chorleyweather.com> wrote:

> Hi all,
>
> 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......
>
> Thanks in advance!!!
> --
>
> Stuart Markham
>
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>


-- 
-------------------------------------------------------------------------------------------------------------------------------
Raymond C. Ordinario
MS Atmospheric Science
Ateneo De Manila University
Quezon City, Philippines

Weather Specialist I
Technique Application and Meteorological Satellite Section
Weather DIvision
Philippine Atmospheric, Geophysical and Astronomical Services Admistration
Quezon City, Philippines
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20151205/fb40b235/attachment.html 


More information about the gradsusr mailing list