r-barnes / faster-unmixer

A faster implementation of the sediment inverse/unmixing scheme proposed in Lipp et al (2021).
6 stars 1 forks source link

Data preprocessing #58

Closed AlexLipp closed 3 weeks ago

AlexLipp commented 6 months ago

This PR adds some basic pre-processing functions to funmixer. In particular it adds functions to:

  1. Check the validity of an input D8 raster with respect to boundary conditions and values
  2. Fix the boundary conditions automatically
  3. "Snap" sample sites to drainage to allow for sensible building of SampleNetwork objects (raised in Issue #23).

These functions are now flagged in the README and an example of use is now included in the examples directory.

AlexLipp commented 3 weeks ago

Modified to include pathlib for filename manipulation