← Back to Projects

How Green Is Your Town? — Urban Canopy & Change Viewer

Tech: Python, FastAPI, Rasterio, OpenCV, PostgreSQL/PostGIS, React, TypeScript
Urban Canopy Split-Screen Comparison Viewer

Overview

A full-stack geospatial web app that lets you type in any town, city, or coordinate worldwide and compare its summer tree and foliage coverage between 2017 and 2026. Instead of downloading multi-gigabyte Sentinel-2 scenes, the backend fetches only the exact bounding-box tiles needed over HTTP/2 range requests, masks out clouds, water, and unincorporated land outside city limits, and serves a split-screen slider in React.

How It Works

NDVI Classification Thresholds

Surface Class NDVI Range Interpretation
Water / Cloud / Masked <= 0.08 or SCL masked Excluded from denominator so seasonal water levels or clouds don't distort stats
Impervious / Urban / Bare Ground 0.08 – 0.36 Roads, rooftops, gravel, and dry non-foliage surfaces
Active Foliage & Tree Canopy >= 0.36 Urban tree canopy, parks, and dense summer vegetation counted toward coverage