r-barnes / faster-unmixer

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

Data preprocessing #58

Open AlexLipp opened 4 months ago

AlexLipp commented 4 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.