How sazzysara/aquacop---3 works
AquaCop is a waterbody-monitoring and encroachment-response system for Tamil Nadu. Its central workflow combines satellite imagery and other geospatial evidence to assess water loss and threats, presents alerts and risk context to officials, and supports citizen complaints and statutory notices. The backend also documents historical-water, weather, and flood-risk capabilities; the Next.js console exposes mapping, analytics, enforcement, citizen, and simulation views. Edges follow shown imports/calls or README descriptions; some backend route wiring and frontend data integration are not visible in the excerpts.
Main entry points: main.py FastAPI Routes · page.tsx Console Entry · CitizenPortal.tsx Citizen Portal · ndwi.py Water Change Analysis
Components 30
Mission Control
- Console Entry
frontend/src/app/page.tsx - Citizen Portal
frontend/src/components/CitizenPortal.tsx - Complaint Intake
frontend/src/components/ComplaintModal.tsx - Officer Console
frontend/src/components/OfficerPortal.tsx - Authentication UI
frontend/src/components/AuthPage.tsx - Encroachment Map
frontend/src/components/EncroachmentHeatmap.tsx - Satellite Viewer
frontend/src/components/SatelliteMapViewer.tsx - Analytics Dashboard
frontend/src/components/AnalyticsDashboard.tsx - Flood Simulator
frontend/src/components/FloodSimulator.tsx - Console Navigation
frontend/src/components/Sidebar.tsx - Theme State
frontend/src/components/ThemeContext.tsx
Geospatial Analysis
- Sentinel STAC Search
backend/geo/stac_client.py - Water Change Analysis
backend/geo/ndwi.py - Threat Classification
backend/geo/threats.py - OSM Footprints
backend/geo/overpass.py - Historical Water Baseline
backend/geo/jrc_water.py - Weather Risk
backend/geo/weather.py - Marine Context
backend/geo/marine.py
Response Services
- Statutory PDF Dossier
backend/reports/pdf_generator.py
Backend Platform
- FastAPI Routes
backend/main.py - Role Authentication
backend/auth.py - Region Configuration
backend/config.py - Domain Records
backend/models.py - SQLite Database
backend/aquacop.db
Other components
- Citizen
- Officer
- JRC Water Data
- Copernicus STAC
- OpenStreetMap
- Open-Meteo
Connections 35
- Citizen → Console Entry: opens console
README.md - Officer → Console Entry: uses console
README.md - Console Entry → Citizen Portal: renders
frontend/src/app/page.tsx - Console Entry → Complaint Intake: renders
frontend/src/app/page.tsx - Console Entry → Officer Console: renders
frontend/src/app/page.tsx - Console Entry → Authentication UI: renders
frontend/src/app/page.tsx - Console Entry → Encroachment Map: renders
frontend/src/app/page.tsx - Console Entry → Analytics Dashboard: renders
frontend/src/app/page.tsx - Console Entry → Flood Simulator: renders
frontend/src/app/page.tsx - Console Entry → Console Navigation: renders
frontend/src/app/page.tsx - Encroachment Map → Satellite Viewer: uses
frontend/src/components/EncroachmentHeatmap.tsx - Console Entry → Theme State: reads theme
frontend/src/app/page.tsx - Citizen → Citizen Portal: files complaints
README.md - Citizen Portal → Complaint Intake: opens intake
README.md - Officer → Officer Console: reviews alerts
README.md - FastAPI Routes → Region Configuration: loads settings
backend/main.py - FastAPI Routes → Role Authentication: uses auth
backend/main.py - FastAPI Routes → Domain Records: uses records
backend/main.py - Domain Records → SQLite Database: persists records
backend/models.py - FastAPI Routes → Sentinel STAC Search: requests scenes
backend/main.py - FastAPI Routes → Water Change Analysis: requests analysis
backend/main.py - FastAPI Routes → Threat Classification: serves threat data
backend/main.py - FastAPI Routes → OSM Footprints: requests footprints
backend/main.py - FastAPI Routes → Historical Water Baseline: requests baseline
backend/main.py - FastAPI Routes → Weather Risk: requests forecasts
backend/main.py - FastAPI Routes → Marine Context: requests context
backend/main.py - Water Change Analysis → Sentinel STAC Search: searches scenes
backend/geo/ndwi.py - Water Change Analysis → OSM Footprints: checks footprints
backend/geo/ndwi.py - FastAPI Routes → Statutory PDF Dossier: generates notice
backend/main.py - Officer Console → Statutory PDF Dossier: requests dossier
README.md - Sentinel STAC Search → Copernicus STAC: searches imagery
backend/geo/stac_client.py - OSM Footprints → OpenStreetMap: queries footprints
README.md - Historical Water Baseline → JRC Water Data: reads baseline
README.md - Weather Risk → Open-Meteo: fetches forecasts
README.md - FastAPI Routes → Citizen Portal: serves API
README.md