Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

running precipitation intensity calculation


stormwaterms Mar 30, 2012 08:18 PM

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


ChipsNSalsa Mar 30, 2012 09:55 PM

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 *


stormwaterms Apr 5, 2012 05:04 PM

That works nicely. Thanks for the advice.

Log in or register to post/reply in the forum.