Spaces:
Runtime error
Runtime error
notes
Browse files- .github/workflows/compute.yml +2 -0
- .gitpod.yml +8 -0
- README.md +16 -1
.github/workflows/compute.yml
CHANGED
@@ -16,6 +16,8 @@ jobs:
|
|
16 |
uses: actions/checkout@v3
|
17 |
- name: compute
|
18 |
run: python fire.py
|
|
|
|
|
19 |
- name: push
|
20 |
env:
|
21 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
|
|
16 |
uses: actions/checkout@v3
|
17 |
- name: compute
|
18 |
run: python fire.py
|
19 |
+
- name: git-lfs
|
20 |
+
run: apt-get update && apt-get -y install git-lfs
|
21 |
- name: push
|
22 |
env:
|
23 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
.gitpod.yml
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
image: ghcr.io/boettiger-lab/solara-geospatial:latest
|
3 |
+
|
4 |
+
vscode:
|
5 |
+
extensions:
|
6 |
+
- ms-toolsai.jupyter
|
7 |
+
- ms-python.python
|
8 |
+
- ms-toolsai.jupyter-renderers
|
README.md
CHANGED
@@ -9,4 +9,19 @@ license: mit
|
|
9 |
app_port: 8765
|
10 |
---
|
11 |
|
12 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
app_port: 8765
|
10 |
---
|
11 |
|
12 |
+
NOTE: The YAML header above is required for HuggingFace Spaces deployment. Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
13 |
+
|
14 |
+
# Simple Solara demo
|
15 |
+
|
16 |
+
This respository demonstrates how we can deploy an interactive map tool from a few lines of python to an app on HuggingFace spaces using Solara.
|
17 |
+
|
18 |
+
[Solara App on HuggingFace](https://huggingface.co/spaces/cboettig/solara-test)
|
19 |
+
|
20 |
+
### Overview
|
21 |
+
|
22 |
+
This application accesses boundary polygons from the National Parks Service and fire polygon data from CalFire to determine the location of all recorded fires in Joshua Tree national park. We select the largest area fire since 2015 in the database (currently turns out to be Elk Trail Fire) and access all Sentinel-2 imagery from the two weeks before and after the fire alarm date. From this imagery, we compute the Normalized Burn Severity metric (NBS) around the fire polygon before and after the fire (using cloud-native approach of `pystac`, `odc.stac`, and dask), and plot this on a leaflet map overlay with splitmap and fire polygons.
|
23 |
+
|
24 |
+
|
25 |
+
### Code
|
26 |
+
|
27 |
+
The required code for analysis is in `fire.py`, with solara visualization in `pages/01_leafmap.py`. (For interactive )
|