def breach_depressions_00(in_dem_path, breach_dist='20'): """Runs whitebox breach_depressions_least_cost tool Parameters ---------- in_dem_path: str Path to the DEM breach_dist: str, optional Search radius Returns -------- output_path: str """ from WBT.whitebox_tools import WhiteboxTools wbt = WhiteboxTools() out_group = new_group_00(in_dem_path) output_path = new_file_00(in_dem_path, "DEM", "tif", out_group) wbt.breach_depressions_least_cost(in_dem_path, output_path, breach_dist, fill=True) # TODO: Add max_cost parameter for DEMs with quarries? return output_path
def breach_depressions_00(in_dem_path, breach_dist): """ Parameters ---------- in_dem_path : str Path to the DEM breach_dist : str Max distance to breach """ from WBT.whitebox_tools import WhiteboxTools wbt = WhiteboxTools() out_group = new_group_00(in_dem_path) out_path = out_file_00(in_dem_path, "DEM", "tif", out_group) wbt.breach_depressions_least_cost(in_dem_path, out_path, breach_dist)