I have a series of tools that I need to run in ArcGIS to hydrologically condition my DEM, but the first step in this process is running the Breach Depressions tool from Whitebox GAT (I have found that this tool works really well for breaching streams across bridges and dams).
Is it possible to work entirely in ArcMap and call the breach depression tool from whitebox? I tried executing the python code in ArcGIS but it doesn't seem to work.Here is what I tried:
wd = "D:\LIDAR\02060006_Patuxent\01_HeadwatersPatuxent\0104_HUC12"pluginHost.setWorkingDirectory(wd)inputFile = wd + "DEM_clip.dep"outputFile = wd + "DEMBreach.dep"maxBreachLength = "50"outputPointer = "true"args = [inputFile, outputFile]pluginHost.runPlugin("BreachDepressions", args, False)I'm pretty new to python and coding in general so the answer may be more obvious than I think. I should add that right now I'm running my tools in a geoprocessing model so ideally I would like to somehow add the whitebox breach depressions tool into my geoprocessing model, but would be open to trying it out in a python script.
If anyone has successfully used Whitebox GAT tools within ArcGIS and has any suggestions, that would be great, thanks!
أكثر...
Is it possible to work entirely in ArcMap and call the breach depression tool from whitebox? I tried executing the python code in ArcGIS but it doesn't seem to work.Here is what I tried:
wd = "D:\LIDAR\02060006_Patuxent\01_HeadwatersPatuxent\0104_HUC12"pluginHost.setWorkingDirectory(wd)inputFile = wd + "DEM_clip.dep"outputFile = wd + "DEMBreach.dep"maxBreachLength = "50"outputPointer = "true"args = [inputFile, outputFile]pluginHost.runPlugin("BreachDepressions", args, False)I'm pretty new to python and coding in general so the answer may be more obvious than I think. I should add that right now I'm running my tools in a geoprocessing model so ideally I would like to somehow add the whitebox breach depressions tool into my geoprocessing model, but would be open to trying it out in a python script.
If anyone has successfully used Whitebox GAT tools within ArcGIS and has any suggestions, that would be great, thanks!
أكثر...