Hello,
I have a raingauge and record the number of tips every minute. I would like to create a running sum of tips for a fixed time interval. For example, every minute I would like to sum the number of tips from the past 15 minutes to create a running 15-min intensity value--i.e. how much rain has fallen in the past 15 minutes.
I tried creating a separate table of 1-min records limited to 15 records in size such new records overwrite the oldest however I don't know how to create a result based upon looking at a table and summing all of its values. Is there a way to do this or is there a better approach?
Thanks for your help.
-Scott
Why don't you just use the AvgRun instruction to create a 15 minute running average and then multiply the average by the number of samples that went into it to get a 15 minute running total?
* Last updated by: ChipsNSalsa on 3/30/2012 @ 5:53 PM *
That works nicely. Thanks for the advice.