From ec970f1b6f3a9b259f299608b0ae4070e25726d9 Mon Sep 17 00:00:00 2001 From: Qiusheng Wu Date: Mon, 1 Jul 2024 15:56:02 -0400 Subject: [PATCH] Add notebook --- notebook/chla.html | 34 +++++++++++++++++++++++++++++++ notebook/chla.ipynb | 49 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 83 insertions(+) create mode 100644 notebook/chla.html create mode 100644 notebook/chla.ipynb diff --git a/notebook/chla.html b/notebook/chla.html new file mode 100644 index 0000000..a26d1d8 --- /dev/null +++ b/notebook/chla.html @@ -0,0 +1,34 @@ + + + +PACE Chlorophyll-a + + + + + +
+ + + \ No newline at end of file diff --git a/notebook/chla.ipynb b/notebook/chla.ipynb new file mode 100644 index 0000000..4806c68 --- /dev/null +++ b/notebook/chla.ipynb @@ -0,0 +1,49 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "import leafmap.maplibregl as leafmap" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "m = leafmap.Map(style=\"3d-terrain\")\n", + "url = \"https://github.com/opengeos/pace-data/releases/download/chla/latest.tif\"\n", + "m.add_colorbar(cmap=\"jet\", vmin=0, vmax=25, label=\"Chlorophyll-a concentration (mg/m3)\")\n", + "m.add_layer_control(layer_ids=[\"Chlorophyll-a\"])\n", + "m.add_cog_layer(url, colormap_name=\"jet\", vmin=0, vmax=25, name=\"Chlorophyll-a\")\n", + "m.to_html(\"chla.html\", title=\"PACE Chlorophyll-a\")\n", + "m" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3 (ipykernel)", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.11.8" + } + }, + "nbformat": 4, + "nbformat_minor": 4 +}