This is water quality assessment tool.
# WaterWatch Africa - Water Quality Analysis Dashboard
A full-stack web application that leverages Google Earth Engine (GEE) and Sentinel-2 satellite imagery to monitor water quality over time. Users can draw an Area of Interest (AOI) on an interactive map or select predefined waterbodies to instantly generate a time-series analysis of **Turbidity**, **Chlorophyll-a**, and **Surface Area**.
## 🌟 Features
* **Triple Metric Analysis**: Simultaneously computes Turbidity (NDTI), Chlorophyll indices (NDCI), and Water Surface Area (NDWI).
* **Interactive Map**: Built with React Leaflet. Allows users to draw custom polygons/rectangles or select predefined major water bodies (e.g., Lake Victoria, Lake Tahoe).
* **Map Layer Toggling & Legend**: View spatial heatmaps of median Turbidity or Chlorophyll directly overlaid on the satellite map. Toggle layers on/off and view the dynamic color legend.
* **Google Earth Engine Integration**: Communicates with GEE via a Node.js Express backend (or the provided Python FastAPI backend) to process heavy satellite data without overloading the client.
* **Analytics Dashboard**: Visualizes the water quality time-series using Recharts, highlighting anomalies, mean values, and status distributions.
* **Advanced Analysis**: View seasonal trends (monthly averages) and status distributions.
* **Methodology Section**: Built-in documentation explaining the scientific indices (NDTI, NDCI, NDWI) and satellite data used.
* **Data Export**: Download the raw time-series data (CSV) or your drawn Area of Interest boundary (GeoJSON).
## 🔬 Scientific Methodology
The application uses the **Copernicus Sentinel-2** satellite constellation, which provides high-resolution (10m-20m) multispectral imagery.
- **Turbidity (NDTI)**: Calculated using the Normalized Difference Turbidity Index `(Band 4 - Band 3) / (Band 4 + Band 3)`. It measures suspended sediments by comparing Red and Green light reflectance.
- **Chlorophyll (NDCI)**: Calculated …