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
101 stars 84 forks source link

Adds tests showing out-of-range data returning from scipy interpolate… #2007

Closed MoseleyS closed 1 month ago

MoseleyS commented 1 month ago

… and adds an np.clip to the affected plugin to overcome this

This was discovered because the interpolation of the rain falling level can produce values fractionally lower (machine-precision) than the snow falling level if both are zero before the interpolation is done.

Description

Testing:

codecov[bot] commented 1 month ago

Codecov Report

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

Project coverage is 98.42%. Comparing base (84a8944) to head (284094d). Report is 13 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #2007 +/- ## ========================================== + Coverage 98.39% 98.42% +0.03% ========================================== Files 124 128 +4 Lines 12212 12469 +257 ========================================== + Hits 12016 12273 +257 Misses 196 196 ```

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