Noticed that if D8 grids are provided which don't have a ring of zero's surrounding the margin (i.e., a boundary of sink nodes) the faster_unmixer.cpp throws a runtime error: "Total area in graph does not equal total area in DEM!". I don't think we should be abl
Looks like its being thrown by Lines 240--242:
if(total_area!=flowdirs.size()){
throw std::runtime_error("Total area in graph " + std::to_string(total_area) + " does not equal total area in DEM " + std::to_string(flowdirs.size()) + "!");
}
Is this needed @r-barnes? Adds an unnecessary constraint on data input I think.
Noticed that if D8 grids are provided which don't have a ring of zero's surrounding the margin (i.e., a boundary of sink nodes) the
faster_unmixer.cpp
throws a runtime error: "Total area in graph does not equal total area in DEM!". I don't think we should be ablLooks like its being thrown by Lines 240--242:
Is this needed @r-barnes? Adds an unnecessary constraint on data input I think.