9. Interactively explore data#
PolarToolkit provides some functions for interactively exploring gridded and point datasets with the use of the ipyleaflet python package. These are some necessary optional dependencies for the interactive functions, you’ll need to install these with:
pip install ipyleaflet ipywidgets ipython
or
mamba install ipyleaflet ipywidgets ipython
[1]:
import polartoolkit as ptk
[2]:
# fetch bed topography data at 20km resolution
bedmap2_bed = ptk.fetch.bedmap2(layer="bed", spacing=20e3)
# fetch geothermal heat flux point measurements
GHF_point_data = ptk.fetch.ghf(version="burton-johnson-2020", points=True)
[3]:
ptk.interactive_data(
grid=bedmap2_bed,
points=GHF_point_data[["x", "y", "GHF"]],
points_z="GHF",
coast=True,
epsg="3031",
)
[3]:
[ ]: