How to use the WhiteboxTools Python API: WhiteboxTools Tutorial

  Рет қаралды 898

WhiteboxGeospatial

WhiteboxGeospatial

2 жыл бұрын

In this video, I show you how to use and interact with the WhiteboxTools Python API. By combining the WhiteboxTools library with a high-level scripting language, such as Python, users are capable of creating powerful stand-alone geospatial applications and workflow automation scripts. In this tutorial, I go over line-by-line how to set up an example python script to call various tools from WhiteboxTools. Although this is one way to call tools from the WhiteboxTools API, many other methods are possible.
Depending on the relative location of the WhiteboxTools directory and the script file that you are importing to, the import statement may need to be altered slightly. In the above script, it is assumed that the folder containing the WhiteboxTools files (including the whitebox_tools Python script) is named "WBT" and that the calling script that is importing WhiteboxTools is located in the parent directory of WBT. See An Example WhiteboxTools Python Project for more details on project set-up (www.whiteboxgeo.com/manual/wb....
The WhiteboxTools class expects to find the WhiteboxTools executable file (whitebox_tools.exe on Windows and whitebox_tools on other platforms) within the same directory (WBT) as the whitebox_tools.py script.
Each tool has a corresponding convenience method. The listing of tools in this manual includes information about each tool's Python convenience method, including default parameter values. Parameters with default values may be optionally left off of function calls. In addition to the convenience methods, tools can be called using the run_tool() method, specifying the tool name and a list of tool arguments.
For more information on the WhiteboxTools API, see the WhiteboxTools User Manual (www.whiteboxgeo.com/manual/wb.... Please put any questions you have down below or visit our Google Group (groups.google.com/u/1/g/white.... Please like this video and subscribe to our KZbin channel for all news and updates. Check out this video and more tutorials on our website (www.whiteboxgeo.com/learning-....

Пікірлер
Breakline mapping with Whitebox
9:38
WhiteboxGeospatial
Рет қаралды 3 М.
Опасность фирменной зарядки Apple
00:57
SuperCrastan
Рет қаралды 12 МЛН
لقد سرقت حلوى القطن بشكل خفي لأصنع مصاصة🤫😎
00:33
Cool Tool SHORTS Arabic
Рет қаралды 29 МЛН
Introducing WhiteboxTools v2.2.0 frontends (Python, Jupyter, ArcGIS, R)
19:31
Open Geospatial Solutions
Рет қаралды 4,2 М.
Geoprocessing with John Lindsay: An image filtering demo
23:08
WhiteboxGeospatial
Рет қаралды 712
Python Tutorial: Unit Testing Your Code with the unittest Module
39:13
Corey Schafer
Рет қаралды 1,3 МЛН
WhiteboxTools Tutorial: How to filter a Digital Elevation Model
20:04
WhiteboxGeospatial
Рет қаралды 3,1 М.
How to calculate Time In Daylight: WhiteboxTools Tutorial
6:44
WhiteboxGeospatial
Рет қаралды 283
Google I/O 2009 - The Myth of the Genius Programmer
55:17
Google for Developers
Рет қаралды 1,1 МЛН
How to use the Random Forest Regression tool: WhiteboxTools Tutorial
9:40
WhiteboxGeospatial
Рет қаралды 3,5 М.