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

RMevents_sample can't handle a little rain #49

@rbcarvin

Description

@rbcarvin

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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions