# guvendeliktas/satcom-link-budget architecture

> Architecture diagram of the GitHub repository guvendeliktas/satcom-link-budget, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/guvendeliktas/satcom-link-budget
- Repository: https://github.com/guvendeliktas/satcom-link-budget

## Overview

This is a MATLAB desktop tool for satellite ground-station link-budget analysis, with a Python Word-report generator. The main workflow is form input → link computation and requirement checks → live plots/results → JSON report data → DOCX. The README documents the MATLAB capabilities and handoff; sampled Python excerpts and the source index establish the report generator’s helper modules. MATLAB internals were not sampled, so detailed computation-to-plot and data-provider call paths are not asserted.

Main entry points: [`matlab/lb_app.m`](https://github.com/guvendeliktas/satcom-link-budget/blob/main/matlab/lb_app.m) (Desktop form), [`tools/generate_report.py`](https://github.com/guvendeliktas/satcom-link-budget/blob/main/tools/generate_report.py) (DOCX generator), [`matlab/lb_compute_link.m`](https://github.com/guvendeliktas/satcom-link-budget/blob/main/matlab/lb_compute_link.m) (Link budget core), [`matlab/lb_report_data.m`](https://github.com/guvendeliktas/satcom-link-budget/blob/main/matlab/lb_report_data.m) (Report data export)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Inputs and projects"]
  node_app["Desktop form<br/>[lb_app.m]"]
  node_parse["Input parsing<br/>[lb_parse_params.m]"]
  node_autofill["Smart defaults<br/>[lb_autofill.m]"]
  node_project["Project save/load<br/>[lb_scenario_load.m]"]
end

subgraph group_analysis["Link analysis"]
  node_compute["Link budget core<br/>[lb_compute_link.m]"]
  node_rain["Rain data and loss<br/>[lb_rain_data.m]"]
  node_targets["Requirement checks<br/>[lb_check_targets.m]"]
  node_ber["BER analysis<br/>[lb_ber.m]"]
end

subgraph group_results["Results and visualization"]
  node_sweep["Elevation sweep<br/>[lb_plot_sweep.m]"]
  node_pass["LEO pass profile<br/>[lb_pass_profile.m]"]
  node_plots["BER and budget plots<br/>[lb_draw_ber.m]"]
end

subgraph group_report["Report generation"]
  node_reportdata["Report data export<br/>[lb_report_data.m]"]
  node_generator["DOCX generator<br/>[generate_report.py]"]
  node_sections["Report sections<br/>[report_sections.py]"]
  node_text["Theory text<br/>[report_text.py]"]
  node_math["Word equations<br/>[report_math.py]"]
end

node_engineer(("Engineer"))
node_docx["Technical report"]

node_engineer -->|"enters inputs"| node_app
node_app -.->|"accepts units"| node_parse
node_app -.->|"uses defaults"| node_autofill
node_app -->|"saves or loads"| node_project
node_app -->|"recalculates"| node_compute
node_compute -.->|"uses rain loss"| node_rain
node_app -->|"checks requirements"| node_targets
node_app -->|"requests BER"| node_ber
node_app -->|"updates sweep"| node_sweep
node_app -->|"shows pass profile"| node_pass
node_app -->|"updates plots"| node_plots
node_app -->|"exports report data"| node_reportdata
node_reportdata -->|"passes JSON"| node_generator
node_generator -->|"uses sections"| node_sections
node_generator -->|"uses theory text"| node_text
node_generator -->|"uses equation converter"| node_math
node_generator -->|"produces report"| node_docx

click node_app "https://github.com/guvendeliktas/satcom-link-budget/blob/main/matlab/lb_app.m"
click node_parse "https://github.com/guvendeliktas/satcom-link-budget/blob/main/matlab/lb_parse_params.m"
click node_autofill "https://github.com/guvendeliktas/satcom-link-budget/blob/main/matlab/lb_autofill.m"
click node_project "https://github.com/guvendeliktas/satcom-link-budget/blob/main/matlab/lb_scenario_load.m"
click node_compute "https://github.com/guvendeliktas/satcom-link-budget/blob/main/matlab/lb_compute_link.m"
click node_rain "https://github.com/guvendeliktas/satcom-link-budget/blob/main/matlab/lb_rain_data.m"
click node_targets "https://github.com/guvendeliktas/satcom-link-budget/blob/main/matlab/lb_check_targets.m"
click node_ber "https://github.com/guvendeliktas/satcom-link-budget/blob/main/matlab/lb_ber.m"
click node_sweep "https://github.com/guvendeliktas/satcom-link-budget/blob/main/matlab/lb_plot_sweep.m"
click node_pass "https://github.com/guvendeliktas/satcom-link-budget/blob/main/matlab/lb_pass_profile.m"
click node_plots "https://github.com/guvendeliktas/satcom-link-budget/blob/main/matlab/lb_draw_ber.m"
click node_reportdata "https://github.com/guvendeliktas/satcom-link-budget/blob/main/matlab/lb_report_data.m"
click node_generator "https://github.com/guvendeliktas/satcom-link-budget/blob/main/tools/generate_report.py"
click node_sections "https://github.com/guvendeliktas/satcom-link-budget/blob/main/tools/report_sections.py"
click node_text "https://github.com/guvendeliktas/satcom-link-budget/blob/main/tools/report_text.py"
click node_math "https://github.com/guvendeliktas/satcom-link-budget/blob/main/tools/report_math.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_app,node_parse,node_autofill,node_project toneBlue
class node_compute,node_rain,node_targets,node_ber toneAmber
class node_sweep,node_pass,node_plots toneMint
class node_reportdata,node_generator,node_sections,node_text,node_math toneRose
class node_engineer,node_docx toneIndigo
```

## Components

### Inputs and projects

- [Desktop form](https://github.com/guvendeliktas/satcom-link-budget/blob/main/matlab/lb_app.m): `matlab/lb_app.m`
- [Input parsing](https://github.com/guvendeliktas/satcom-link-budget/blob/main/matlab/lb_parse_params.m): `matlab/lb_parse_params.m`
- [Smart defaults](https://github.com/guvendeliktas/satcom-link-budget/blob/main/matlab/lb_autofill.m): `matlab/lb_autofill.m`
- [Project save/load](https://github.com/guvendeliktas/satcom-link-budget/blob/main/matlab/lb_scenario_load.m): `matlab/lb_scenario_load.m`

### Link analysis

- [Link budget core](https://github.com/guvendeliktas/satcom-link-budget/blob/main/matlab/lb_compute_link.m): `matlab/lb_compute_link.m`
- [Rain data and loss](https://github.com/guvendeliktas/satcom-link-budget/blob/main/matlab/lb_rain_data.m): `matlab/lb_rain_data.m`
- [Requirement checks](https://github.com/guvendeliktas/satcom-link-budget/blob/main/matlab/lb_check_targets.m): `matlab/lb_check_targets.m`
- [BER analysis](https://github.com/guvendeliktas/satcom-link-budget/blob/main/matlab/lb_ber.m): `matlab/lb_ber.m`

### Results and visualization

- [Elevation sweep](https://github.com/guvendeliktas/satcom-link-budget/blob/main/matlab/lb_plot_sweep.m): `matlab/lb_plot_sweep.m`
- [LEO pass profile](https://github.com/guvendeliktas/satcom-link-budget/blob/main/matlab/lb_pass_profile.m): `matlab/lb_pass_profile.m`
- [BER and budget plots](https://github.com/guvendeliktas/satcom-link-budget/blob/main/matlab/lb_draw_ber.m): `matlab/lb_draw_ber.m`

### Report generation

- [Report data export](https://github.com/guvendeliktas/satcom-link-budget/blob/main/matlab/lb_report_data.m): `matlab/lb_report_data.m`
- [DOCX generator](https://github.com/guvendeliktas/satcom-link-budget/blob/main/tools/generate_report.py): `tools/generate_report.py`
- [Report sections](https://github.com/guvendeliktas/satcom-link-budget/blob/main/tools/report_sections.py): `tools/report_sections.py`
- [Theory text](https://github.com/guvendeliktas/satcom-link-budget/blob/main/tools/report_text.py): `tools/report_text.py`
- [Word equations](https://github.com/guvendeliktas/satcom-link-budget/blob/main/tools/report_math.py): `tools/report_math.py`

### Other components

- **Engineer**
- **Technical report**

## Connections

- Engineer → Desktop form: enters inputs (evidence: `README.md`)
- Desktop form → Input parsing: accepts units
- Desktop form → Smart defaults: uses defaults
- Desktop form → Project save/load: saves or loads (evidence: `README.md`)
- Desktop form → Link budget core: recalculates (evidence: `README.md`)
- Link budget core → Rain data and loss: uses rain loss
- Desktop form → Requirement checks: checks requirements (evidence: `README.md`)
- Desktop form → BER analysis: requests BER (evidence: `README.md`)
- Desktop form → Elevation sweep: updates sweep (evidence: `README.md`)
- Desktop form → LEO pass profile: shows pass profile (evidence: `README.md`)
- Desktop form → BER and budget plots: updates plots (evidence: `README.md`)
- Desktop form → Report data export: exports report data (evidence: `README.md`)
- Report data export → DOCX generator: passes JSON (evidence: `README.md`)
- DOCX generator → Report sections: uses sections (evidence: `tools/generate_report.py`)
- DOCX generator → Theory text: uses theory text (evidence: `tools/generate_report.py`)
- DOCX generator → Word equations: uses equation converter (evidence: `tools/generate_report.py`)
- DOCX generator → Technical report: produces report (evidence: `README.md`)
