Skip to content

Examples#

Although, PyWBT doesn't have any dependencies, the example notebooks have several dependencies. You can install all the dependencies using micromamba (or conda or mamba):

micormamba create -n wbt pywbt folium geopandas ipykernel ipywidgets mapclassify matplotlib-base planetary-computer seamless-3dep pystac-client rioxarray shapely>=2

This will create a new environment called wbt with all the required packages. You can also download this environment.yml and create the environment using:

micromamba env create -f environment.yml

Alternatively, though not recommended, you can install the dependencies using pip:

python -m venv ./venv
source ./venv/bin/activate
pip install pywbt folium geopandas ipykernel ipywidgets mapclassify matplotlib planetary-computer pyogrio seamless-3dep pystac rasterio rioxarray shapely

If you use the pip method, you need to install gdal for your operating system, following the instructions in the GDAL documentation. It's recommended to avoid using pip since it can be difficult to install gdal properly.

  • Basin Delineation Basin Delineation

  • Topographic Wetness Index Topographic Wetness Index