Glaciers

View a running version of this project. | Download this project.


Glaciers explorer using Datashader

This notebook provides an annotated HoloViews+Panel implementation of a dashboard originally developed in Plotly+Dash for viewing data about the Earth's glaciers from the Open Global Glacier Model. To run it, first:

conda install -c pyviz pandas=0.24 param=1.9.0 panel=0.5.1 holoviews=1.12.2 geoviews=1.6.2 datashader=0.7.0

Next, save the data file as data/oggm_glacier_explorer.csv (and gzip it if desired).

The dashboard can then be used here as a cell in the Jupyter notebook, or you can run it as a separate server using:

bokeh serve glaciers.ipynb --show

This notebook is essentially the same as Glaciers.ipynb but uses unaggregated data that is practical only with Datashader.

In [1]:
import os, numpy as np, pandas as pd, cartopy.crs as ccrs, bokeh
import holoviews as hv, geoviews as gv, datashader as ds

from colorcet import bmy
from holoviews.util import Dynamic
from holoviews.operation.datashader import rasterize, datashade

hv.extension('bokeh', width=100)