OpenSenseAction / poligrain

Simplify common tasks for working with point, line and gridded sensor data, focusing on rainfall observations.
https://poligrain.readthedocs.io
BSD 3-Clause "New" or "Revised" License
2 stars 10 forks source link

Add grid intersection code #19

Closed maxmargraf closed 3 months ago

maxmargraf commented 4 months ago

This PR should add the calculation of the weights of the grid intersections between line and grid from pycomlink to close #5.

maxmargraf commented 4 months ago

To overcome the issue of descending lon/lat coordinates there should be a check based on this raise that checks if lon or lat are descending and if true, a flip along the respective axes e.g. like here.

maxmargraf commented 4 months ago
codecov[bot] commented 3 months ago

Codecov Report

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

Project coverage is 100.00%. Comparing base (61c4063) to head (9bd47f3). Report is 10 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #19 +/- ## ========================================== Coverage 100.00% 100.00% ========================================== Files 3 4 +1 Lines 43 205 +162 ========================================== + Hits 43 205 +162 ```

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

maxmargraf commented 3 months ago

Summary of recent changes:

Open to suggestions but ready to be merged from my side-

cchwala commented 3 months ago

🎉 Thanks @maxmargraf