How anaydhawan/ucip works
UCIP is a research-backed decision-support platform for ranking Mumbai wards by heat vulnerability and explaining where cooling interventions may help. Its main workflow transforms Earth-observation and city data through an orchestrated analysis pipeline into HVI scores and nature-based-solutions recommendations; the web dashboard and read-only API expose ward, cell, lookup, and export data. Python and TypeScript clients, plus an MCP server, provide alternate access. The README documents green-cover change and methodology capabilities; sampled-source limits mean some pipeline and UI connections are documented rather than verified in code.
Main entry points: v1 Public API routes · 05_hvi.py HVI scoring · _lib.ts API data access · page.tsx Ward dashboard
Components 21
Analysis pipeline
- Pipeline runner
pipeline/run_pipeline.py - Earth observation
pipeline/02_gee_layers.py - Spatial grid
pipeline/01_grid.py - HVI scoring
pipeline/05_hvi.py - Cooling recommendations
pipeline/06_nbs.py - Green-cover change
pipeline/09_ndvi_change.py - Ward profiles
pipeline/10_ward_profile.py - Data publishing
pipeline/_publish.py
Data and API
- Public API routes
frontend/src/app/api/v1 - API data access
frontend/src/app/api/v1/_lib.ts - Supabase database
- Committed snapshots
Web experience
- Ward dashboard
frontend/src/app/dashboard/page.tsx - Ward data client
frontend/src/lib/useWardData.ts - Methodology view
frontend/src/app/methodology/page.tsx - Budget simulator
frontend/src/app/simulate/page.tsx
External access
- Python client
clients/python/src/ucip/client.py - TypeScript client
clients/typescript/src/index.ts - MCP tools
mcp-server/src/index.ts - MCP API client
mcp-server/src/client.ts
Other components
- Planners
Connections 20
- Planners → Ward dashboard: explore wards
- Pipeline runner → Earth observation: runs stages
pipeline/run_pipeline.py - Earth observation → Spatial grid: derive layers
- Spatial grid → HVI scoring: score cells
- HVI scoring → Cooling recommendations: inform recommendations
- HVI scoring → Green-cover change: analyze alongside
- HVI scoring → Ward profiles: roll up wards
- Pipeline runner → Data publishing: publishes run log
pipeline/run_pipeline.py - Data publishing → Committed snapshots: publish data
- Public API routes → API data access: uses shared access
frontend/src/app/api/v1/wards/route.ts - API data access → Supabase database: queries
frontend/src/app/api/v1/_lib.ts - API data access → Committed snapshots: reads fallback
frontend/src/app/api/v1/_lib.ts - Ward dashboard → Ward data client: loads ward data
- Ward data client → Public API routes: requests data
- Methodology view → Ward dashboard: explains scoring
- Budget simulator → Public API routes: uses platform data
- Python client → Public API routes: calls REST API
clients/python/src/ucip/client.py - TypeScript client → Public API routes: calls REST API
clients/typescript/src/index.ts - MCP tools → MCP API client: dispatches tools
mcp-server/src/index.ts - MCP API client → Public API routes: calls REST API
mcp-server/src/client.ts