59 whitebox
Uncomment the following line to install geemap if needed.
In [1]:
Copied!
# !pip install geemap
# !pip install geemap
In [2]:
Copied!
import os
import geemap
import whiteboxgui
import os
import geemap
import whiteboxgui
Downloading WhiteboxTools pre-compiled binary for first time use ... Decompressing WhiteboxTools_linux_amd64.zip ... WhiteboxTools package directory: /home/runner/.local/lib/python3.9/site-packages/whitebox Downloading testdata ...
In [3]:
Copied!
out_dir = os.path.expanduser('~/Downloads')
dem = os.path.join(out_dir, 'dem.tif')
if not os.path.exists(dem):
dem_url = 'https://drive.google.com/file/d/1vRkAWQYsLWCi6vcTMk8vLxoXMFbdMFn8/view?usp=sharing'
geemap.download_from_gdrive(dem_url, 'dem.tif', out_dir, unzip=False)
out_dir = os.path.expanduser('~/Downloads')
dem = os.path.join(out_dir, 'dem.tif')
if not os.path.exists(dem):
dem_url = 'https://drive.google.com/file/d/1vRkAWQYsLWCi6vcTMk8vLxoXMFbdMFn8/view?usp=sharing'
geemap.download_from_gdrive(dem_url, 'dem.tif', out_dir, unzip=False)
In [4]:
Copied!
Map = geemap.Map()
Map
Map = geemap.Map()
Map
Out[4]:
Make this Notebook Trusted to load map: File -> Trust Notebook
In [5]:
Copied!
whiteboxgui.show()
whiteboxgui.show()
In [6]:
Copied!
whiteboxgui.show(tree=True)
whiteboxgui.show(tree=True)
Last update:
2022-03-14