How aymanalwani/earthtrend works
EarthTrend is a Streamlit climate time-series explorer. Users select a variable, location, period, and resolution; the app retrieves live NASA POWER point data or saved NASA Giovanni area averages, prepares the series, estimates and tests trends, then presents charts, explanations, context, and a CSV download. A separate offline workflow cross-checks Jordan station temperatures against MERRA-2. The graph follows shown calls and README-documented capabilities; some UI and pipeline details are only partially excerpted, so unsupported links are omitted.
Main entry points: components.py Results interface · integration.py Analysis integration · pipeline.py Analysis pipeline · validate_stations.py Station cross-check
Components 18
App workflow
- Streamlit entry
app.py - Analysis pipeline
earthtrend/pipeline.py
Data sources
- POWER client
earthtrend/data/power_client.py - Giovanni loader
earthtrend/data/giovanni.py - Saved series
data/processed - NASA POWER
Analysis and charts
- Series preparation
earthtrend/preprocessing.py - Analysis integration
earthtrend/integration.py - Trend statistics
earthtrend/analysis.py - Plot adapter
earthtrend/plotting.py - Scientific charts
earthtrend/visualization.py
Results interface
- Results interface
earthtrend/ui/components.py - Chart section
earthtrend/ui/charts.py - Location map
earthtrend/ui/maps.py - Result wording
earthtrend/ui/text.py
Offline validation
- Station cross-check
scripts/validate_stations.py - NOAA observations
Other components
- User
Connections 20
- User → Streamlit entry: configures
README.md - Streamlit entry → Results interface: renders controls
app.py - Streamlit entry → Analysis pipeline: runs analysis
app.py - Analysis pipeline → POWER client: fetches point data
earthtrend/pipeline.py - Analysis pipeline → Giovanni loader: loads saved data
earthtrend/pipeline.py - Giovanni loader → Saved series: reads series
earthtrend/data/giovanni.py - POWER client → NASA POWER: requests data
earthtrend/data/power_client.py - Analysis pipeline → Analysis integration: delegates steps
earthtrend/pipeline.py - Analysis integration → Series preparation: preprocesses
earthtrend/integration.py - Analysis integration → Trend statistics: analyzes series
earthtrend/integration.py - Analysis integration → Plot adapter: builds figure
earthtrend/integration.py - Plot adapter → Scientific charts: delegates charting
earthtrend/plotting.py - Results interface → Analysis integration: requests figure
earthtrend/ui/components.py - Results interface → Chart section: renders charts
earthtrend/ui/components.py - Results interface → Location map: renders location
earthtrend/ui/components.py - Results interface → Result wording: formats results
earthtrend/ui/components.py - Results interface → User: presents results
README.md - Station cross-check → NOAA observations: downloads observations
README.md - Station cross-check → POWER client: fetches comparison data
scripts/validate_stations.py - Station cross-check → Trend statistics: tests differences
scripts/validate_stations.py