metoppv / improver

IMPROVER is a library of algorithms for meteorological post-processing.
http://improver.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
103 stars 85 forks source link

MOBT-719: Frequency to count for time period averages #2006

Closed bayliffe closed 3 months ago

bayliffe commented 3 months ago

This change adds a function and CLI to multiply average rates / frequencies within periods by the length of the period over which they are defined to yield an accumulation / count over the same period. This is to be used in the first instance for converting lightning flash frequencies into counts.

Acceptance test data: https://github.com/metoppv/improver_test_data/pull/49

Testing:

codecov[bot] commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 98.43%. Comparing base (84a8944) to head (30da6f9). Report is 14 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #2006 +/- ## ========================================== + Coverage 98.39% 98.43% +0.03% ========================================== Files 124 128 +4 Lines 12212 12489 +277 ========================================== + Hits 12016 12293 +277 Misses 196 196 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.