# mandalanil/climatechange architecture

> Architecture diagram of the GitHub repository mandalanil/climatechange, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-16). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mandalanil/climatechange
- Repository: https://github.com/mandalanil/climatechange

## Overview

This repository supports a Florida climate–vegetation research workflow: load gridded NDVI and climate records, prepare and harmonize them, estimate trends and climate relationships, and produce manuscript figures and statistics. The main analysis scripts use shared loading, preprocessing, trend, and visualization modules; other scripts provide EOF, drought, spatial, seasonal, and auxiliary-data analyses documented in the README. Edges reflect sampled imports, calls, or README-described capabilities; unsampled subsystem internals are not inferred.

Main entry points: [`scripts/run_professional_analysis.py`](https://github.com/mandalanil/climatechange/blob/main/scripts/run_professional_analysis.py) (Professional analysis), [`Results`](https://github.com/mandalanil/climatechange/tree/main/Results) (Analysis results), [`src/data_loader.py`](https://github.com/mandalanil/climatechange/blob/main/src/data_loader.py) (Data loading), [`scripts/recreate_all_notebook_figures.py`](https://github.com/mandalanil/climatechange/blob/main/scripts/recreate_all_notebook_figures.py) (Trend figure workflow)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_inputs["Data inputs"]
  node_ndvi[("NDVI grids")]
  node_climate[("Climate grids")]
  node_boundary[("Florida boundary")]
  node_auxdata[("Auxiliary datasets")]
end

subgraph group_core["Core analysis"]
  node_config["Analysis configuration<br/>[config.py]"]
  node_loader["Data loading<br/>[data_loader.py]"]
  node_preprocess["Preprocessing<br/>[preprocessing.py]"]
  node_trends["Trend analysis<br/>[trend_analysis.py]"]
  node_visuals["Visualization<br/>[visualization.py]"]
  node_figure_runner["Trend figure workflow"]
  node_professional["Professional analysis"]
  node_cross_runner["Cross-variable workflow"]
  node_cross["Climate relationships"]
  node_pca["EOF analysis<br/>[pca_analysis.py]"]
  node_advanced["Advanced analysis"]
end

subgraph group_extensions["Research extensions"]
  node_fetch["Auxiliary data fetch"]
  node_external["External-data analyses"]
  node_drought["Drought indices"]
  node_spatial["Spatial analysis"]
  node_divergence["Spatial divergence"]
  node_hurricane["Hurricane and ENSO"]
  node_seasonal["Seasonal trends"]
end

subgraph group_outputs["Results and figures"]
  node_results[("Analysis results")]
end

node_researcher(("Researcher"))

node_researcher -->|"runs"| node_figure_runner
node_researcher -->|"runs"| node_professional
node_researcher -->|"runs"| node_cross_runner
node_ndvi -->|"loads"| node_loader
node_climate -->|"loads"| node_loader
node_boundary -->|"reads boundary"| node_loader
node_config -->|"configures"| node_loader
node_config -->|"configures"| node_preprocess
node_loader -->|"loads boundary"| node_preprocess
node_figure_runner -->|"reads settings"| node_config
node_figure_runner -->|"loads data"| node_loader
node_figure_runner -->|"prepares data"| node_preprocess
node_figure_runner -->|"computes trends"| node_trends
node_figure_runner -->|"writes figures"| node_results
node_professional -->|"reads settings"| node_config
node_professional -->|"loads data"| node_loader
node_professional -->|"prepares data"| node_preprocess
node_professional -->|"analyzes trends"| node_trends
node_professional -->|"uses EOF"| node_pca
node_professional -->|"creates figures"| node_visuals
node_professional -->|"runs analysis"| node_advanced
node_professional -->|"writes results"| node_results
node_cross_runner -->|"reads settings"| node_config
node_cross_runner -->|"runs analyses"| node_cross
node_cross_runner -->|"writes statistics"| node_results
node_researcher -->|"runs"| node_fetch
node_fetch -->|"downloads"| node_auxdata
node_researcher -.->|"runs"| node_external
node_external -.->|"analyzes"| node_auxdata
node_external -->|"writes statistics"| node_results
node_researcher -->|"runs"| node_drought
node_drought -->|"writes results"| node_results
node_researcher -->|"runs"| node_spatial
node_spatial -->|"writes analysis"| node_results
node_researcher -->|"runs"| node_divergence
node_divergence -->|"writes figures"| node_results
node_researcher -->|"runs"| node_hurricane
node_hurricane -->|"writes correlations"| node_results
node_researcher -->|"runs"| node_seasonal
node_seasonal -->|"writes figures"| node_results
node_pca -.->|"supports EOF work"| node_advanced

click node_ndvi "https://github.com/mandalanil/climatechange/tree/main/compiled_data"
click node_climate "https://github.com/mandalanil/climatechange/tree/main/nclimgrid_florida_compiled"
click node_boundary "https://github.com/mandalanil/climatechange/tree/main/data/state_boundary"
click node_auxdata "https://github.com/mandalanil/climatechange/tree/main/Results/EXTERNAL"
click node_config "https://github.com/mandalanil/climatechange/blob/main/src/config.py"
click node_loader "https://github.com/mandalanil/climatechange/blob/main/src/data_loader.py"
click node_preprocess "https://github.com/mandalanil/climatechange/blob/main/src/preprocessing.py"
click node_trends "https://github.com/mandalanil/climatechange/blob/main/src/trend_analysis.py"
click node_visuals "https://github.com/mandalanil/climatechange/blob/main/src/visualization.py"
click node_figure_runner "https://github.com/mandalanil/climatechange/blob/main/scripts/recreate_all_notebook_figures.py"
click node_professional "https://github.com/mandalanil/climatechange/blob/main/scripts/run_professional_analysis.py"
click node_cross_runner "https://github.com/mandalanil/climatechange/blob/main/scripts/run_cross_variable_analysis.py"
click node_cross "https://github.com/mandalanil/climatechange/blob/main/src/cross_variable_analysis.py"
click node_pca "https://github.com/mandalanil/climatechange/blob/main/src/pca_analysis.py"
click node_advanced "https://github.com/mandalanil/climatechange/blob/main/src/advanced_analysis.py"
click node_fetch "https://github.com/mandalanil/climatechange/blob/main/scripts/fetch_external_data.py"
click node_external "https://github.com/mandalanil/climatechange/blob/main/scripts/run_external_analyses.py"
click node_drought "https://github.com/mandalanil/climatechange/blob/main/scripts/compute_drought_indices.py"
click node_spatial "https://github.com/mandalanil/climatechange/blob/main/scripts/spatial_regression.py"
click node_divergence "https://github.com/mandalanil/climatechange/blob/main/scripts/create_spatial_divergence_figures.py"
click node_hurricane "https://github.com/mandalanil/climatechange/blob/main/scripts/hurricane_enso_correlation.py"
click node_seasonal "https://github.com/mandalanil/climatechange/blob/main/scripts/make_seasonal_split_figure.py"
click node_results "https://github.com/mandalanil/climatechange/tree/main/Results"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_ndvi,node_climate,node_boundary,node_auxdata toneBlue
class node_config,node_loader,node_preprocess,node_trends,node_visuals,node_figure_runner,node_professional,node_cross_runner,node_cross,node_pca,node_advanced toneAmber
class node_fetch,node_external,node_drought,node_spatial,node_divergence,node_hurricane,node_seasonal toneMint
class node_results toneRose
class node_researcher toneIndigo
```

## Components

### Data inputs

- [NDVI grids](https://github.com/mandalanil/climatechange/tree/main/compiled_data): `compiled_data`
- [Climate grids](https://github.com/mandalanil/climatechange/tree/main/nclimgrid_florida_compiled): `nclimgrid_florida_compiled`
- [Florida boundary](https://github.com/mandalanil/climatechange/tree/main/data/state_boundary): `data/state_boundary`
- [Auxiliary datasets](https://github.com/mandalanil/climatechange/tree/main/Results/EXTERNAL): `Results/EXTERNAL`

### Core analysis

- [Analysis configuration](https://github.com/mandalanil/climatechange/blob/main/src/config.py): `src/config.py`
- [Data loading](https://github.com/mandalanil/climatechange/blob/main/src/data_loader.py): `src/data_loader.py`
- [Preprocessing](https://github.com/mandalanil/climatechange/blob/main/src/preprocessing.py): `src/preprocessing.py`
- [Trend analysis](https://github.com/mandalanil/climatechange/blob/main/src/trend_analysis.py): `src/trend_analysis.py`
- [Visualization](https://github.com/mandalanil/climatechange/blob/main/src/visualization.py): `src/visualization.py`
- [Trend figure workflow](https://github.com/mandalanil/climatechange/blob/main/scripts/recreate_all_notebook_figures.py): `scripts/recreate_all_notebook_figures.py`
- [Professional analysis](https://github.com/mandalanil/climatechange/blob/main/scripts/run_professional_analysis.py): `scripts/run_professional_analysis.py`
- [Cross-variable workflow](https://github.com/mandalanil/climatechange/blob/main/scripts/run_cross_variable_analysis.py): `scripts/run_cross_variable_analysis.py`
- [Climate relationships](https://github.com/mandalanil/climatechange/blob/main/src/cross_variable_analysis.py): `src/cross_variable_analysis.py`
- [EOF analysis](https://github.com/mandalanil/climatechange/blob/main/src/pca_analysis.py): `src/pca_analysis.py`
- [Advanced analysis](https://github.com/mandalanil/climatechange/blob/main/src/advanced_analysis.py): `src/advanced_analysis.py`

### Research extensions

- [Auxiliary data fetch](https://github.com/mandalanil/climatechange/blob/main/scripts/fetch_external_data.py): `scripts/fetch_external_data.py`
- [External-data analyses](https://github.com/mandalanil/climatechange/blob/main/scripts/run_external_analyses.py): `scripts/run_external_analyses.py`
- [Drought indices](https://github.com/mandalanil/climatechange/blob/main/scripts/compute_drought_indices.py): `scripts/compute_drought_indices.py`
- [Spatial analysis](https://github.com/mandalanil/climatechange/blob/main/scripts/spatial_regression.py): `scripts/spatial_regression.py`
- [Spatial divergence](https://github.com/mandalanil/climatechange/blob/main/scripts/create_spatial_divergence_figures.py): `scripts/create_spatial_divergence_figures.py`
- [Hurricane and ENSO](https://github.com/mandalanil/climatechange/blob/main/scripts/hurricane_enso_correlation.py): `scripts/hurricane_enso_correlation.py`
- [Seasonal trends](https://github.com/mandalanil/climatechange/blob/main/scripts/make_seasonal_split_figure.py): `scripts/make_seasonal_split_figure.py`

### Results and figures

- [Analysis results](https://github.com/mandalanil/climatechange/tree/main/Results): `Results`

### Other components

- **Researcher**

## Connections

- Researcher → Trend figure workflow: runs (evidence: `README.md`)
- Researcher → Professional analysis: runs (evidence: `README.md`)
- Researcher → Cross-variable workflow: runs (evidence: `README.md`)
- NDVI grids → Data loading: loads (evidence: `src/data_loader.py`)
- Climate grids → Data loading: loads (evidence: `src/data_loader.py`)
- Florida boundary → Data loading: reads boundary (evidence: `src/data_loader.py`)
- Analysis configuration → Data loading: configures (evidence: `src/data_loader.py`)
- Analysis configuration → Preprocessing: configures (evidence: `src/preprocessing.py`)
- Data loading → Preprocessing: loads boundary (evidence: `src/preprocessing.py`)
- Trend figure workflow → Analysis configuration: reads settings (evidence: `scripts/recreate_all_notebook_figures.py`)
- Trend figure workflow → Data loading: loads data (evidence: `scripts/recreate_all_notebook_figures.py`)
- Trend figure workflow → Preprocessing: prepares data (evidence: `scripts/recreate_all_notebook_figures.py`)
- Trend figure workflow → Trend analysis: computes trends (evidence: `scripts/recreate_all_notebook_figures.py`)
- Trend figure workflow → Analysis results: writes figures (evidence: `README.md`)
- Professional analysis → Analysis configuration: reads settings (evidence: `scripts/run_professional_analysis.py`)
- Professional analysis → Data loading: loads data (evidence: `scripts/run_professional_analysis.py`)
- Professional analysis → Preprocessing: prepares data (evidence: `scripts/run_professional_analysis.py`)
- Professional analysis → Trend analysis: analyzes trends (evidence: `scripts/run_professional_analysis.py`)
- Professional analysis → EOF analysis: uses EOF (evidence: `scripts/run_professional_analysis.py`)
- Professional analysis → Visualization: creates figures (evidence: `scripts/run_professional_analysis.py`)
- Professional analysis → Advanced analysis: runs analysis (evidence: `scripts/run_professional_analysis.py`)
- Professional analysis → Analysis results: writes results (evidence: `README.md`)
- Cross-variable workflow → Analysis configuration: reads settings (evidence: `scripts/run_cross_variable_analysis.py`)
- Cross-variable workflow → Climate relationships: runs analyses (evidence: `scripts/run_cross_variable_analysis.py`)
- Cross-variable workflow → Analysis results: writes statistics (evidence: `README.md`)
- Researcher → Auxiliary data fetch: runs (evidence: `README.md`)
- Auxiliary data fetch → Auxiliary datasets: downloads (evidence: `README.md`)
- Researcher → External-data analyses: runs (evidence: `README.md`)
- External-data analyses → Auxiliary datasets: analyzes (evidence: `README.md`)
- External-data analyses → Analysis results: writes statistics (evidence: `README.md`)
- Researcher → Drought indices: runs (evidence: `README.md`)
- Drought indices → Analysis results: writes results (evidence: `README.md`)
- Researcher → Spatial analysis: runs (evidence: `README.md`)
- Spatial analysis → Analysis results: writes analysis (evidence: `README.md`)
- Researcher → Spatial divergence: runs (evidence: `README.md`)
- Spatial divergence → Analysis results: writes figures (evidence: `README.md`)
- Researcher → Hurricane and ENSO: runs (evidence: `README.md`)
- Hurricane and ENSO → Analysis results: writes correlations (evidence: `README.md`)
- Researcher → Seasonal trends: runs (evidence: `README.md`)
- Seasonal trends → Analysis results: writes figures (evidence: `README.md`)
- EOF analysis → Advanced analysis: supports EOF work
