# ctu-csiro/csiroboeingphase5-vietnam architecture

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

- Interactive diagram: https://gitdiagram.com/ctu-csiro/csiroboeingphase5-vietnam
- Repository: https://github.com/ctu-csiro/csiroboeingphase5-vietnam

## Overview

This repository combines a notebook-based land-cover classification project with a reusable Digital Earth Africa geospatial toolkit. The apparent project workflow is training, prediction, and comparison, producing classified raster outputs; the notebooks themselves were not sampled, so their detailed handoffs are unverified. The toolkit provides data handling, indices, classification, spatial/coastal analysis, and interactive apps. Edges below are limited to relationships visible in excerpts or the SOURCE INDEX; dashed links mark the notebook workflow inferred from filenames.

Main entry points: [`deafrica_tools/app/animations.py`](https://github.com/ctu-csiro/csiroboeingphase5-vietnam/blob/main/deafrica_tools/app/animations.py) (Animation App), [`deafrica_tools/spatial.py`](https://github.com/ctu-csiro/csiroboeingphase5-vietnam/blob/main/deafrica_tools/spatial.py) (Spatial Analysis), [`deafrica_tools/dask.py`](https://github.com/ctu-csiro/csiroboeingphase5-vietnam/blob/main/deafrica_tools/dask.py) (Dask Clusters), [`deafrica_tools/wetlands.py`](https://github.com/ctu-csiro/csiroboeingphase5-vietnam/blob/main/deafrica_tools/wetlands.py) (Wetlands Analysis)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_project["Land Classification"]
  node_train_nb["Train Model<br/>[01.train_ODC.ipynb]"]
  node_predict_nb["Predict Classes"]
  node_compare_nb["Compare Results"]
  node_training_code["ODC Training<br/>[new_import_ODC.py]"]
  node_classified_raster["Classified Raster"]
end

subgraph group_core["Geospatial Toolkit"]
  node_indices["Band Indices<br/>[bandindices.py]"]
  node_classification["Classification Methods<br/>[classification.py]"]
  node_datahandling["Data Handling<br/>[datahandling.py]"]
  node_spatial["Spatial Analysis<br/>[spatial.py]"]
  node_coastal["Coastal Analysis<br/>[coastal.py]"]
  node_wetlands["Wetlands Analysis<br/>[wetlands.py]"]
  node_temporal["Temporal Analysis<br/>[temporal.py]"]
  node_plotting["Plotting<br/>[plotting.py]"]
end

subgraph group_apps["Interactive Apps"]
  node_app_animations["Animation App<br/>[animations.py]"]
  node_app_coastlines["Coastline App<br/>[deacoastlines.py]"]
  node_app_forest["Forest Monitoring"]
  node_app_export["Image Export<br/>[imageexport.py]"]
  node_app_wetlands["Wetlands Insight"]
  node_widgets["Widget Constructors"]
end

subgraph group_support["Data Support"]
  node_dask["Dask Clusters<br/>[dask.py]"]
  node_area_interest["Area of Interest<br/>[areaofinterest.py]"]
  node_era5["ERA5 Loader<br/>[load_era5.py]"]
  node_isda["ISDA Loader<br/>[load_isda.py]"]
  node_soil_moisture["Soil Moisture Loader"]
end

node_analyst(("Analyst"))

node_analyst -.->|"starts training"| node_train_nb
node_train_nb -.->|"uses training code"| node_training_code
node_train_nb -.->|"continues to prediction"| node_predict_nb
node_predict_nb -.->|"produces raster"| node_classified_raster
node_predict_nb -.->|"continues to comparison"| node_compare_nb
node_training_code -->|"imports"| node_indices
node_training_code -.->|"trains classifier"| node_classification
node_classification -->|"imports"| node_spatial
node_datahandling -->|"imports"| node_indices
node_spatial -->|"imports"| node_dask
node_coastal -->|"imports"| node_datahandling
node_wetlands -->|"imports"| node_indices
node_wetlands -->|"imports"| node_datahandling
node_wetlands -->|"imports"| node_spatial
node_wetlands -->|"imports"| node_classification
node_temporal -->|"imports"| node_dask
node_app_animations -->|"imports"| node_dask
node_app_animations -->|"imports"| node_spatial
node_app_animations -->|"imports"| node_datahandling
node_app_animations -->|"imports"| node_plotting
node_app_animations -->|"imports"| node_coastal
node_app_animations -->|"imports"| node_widgets
node_app_coastlines -->|"imports"| node_coastal
node_app_coastlines -->|"imports"| node_widgets
node_app_forest -->|"imports"| node_spatial
node_app_forest -->|"imports"| node_dask
node_app_forest -->|"imports"| node_widgets
node_app_export -->|"imports"| node_spatial
node_app_export -->|"imports"| node_dask
node_app_wetlands -->|"imports"| node_dask
node_app_wetlands -->|"imports"| node_wetlands
node_app_wetlands -->|"imports"| node_widgets

click node_train_nb "https://github.com/ctu-csiro/csiroboeingphase5-vietnam/blob/main/01.train_ODC.ipynb"
click node_predict_nb "https://github.com/ctu-csiro/csiroboeingphase5-vietnam/blob/main/02.predict_ODC.ipynb"
click node_compare_nb "https://github.com/ctu-csiro/csiroboeingphase5-vietnam/blob/main/03.compare_ODC.ipynb"
click node_training_code "https://github.com/ctu-csiro/csiroboeingphase5-vietnam/blob/main/new_import_ODC.py"
click node_classified_raster "https://github.com/ctu-csiro/csiroboeingphase5-vietnam/blob/main/KetQuaPhanLoaiDat.tif"
click node_indices "https://github.com/ctu-csiro/csiroboeingphase5-vietnam/blob/main/deafrica_tools/bandindices.py"
click node_classification "https://github.com/ctu-csiro/csiroboeingphase5-vietnam/blob/main/deafrica_tools/classification.py"
click node_datahandling "https://github.com/ctu-csiro/csiroboeingphase5-vietnam/blob/main/deafrica_tools/datahandling.py"
click node_spatial "https://github.com/ctu-csiro/csiroboeingphase5-vietnam/blob/main/deafrica_tools/spatial.py"
click node_coastal "https://github.com/ctu-csiro/csiroboeingphase5-vietnam/blob/main/deafrica_tools/coastal.py"
click node_wetlands "https://github.com/ctu-csiro/csiroboeingphase5-vietnam/blob/main/deafrica_tools/wetlands.py"
click node_temporal "https://github.com/ctu-csiro/csiroboeingphase5-vietnam/blob/main/deafrica_tools/temporal.py"
click node_plotting "https://github.com/ctu-csiro/csiroboeingphase5-vietnam/blob/main/deafrica_tools/plotting.py"
click node_dask "https://github.com/ctu-csiro/csiroboeingphase5-vietnam/blob/main/deafrica_tools/dask.py"
click node_area_interest "https://github.com/ctu-csiro/csiroboeingphase5-vietnam/blob/main/deafrica_tools/areaofinterest.py"
click node_era5 "https://github.com/ctu-csiro/csiroboeingphase5-vietnam/blob/main/deafrica_tools/load_era5.py"
click node_isda "https://github.com/ctu-csiro/csiroboeingphase5-vietnam/blob/main/deafrica_tools/load_isda.py"
click node_soil_moisture "https://github.com/ctu-csiro/csiroboeingphase5-vietnam/blob/main/deafrica_tools/load_soil_moisture.py"
click node_app_animations "https://github.com/ctu-csiro/csiroboeingphase5-vietnam/blob/main/deafrica_tools/app/animations.py"
click node_app_coastlines "https://github.com/ctu-csiro/csiroboeingphase5-vietnam/blob/main/deafrica_tools/app/deacoastlines.py"
click node_app_forest "https://github.com/ctu-csiro/csiroboeingphase5-vietnam/blob/main/deafrica_tools/app/forestmonitoring.py"
click node_app_export "https://github.com/ctu-csiro/csiroboeingphase5-vietnam/blob/main/deafrica_tools/app/imageexport.py"
click node_app_wetlands "https://github.com/ctu-csiro/csiroboeingphase5-vietnam/blob/main/deafrica_tools/app/wetlandsinsighttool.py"
click node_widgets "https://github.com/ctu-csiro/csiroboeingphase5-vietnam/blob/main/deafrica_tools/app/widgetconstructors.py"

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_train_nb,node_predict_nb,node_compare_nb,node_training_code,node_classified_raster toneBlue
class node_indices,node_classification,node_datahandling,node_spatial,node_coastal,node_wetlands,node_temporal,node_plotting toneAmber
class node_app_animations,node_app_coastlines,node_app_forest,node_app_export,node_app_wetlands,node_widgets toneMint
class node_dask,node_area_interest,node_era5,node_isda,node_soil_moisture toneRose
class node_analyst toneIndigo
```

## Components

### Land Classification

- [Train Model](https://github.com/ctu-csiro/csiroboeingphase5-vietnam/blob/main/01.train_ODC.ipynb): `01.train_ODC.ipynb`
- [Predict Classes](https://github.com/ctu-csiro/csiroboeingphase5-vietnam/blob/main/02.predict_ODC.ipynb): `02.predict_ODC.ipynb`
- [Compare Results](https://github.com/ctu-csiro/csiroboeingphase5-vietnam/blob/main/03.compare_ODC.ipynb): `03.compare_ODC.ipynb`
- [ODC Training](https://github.com/ctu-csiro/csiroboeingphase5-vietnam/blob/main/new_import_ODC.py): `new_import_ODC.py`
- [Classified Raster](https://github.com/ctu-csiro/csiroboeingphase5-vietnam/blob/main/KetQuaPhanLoaiDat.tif): `KetQuaPhanLoaiDat.tif`

### Geospatial Toolkit

- [Band Indices](https://github.com/ctu-csiro/csiroboeingphase5-vietnam/blob/main/deafrica_tools/bandindices.py): `deafrica_tools/bandindices.py`
- [Classification Methods](https://github.com/ctu-csiro/csiroboeingphase5-vietnam/blob/main/deafrica_tools/classification.py): `deafrica_tools/classification.py`
- [Data Handling](https://github.com/ctu-csiro/csiroboeingphase5-vietnam/blob/main/deafrica_tools/datahandling.py): `deafrica_tools/datahandling.py`
- [Spatial Analysis](https://github.com/ctu-csiro/csiroboeingphase5-vietnam/blob/main/deafrica_tools/spatial.py): `deafrica_tools/spatial.py`
- [Coastal Analysis](https://github.com/ctu-csiro/csiroboeingphase5-vietnam/blob/main/deafrica_tools/coastal.py): `deafrica_tools/coastal.py`
- [Wetlands Analysis](https://github.com/ctu-csiro/csiroboeingphase5-vietnam/blob/main/deafrica_tools/wetlands.py): `deafrica_tools/wetlands.py`
- [Temporal Analysis](https://github.com/ctu-csiro/csiroboeingphase5-vietnam/blob/main/deafrica_tools/temporal.py): `deafrica_tools/temporal.py`
- [Plotting](https://github.com/ctu-csiro/csiroboeingphase5-vietnam/blob/main/deafrica_tools/plotting.py): `deafrica_tools/plotting.py`

### Interactive Apps

- [Animation App](https://github.com/ctu-csiro/csiroboeingphase5-vietnam/blob/main/deafrica_tools/app/animations.py): `deafrica_tools/app/animations.py`
- [Coastline App](https://github.com/ctu-csiro/csiroboeingphase5-vietnam/blob/main/deafrica_tools/app/deacoastlines.py): `deafrica_tools/app/deacoastlines.py`
- [Forest Monitoring](https://github.com/ctu-csiro/csiroboeingphase5-vietnam/blob/main/deafrica_tools/app/forestmonitoring.py): `deafrica_tools/app/forestmonitoring.py`
- [Image Export](https://github.com/ctu-csiro/csiroboeingphase5-vietnam/blob/main/deafrica_tools/app/imageexport.py): `deafrica_tools/app/imageexport.py`
- [Wetlands Insight](https://github.com/ctu-csiro/csiroboeingphase5-vietnam/blob/main/deafrica_tools/app/wetlandsinsighttool.py): `deafrica_tools/app/wetlandsinsighttool.py`
- [Widget Constructors](https://github.com/ctu-csiro/csiroboeingphase5-vietnam/blob/main/deafrica_tools/app/widgetconstructors.py): `deafrica_tools/app/widgetconstructors.py`

### Data Support

- [Dask Clusters](https://github.com/ctu-csiro/csiroboeingphase5-vietnam/blob/main/deafrica_tools/dask.py): `deafrica_tools/dask.py`
- [Area of Interest](https://github.com/ctu-csiro/csiroboeingphase5-vietnam/blob/main/deafrica_tools/areaofinterest.py): `deafrica_tools/areaofinterest.py`
- [ERA5 Loader](https://github.com/ctu-csiro/csiroboeingphase5-vietnam/blob/main/deafrica_tools/load_era5.py): `deafrica_tools/load_era5.py`
- [ISDA Loader](https://github.com/ctu-csiro/csiroboeingphase5-vietnam/blob/main/deafrica_tools/load_isda.py): `deafrica_tools/load_isda.py`
- [Soil Moisture Loader](https://github.com/ctu-csiro/csiroboeingphase5-vietnam/blob/main/deafrica_tools/load_soil_moisture.py): `deafrica_tools/load_soil_moisture.py`

### Other components

- **Analyst**

## Connections

- Analyst → Train Model: starts training
- Train Model → ODC Training: uses training code
- Train Model → Predict Classes: continues to prediction
- Predict Classes → Classified Raster: produces raster
- Predict Classes → Compare Results: continues to comparison
- ODC Training → Band Indices: imports (evidence: `new_import_ODC.py`)
- ODC Training → Classification Methods: trains classifier
- Classification Methods → Spatial Analysis: imports (evidence: `deafrica_tools/classification.py`)
- Data Handling → Band Indices: imports (evidence: `deafrica_tools/datahandling.py`)
- Spatial Analysis → Dask Clusters: imports (evidence: `deafrica_tools/spatial.py`)
- Coastal Analysis → Data Handling: imports (evidence: `deafrica_tools/coastal.py`)
- Wetlands Analysis → Band Indices: imports (evidence: `deafrica_tools/wetlands.py`)
- Wetlands Analysis → Data Handling: imports (evidence: `deafrica_tools/wetlands.py`)
- Wetlands Analysis → Spatial Analysis: imports (evidence: `deafrica_tools/wetlands.py`)
- Wetlands Analysis → Classification Methods: imports (evidence: `deafrica_tools/wetlands.py`)
- Temporal Analysis → Dask Clusters: imports (evidence: `deafrica_tools/temporal.py`)
- Animation App → Dask Clusters: imports (evidence: `deafrica_tools/app/animations.py`)
- Animation App → Spatial Analysis: imports (evidence: `deafrica_tools/app/animations.py`)
- Animation App → Data Handling: imports (evidence: `deafrica_tools/app/animations.py`)
- Animation App → Plotting: imports (evidence: `deafrica_tools/app/animations.py`)
- Animation App → Coastal Analysis: imports (evidence: `deafrica_tools/app/animations.py`)
- Animation App → Widget Constructors: imports (evidence: `deafrica_tools/app/animations.py`)
- Coastline App → Coastal Analysis: imports (evidence: `deafrica_tools/app/deacoastlines.py`)
- Coastline App → Widget Constructors: imports (evidence: `deafrica_tools/app/deacoastlines.py`)
- Forest Monitoring → Spatial Analysis: imports (evidence: `deafrica_tools/app/forestmonitoring.py`)
- Forest Monitoring → Dask Clusters: imports (evidence: `deafrica_tools/app/forestmonitoring.py`)
- Forest Monitoring → Widget Constructors: imports (evidence: `deafrica_tools/app/forestmonitoring.py`)
- Image Export → Spatial Analysis: imports (evidence: `deafrica_tools/app/imageexport.py`)
- Image Export → Dask Clusters: imports (evidence: `deafrica_tools/app/imageexport.py`)
- Wetlands Insight → Dask Clusters: imports (evidence: `deafrica_tools/app/wetlandsinsighttool.py`)
- Wetlands Insight → Wetlands Analysis: imports (evidence: `deafrica_tools/app/wetlandsinsighttool.py`)
- Wetlands Insight → Widget Constructors: imports (evidence: `deafrica_tools/app/wetlandsinsighttool.py`)
