def zone_min_00(in_dem_path, in_zones_path): """Set cells in culvert zones to the min elevation for the zone. Parameters ----------- in_dem_path: str Path to input DEM file in_zones_path: str Path to culvert raster file Returns ------- output_path: str """ from WBT.whitebox_tools import WhiteboxTools wbt = WhiteboxTools() output_path = new_file_00(in_zones_path, "MIN", "tif") wbt.zonal_statistics(in_dem_path, in_zones_path, output_path, stat="minimum", out_table=None) return output_path
def zone_min_00(in_dem_path, in_zones_path): """ Parameters ---------- in_dem_path : str Path to input DEM file in_zones_path : str Path to culvert raster file """ from WBT.whitebox_tools import WhiteboxTools wbt = WhiteboxTools() output_path = out_file_00(in_zones_path, "MIN", "tif") wbt.zonal_statistics(in_dem_path, in_zones_path, output_path, stat="minimum", out_table=None) return output_path