Spaces:
Sleeping
Sleeping
| title: DEPTH Risk Map | |
| emoji: 🗺️ | |
| colorFrom: blue | |
| colorTo: indigo | |
| sdk: docker | |
| app_port: 7860 | |
| pinned: false | |
| # DEPTH Risk Map | |
| Interactive migration-risk map for Mexico, developed by the University of | |
| Nottingham's Rights Lab. Humanitarian, violence and infrastructure indicators | |
| overlaid on a rHEALPix hierarchical spatial grid. | |
| ## How this Space works | |
| - `Dockerfile` builds an R image (`rocker/geospatial`), installs the app | |
| packages, and downloads `depth_mexico.duckdb` from the | |
| [`edgarodriguez/depth_alpha`](https://huggingface.co/datasets/edgarodriguez/depth_alpha) | |
| dataset at build time (baked into the image). | |
| - The Shiny app (`10.11_draw_query_indicators_v10_HF.R`) opens that DuckDB | |
| read-only and serves on `0.0.0.0:7860`. | |
| ## Files | |
| | File | Role | | |
| |---|---| | |
| | `10.11_draw_query_indicators_v10_HF.R` | Shiny app (HF build of v9) | | |
| | `helpers.R` | DuckDB connection + formatting helpers | | |
| | `10.08_styles.css` | App stylesheet | | |
| | `Dockerfile` | Image build + DuckDB bake-in | | |
| ## Updating | |
| The app database is not stored in this Space. To refresh data, update | |
| `depth_mexico.duckdb` in the `edgarodriguez/depth_alpha` dataset and rebuild | |
| (Factory rebuild). App-logic changes are made upstream in `v9`, then this file | |
| is regenerated from it. | |