Open rchlumsk opened 3 years ago
Additional issue with this function, the area_tol= xxx other than default causes an issue in merging data frames,
dd <- rvn_rvh_cleanhrus(HRUtab=rvh$HRUtable, SBtab=rvh$SBtable, area_tol=0.05) Error in
$<-.data.frame
(*tmp*
, "remove", value = c(TRUE, TRUE, TRUE, : replacement has 6226 rows, data has 9784
Also add check for duplicate HRU IDs, merge automatically (?) assuming other properties remain the same
Requires Area in the subbasin df but this is only produced when reading the rvh file, not when providing a direct data frame
should have a check in this function and automatically tabulate the subbasin areas if needed