diff --git a/pages/01_leafmap.py b/pages/01_leafmap.py index 03336b6..f5fdae7 100644 --- a/pages/01_leafmap.py +++ b/pages/01_leafmap.py @@ -23,8 +23,8 @@ datetime = big.ALARM_DATE.item() + "/" + big.CONT_DATE.item() box = big.buffer(0.01).bounds.to_numpy()[0] # Fire bbox + buffer #box = jtree.to_crs("EPSG:4326").bounds.to_numpy()[0] # Park bbox -before_url = "/vsicurl/https://huggingface.co/datasets/cboettig/solara-data/resolve/main/before.tif" -after_url = "/vsicurl/https://huggingface.co/datasets/cboettig/solara-data/resolve/main/after.tif" +before_url = "https://huggingface.co/datasets/cboettig/solara-data/resolve/main/before.tif" +after_url = "https://huggingface.co/datasets/cboettig/solara-data/resolve/main/after.tif" class Map(leafmap.Map): diff --git a/solara-test.ipynb b/solara-test.ipynb index 1088531..1fdf855 100644 --- a/solara-test.ipynb +++ b/solara-test.ipynb @@ -137,6 +137,17 @@ "nbs.isel(time=(nbs.time.size-1)).rio.to_raster(raster_path=\"after.tif\", driver=\"COG\")\n" ] }, + { + "cell_type": "code", + "execution_count": 16, + "metadata": {}, + "outputs": [], + "source": [ + "\n", + "before_url = \"/vsicurl/https://huggingface.co/datasets/cboettig/solara-data/resolve/main/before.tif\"\n", + "after_url = \"/vsicurl/https://huggingface.co/datasets/cboettig/solara-data/resolve/main/after.tif\"\n" + ] + }, { "cell_type": "code", "execution_count": 14, @@ -152,7 +163,7 @@ " self.add_gdf(big, later_name = big.FIRE_NAME.item())\n", " #self.add_raster(\"before.tif\", layer_name = \"before\", colormap=\"viridis\")\n", " #self.add_raster(\"after.tif\", layer_name = \"after\", colormap=\"viridis\")\n", - " self.split_map(\"before.tif\", \"after.tif\")\n", + " self.split_map(before_url, after_url)\n", " #self.add_stac_gui()\n", "\n", "\n",