c-proof / pyglider

glider software
https://pyglider.readthedocs.io/
Apache License 2.0
17 stars 24 forks source link

Fix for slocums, to interpolate over gaps smaller than 'maxgap' #149

Closed hvdosser closed 1 year ago

hvdosser commented 1 year ago

A new function find_gaps has been added to utils.py, which identified gaps in scientific variables, and fills any gaps longer than the user-specified parameter maxgap with nans.

codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.14 :tada:

Comparison is base (676712c) 79.47% compared to head (9b2a757) 79.62%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #149 +/- ## ========================================== + Coverage 79.47% 79.62% +0.14% ========================================== Files 7 7 Lines 1364 1374 +10 ========================================== + Hits 1084 1094 +10 Misses 280 280 ``` | [Impacted Files](https://codecov.io/gh/c-proof/pyglider/pull/149?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=c-proof) | Coverage Δ | | |---|---|---| | [pyglider/slocum.py](https://codecov.io/gh/c-proof/pyglider/pull/149?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=c-proof#diff-cHlnbGlkZXIvc2xvY3VtLnB5) | `75.00% <100.00%> (+0.13%)` | :arrow_up: | | [pyglider/utils.py](https://codecov.io/gh/c-proof/pyglider/pull/149?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=c-proof#diff-cHlnbGlkZXIvdXRpbHMucHk=) | `68.38% <100.00%> (+0.83%)` | :arrow_up: | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=c-proof). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=c-proof)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.