# tarecha/geocatch3d architecture

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

- Interactive diagram: https://gitdiagram.com/tarecha/geocatch3d
- Repository: https://github.com/tarecha/geocatch3d

## Overview

GeoCatch 3D is a geospatial application for identifying potential reservoir sites and analyzing watersheds from ASTER GDEM terrain data. The documented newer entry point is mainVUEv3.py: users provide a location and analysis options, the app selects terrain data, performs hydrologic analysis, and presents an interactive 3D view for watershed/outlet exploration. The modules cover coordinate/grid selection, raster handling, watershed processing, rainfall methods, and plotting. Edges rely on the supplied excerpts and SOURCE INDEX references; unsampled implementation details are not inferred.

Main entry points: [`mainVUEv3.py`](https://github.com/tarecha/geocatch3d/blob/main/mainVUEv3.py) (GeoCatch V3), [`modul/visualCallBackTrame.py`](https://github.com/tarecha/geocatch3d/blob/main/modul/visualCallBackTrame.py) (Interactive callbacks), [`modul/analisis.py`](https://github.com/tarecha/geocatch3d/blob/main/modul/analisis.py) (Terrain analysis), [`modul/watershed.py`](https://github.com/tarecha/geocatch3d/blob/main/modul/watershed.py) (Watershed delineation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application"]
  node_appv3["GeoCatch V3<br/>[mainVUEv3.py]"]
  node_appv2["GeoCatch V2<br/>[mainVUEv2.py]"]
  node_config["Analysis configuration<br/>[config.py]"]
end

subgraph group_terrain["Terrain and GIS"]
  node_coords["Coordinate mapping<br/>[mapping.py]"]
  node_rounding["Grid point selection<br/>[seleksiRHD.py]"]
  node_bruteforce["Brute-force selection<br/>[seleksiBF.py]"]
  node_demtiles["DEM tile selection<br/>[pilih.py]"]
  node_demfiles["DEM file naming<br/>[generateFile.py]"]
  node_rasterio["Raster I/O<br/>[fileHandler.py]"]
end

subgraph group_hydrology["Hydrologic analysis"]
  node_analysis["Terrain analysis<br/>[analisis.py]"]
  node_watershed["Watershed delineation<br/>[watershed.py]"]
  node_rainfall["Rainfall inputs<br/>[curahhujan.py]"]
  node_rational["Rational method<br/>[rationalmethod.py]"]
  node_interpolation["Linear interpolation"]
  node_unitconvert["Hydrologic conversions<br/>[konverter.py]"]
end

subgraph group_presentation["Visualization"]
  node_callbacks["Interactive callbacks"]
  node_plotter["Raster plotting<br/>[plotter.py]"]
end

node_user(("Analyst"))

node_user -->|"sets options"| node_appv3
node_user -.->|"uses older UI"| node_appv2
node_appv3 -->|"reads settings"| node_config
node_appv3 -->|"maps coordinates"| node_coords
node_appv3 -->|"selects grid"| node_rounding
node_appv3 -->|"loads terrain"| node_demtiles
node_appv3 -->|"exports rasters"| node_rasterio
node_appv3 -->|"runs analysis"| node_analysis
node_appv3 -->|"delineates basin"| node_watershed
node_appv3 -->|"uses rainfall"| node_rainfall
node_appv3 -->|"converts measures"| node_unitconvert
node_appv3 -->|"registers interaction"| node_callbacks
node_appv2 -->|"registers interaction"| node_callbacks
node_demtiles -->|"requests tile paths"| node_demfiles
node_analysis -->|"reads paths"| node_config
node_analysis -->|"writes results"| node_rasterio
node_analysis -->|"uses watershed data"| node_watershed
node_analysis -->|"plots rasters"| node_plotter
node_watershed -->|"exports pourpoints"| node_rasterio
node_watershed -->|"reads paths"| node_config
node_callbacks -->|"calls runoff method"| node_rational
node_callbacks -->|"uses delineation"| node_watershed
node_callbacks -->|"maps selections"| node_coords
node_callbacks -->|"converts measurements"| node_unitconvert
node_rational -->|"uses raster files"| node_rasterio
node_rational -->|"plots results"| node_plotter
node_rational -->|"reads settings"| node_config
node_appv3 -.->|"available in older workflow"| node_bruteforce
node_appv3 -.->|"available in older workflow"| node_interpolation

click node_appv3 "https://github.com/tarecha/geocatch3d/blob/main/mainVUEv3.py"
click node_appv2 "https://github.com/tarecha/geocatch3d/blob/main/lain-lain/mainVUEv2.py"
click node_config "https://github.com/tarecha/geocatch3d/blob/main/modul/config.py"
click node_coords "https://github.com/tarecha/geocatch3d/blob/main/modul/mapping.py"
click node_rounding "https://github.com/tarecha/geocatch3d/blob/main/modul/seleksiRHD.py"
click node_bruteforce "https://github.com/tarecha/geocatch3d/blob/main/modul/seleksiBF.py"
click node_demtiles "https://github.com/tarecha/geocatch3d/blob/main/modul/pilih.py"
click node_demfiles "https://github.com/tarecha/geocatch3d/blob/main/modul/generateFile.py"
click node_rasterio "https://github.com/tarecha/geocatch3d/blob/main/modul/fileHandler.py"
click node_analysis "https://github.com/tarecha/geocatch3d/blob/main/modul/analisis.py"
click node_watershed "https://github.com/tarecha/geocatch3d/blob/main/modul/watershed.py"
click node_rainfall "https://github.com/tarecha/geocatch3d/blob/main/modul/curahhujan.py"
click node_rational "https://github.com/tarecha/geocatch3d/blob/main/modul/rationalmethod.py"
click node_interpolation "https://github.com/tarecha/geocatch3d/blob/main/modul/interpolasiLinier.py"
click node_unitconvert "https://github.com/tarecha/geocatch3d/blob/main/modul/konverter.py"
click node_callbacks "https://github.com/tarecha/geocatch3d/blob/main/modul/visualCallBackTrame.py"
click node_plotter "https://github.com/tarecha/geocatch3d/blob/main/modul/plotter.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_appv3,node_appv2,node_config toneBlue
class node_coords,node_rounding,node_bruteforce,node_demtiles,node_demfiles,node_rasterio toneAmber
class node_analysis,node_watershed,node_rainfall,node_rational,node_interpolation,node_unitconvert toneMint
class node_callbacks,node_plotter toneRose
class node_user toneIndigo
```

## Components

### Application

- [GeoCatch V3](https://github.com/tarecha/geocatch3d/blob/main/mainVUEv3.py): `mainVUEv3.py`
- [GeoCatch V2](https://github.com/tarecha/geocatch3d/blob/main/lain-lain/mainVUEv2.py): `lain-lain/mainVUEv2.py`
- [Analysis configuration](https://github.com/tarecha/geocatch3d/blob/main/modul/config.py): `modul/config.py`

### Terrain and GIS

- [Coordinate mapping](https://github.com/tarecha/geocatch3d/blob/main/modul/mapping.py): `modul/mapping.py`
- [Grid point selection](https://github.com/tarecha/geocatch3d/blob/main/modul/seleksiRHD.py): `modul/seleksiRHD.py`
- [Brute-force selection](https://github.com/tarecha/geocatch3d/blob/main/modul/seleksiBF.py): `modul/seleksiBF.py`
- [DEM tile selection](https://github.com/tarecha/geocatch3d/blob/main/modul/pilih.py): `modul/pilih.py`
- [DEM file naming](https://github.com/tarecha/geocatch3d/blob/main/modul/generateFile.py): `modul/generateFile.py`
- [Raster I/O](https://github.com/tarecha/geocatch3d/blob/main/modul/fileHandler.py): `modul/fileHandler.py`

### Hydrologic analysis

- [Terrain analysis](https://github.com/tarecha/geocatch3d/blob/main/modul/analisis.py): `modul/analisis.py`
- [Watershed delineation](https://github.com/tarecha/geocatch3d/blob/main/modul/watershed.py): `modul/watershed.py`
- [Rainfall inputs](https://github.com/tarecha/geocatch3d/blob/main/modul/curahhujan.py): `modul/curahhujan.py`
- [Rational method](https://github.com/tarecha/geocatch3d/blob/main/modul/rationalmethod.py): `modul/rationalmethod.py`
- [Linear interpolation](https://github.com/tarecha/geocatch3d/blob/main/modul/interpolasiLinier.py): `modul/interpolasiLinier.py`
- [Hydrologic conversions](https://github.com/tarecha/geocatch3d/blob/main/modul/konverter.py): `modul/konverter.py`

### Visualization

- [Interactive callbacks](https://github.com/tarecha/geocatch3d/blob/main/modul/visualCallBackTrame.py): `modul/visualCallBackTrame.py`
- [Raster plotting](https://github.com/tarecha/geocatch3d/blob/main/modul/plotter.py): `modul/plotter.py`

### Other components

- **Analyst**

## Connections

- Analyst → GeoCatch V3: sets options (evidence: `README.md`)
- Analyst → GeoCatch V2: uses older UI (evidence: `README.md`)
- GeoCatch V3 → Analysis configuration: reads settings (evidence: `mainVUEv3.py`)
- GeoCatch V3 → Coordinate mapping: maps coordinates (evidence: `mainVUEv3.py`)
- GeoCatch V3 → Grid point selection: selects grid (evidence: `mainVUEv3.py`)
- GeoCatch V3 → DEM tile selection: loads terrain (evidence: `mainVUEv3.py`)
- GeoCatch V3 → Raster I/O: exports rasters (evidence: `mainVUEv3.py`)
- GeoCatch V3 → Terrain analysis: runs analysis (evidence: `mainVUEv3.py`)
- GeoCatch V3 → Watershed delineation: delineates basin (evidence: `mainVUEv3.py`)
- GeoCatch V3 → Rainfall inputs: uses rainfall (evidence: `mainVUEv3.py`)
- GeoCatch V3 → Hydrologic conversions: converts measures (evidence: `mainVUEv3.py`)
- GeoCatch V3 → Interactive callbacks: registers interaction (evidence: `mainVUEv3.py`)
- GeoCatch V2 → Interactive callbacks: registers interaction (evidence: `lain-lain/mainVUEv2.py`)
- DEM tile selection → DEM file naming: requests tile paths (evidence: `modul/pilih.py`)
- Terrain analysis → Analysis configuration: reads paths (evidence: `modul/analisis.py`)
- Terrain analysis → Raster I/O: writes results (evidence: `modul/analisis.py`)
- Terrain analysis → Watershed delineation: uses watershed data (evidence: `modul/analisis.py`)
- Terrain analysis → Raster plotting: plots rasters (evidence: `modul/analisis.py`)
- Watershed delineation → Raster I/O: exports pourpoints (evidence: `modul/watershed.py`)
- Watershed delineation → Analysis configuration: reads paths (evidence: `modul/watershed.py`)
- Interactive callbacks → Rational method: calls runoff method (evidence: `modul/visualCallBackTrame.py`)
- Interactive callbacks → Watershed delineation: uses delineation (evidence: `modul/visualCallBackTrame.py`)
- Interactive callbacks → Coordinate mapping: maps selections (evidence: `modul/visualCallBackTrame.py`)
- Interactive callbacks → Hydrologic conversions: converts measurements (evidence: `modul/visualCallBackTrame.py`)
- Rational method → Raster I/O: uses raster files (evidence: `modul/rationalmethod.py`)
- Rational method → Raster plotting: plots results (evidence: `modul/rationalmethod.py`)
- Rational method → Analysis configuration: reads settings (evidence: `modul/rationalmethod.py`)
- GeoCatch V3 → Brute-force selection: available in older workflow
- GeoCatch V3 → Linear interpolation: available in older workflow
