Skip to content

Commit

Permalink
no prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
cboettig committed Dec 19, 2023
1 parent ecb4daa commit 47d59cb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pages/01_leafmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
13 changes: 12 additions & 1 deletion solara-test.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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",
Expand Down

0 comments on commit 47d59cb

Please sign in to comment.