#!/usr/bin/env python
# coding: utf-8
# ![Saudia XYZ logo](http://alasmari.net/saudia-logo.png)
# ***Code:*** whitebox tools
# ***Main Source:*** Geemap
# ***Edited by:*** Saudia.xyz
#
# Uncomment the following line to install geemap if needed.
# In[1]:
# !pip install geemap
# In[2]:
import os
import geemap
import whiteboxgui
# In[3]:
out_dir = os.path.expanduser('~/Downloads')
dem = os.path.join(out_dir, 'srtm_46_08.tif')
if not os.path.exists(dem):
dem_url = 'https://drive.google.com/file/d/1EBt4delAvxY7bdsy6y9-71XpVC62Gi8r/view?usp=sharing'
geemap.download_from_gdrive(dem_url, 'srtm_46_08.tif', out_dir, unzip=False)
# In[4]:
Map = geemap.Map(center=(24, 45), zoom=5)
Map
# In[5]:
whiteboxgui.show()
# In[6]:
whiteboxgui.show(tree=True)