This repository was archived by the owner on Oct 13, 2022. It is now read-only.

Description
When a rain file has very small rain values (<0.000) RMevents_sample counts it in the rain event and doesn't start counting its interevent period. No rain gage equipment can measure rain amounts that small, rain files with values that small have some other sort of problem. Nonetheless, we could prevent the problem by having RMevents_sample round the rain values to 3 decimals before the ieHr step.
This did the trick in a script prior to running RMevents_sample:
#round rain data to omit rows with very small rain values
precip$rain <- round(precip$rain, digits = 3)