# mayanklonkar/fly-by-data architecture

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

- Interactive diagram: https://gitdiagram.com/mayanklonkar/fly-by-data
- Repository: https://github.com/mayanklonkar/fly-by-data

## Overview

Fly-By-Data processes campaign flight records into wind-profile plots. Users configure sensor/log paths and flight rows in campaign YAML, with an Excel sheet mapping sensor and MATLAB log files. Sensor files can be cleaned first; campaign drivers align sensor and flight-log data, derive flight phases and wind/altitude profiles, then plot results. Shared loaders support log and sensor access, while separate Dash modules provide interactive log and sensor plots. Relationships for unsampled capabilities are included only where README or source-index references support them; implementation details beyond the excerpts are not assumed.

Main entry points: [`cases/Parandu 2025/driver.py`](https://github.com/mayanklonkar/fly-by-data/blob/main/cases/Parandu%202025/driver.py) (Parandu workflow), [`cases/rajali_2025/driver.py`](https://github.com/mayanklonkar/fly-by-data/blob/main/cases/rajali_2025/driver.py) (Rajali workflow), [`main libraries/senlab.py`](https://github.com/mayanklonkar/fly-by-data/blob/main/main%20libraries/senlab.py) (Sensor loader), [`main libraries/mavlab.py`](https://github.com/mayanklonkar/fly-by-data/blob/main/main%20libraries/mavlab.py) (MAVLink loader)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_campaign["Campaign processing"]
  node_main_script["Analysis script<br/>[main script.py]"]
  node_parandu["Parandu workflow<br/>[driver.py]"]
  node_rajali["Rajali workflow<br/>[driver.py]"]
  node_hover["Hover analysis<br/>[hover.py]"]
end

subgraph group_data["Data access"]
  node_mavlab["MAVLink loader<br/>[mavlab.py]"]
  node_senlab["Sensor loader<br/>[senlab.py]"]
  node_mavlab_dup["MAVLink loader copy<br/>[mavlab.py]"]
  node_senlab_dup["Sensor loader copy<br/>[senlab.py]"]
  node_windalg["Wind algorithms<br/>[truewindalg.py]"]
  node_flash["Flash utility<br/>[flash.py]"]
  node_flash_dup["Flash utility copy<br/>[flash.py]"]
end

subgraph group_viz["Visualization"]
  node_dash_mav["Flight log plotter<br/>[dash_drone_plot.py]"]
  node_dash_sen["Sensor stream plotter<br/>[dash_drone_plot.py]"]
  node_dash_mav_dup["Flight plotter copy<br/>[dash_drone_plot.py]"]
  node_profile["Wind profile graph"]
end

subgraph group_tools["Sensor preparation"]
  node_clean["Sensor cleaning<br/>[preprocess.py]"]
end

node_operator(("Campaign user"))
node_rawfiles["Sensor and log files"]
node_mapping["Flight file mapping"]

node_operator -->|"cleans data"| node_clean
node_rawfiles -->|"raw sensor input"| node_clean
node_operator -->|"selects flights"| node_parandu
node_operator -->|"selects flights"| node_rajali
node_mapping -->|"maps files"| node_parandu
node_mapping -->|"maps files"| node_rajali
node_clean -->|"cleaned sensor input"| node_parandu
node_clean -->|"cleaned sensor input"| node_rajali
node_rawfiles -->|"log and sensor input"| node_parandu
node_rawfiles -->|"log and sensor input"| node_rajali
node_parandu -->|"imports"| node_mavlab
node_parandu -->|"imports"| node_senlab
node_rajali -->|"imports"| node_mavlab
node_rajali -->|"imports"| node_senlab
node_parandu -->|"plots profiles"| node_profile
node_rajali -->|"plots profiles"| node_profile
node_hover -->|"calls process_case"| node_rajali
node_main_script -->|"imports"| node_mavlab
node_main_script -->|"imports"| node_senlab
node_dash_mav -->|"loads log data"| node_mavlab
node_dash_sen -.->|"uses sensor data"| node_senlab
node_dash_mav_dup -->|"loads log data"| node_mavlab_dup
node_senlab -->|"requests GPS time"| node_mavlab
node_parandu -.->|"uses wind algorithms"| node_windalg

click node_clean "https://github.com/mayanklonkar/fly-by-data/blob/main/Scripts/preprocess.py"
click node_main_script "https://github.com/mayanklonkar/fly-by-data/blob/main/Scripts/main%20script.py"
click node_parandu "https://github.com/mayanklonkar/fly-by-data/blob/main/cases/Parandu%202025/driver.py"
click node_rajali "https://github.com/mayanklonkar/fly-by-data/blob/main/cases/rajali_2025/driver.py"
click node_hover "https://github.com/mayanklonkar/fly-by-data/blob/main/cases/rajali_2025/hover.py"
click node_mavlab "https://github.com/mayanklonkar/fly-by-data/blob/main/main%20libraries/mavlab.py"
click node_senlab "https://github.com/mayanklonkar/fly-by-data/blob/main/main%20libraries/senlab.py"
click node_mavlab_dup "https://github.com/mayanklonkar/fly-by-data/blob/main/main%20libraries/main%20libraries/mavlab.py"
click node_senlab_dup "https://github.com/mayanklonkar/fly-by-data/blob/main/main%20libraries/main%20libraries/senlab.py"
click node_windalg "https://github.com/mayanklonkar/fly-by-data/blob/main/main%20libraries/truewindalg.py"
click node_dash_mav "https://github.com/mayanklonkar/fly-by-data/blob/main/main%20libraries/dash_drone_plot.py"
click node_dash_sen "https://github.com/mayanklonkar/fly-by-data/blob/main/main%20libraries/dash_drone_plot.py"
click node_dash_mav_dup "https://github.com/mayanklonkar/fly-by-data/blob/main/main%20libraries/main%20libraries/dash_drone_plot.py"
click node_flash "https://github.com/mayanklonkar/fly-by-data/blob/main/main%20libraries/flash.py"
click node_flash_dup "https://github.com/mayanklonkar/fly-by-data/blob/main/main%20libraries/main%20libraries/flash.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_main_script,node_parandu,node_rajali,node_hover,node_operator toneBlue
class node_mavlab,node_senlab,node_mavlab_dup,node_senlab_dup,node_windalg,node_flash,node_flash_dup toneAmber
class node_dash_mav,node_dash_sen,node_dash_mav_dup,node_profile toneMint
class node_clean toneRose
class node_rawfiles,node_mapping toneIndigo
```

## Components

### Campaign processing

- [Analysis script](https://github.com/mayanklonkar/fly-by-data/blob/main/Scripts/main%20script.py): `Scripts/main script.py`
- [Parandu workflow](https://github.com/mayanklonkar/fly-by-data/blob/main/cases/Parandu%202025/driver.py): `cases/Parandu 2025/driver.py`
- [Rajali workflow](https://github.com/mayanklonkar/fly-by-data/blob/main/cases/rajali_2025/driver.py): `cases/rajali_2025/driver.py`
- [Hover analysis](https://github.com/mayanklonkar/fly-by-data/blob/main/cases/rajali_2025/hover.py): `cases/rajali_2025/hover.py`

### Data access

- [MAVLink loader](https://github.com/mayanklonkar/fly-by-data/blob/main/main%20libraries/mavlab.py): `main libraries/mavlab.py`
- [Sensor loader](https://github.com/mayanklonkar/fly-by-data/blob/main/main%20libraries/senlab.py): `main libraries/senlab.py`
- [MAVLink loader copy](https://github.com/mayanklonkar/fly-by-data/blob/main/main%20libraries/main%20libraries/mavlab.py): `main libraries/main libraries/mavlab.py`
- [Sensor loader copy](https://github.com/mayanklonkar/fly-by-data/blob/main/main%20libraries/main%20libraries/senlab.py): `main libraries/main libraries/senlab.py`
- [Wind algorithms](https://github.com/mayanklonkar/fly-by-data/blob/main/main%20libraries/truewindalg.py): `main libraries/truewindalg.py`
- [Flash utility](https://github.com/mayanklonkar/fly-by-data/blob/main/main%20libraries/flash.py): `main libraries/flash.py`
- [Flash utility copy](https://github.com/mayanklonkar/fly-by-data/blob/main/main%20libraries/main%20libraries/flash.py): `main libraries/main libraries/flash.py`

### Visualization

- [Flight log plotter](https://github.com/mayanklonkar/fly-by-data/blob/main/main%20libraries/dash_drone_plot.py): `main libraries/dash_drone_plot.py`
- [Sensor stream plotter](https://github.com/mayanklonkar/fly-by-data/blob/main/main%20libraries/dash_drone_plot.py): `main libraries/dash_drone_plot.py`
- [Flight plotter copy](https://github.com/mayanklonkar/fly-by-data/blob/main/main%20libraries/main%20libraries/dash_drone_plot.py): `main libraries/main libraries/dash_drone_plot.py`
- **Wind profile graph**

### Sensor preparation

- [Sensor cleaning](https://github.com/mayanklonkar/fly-by-data/blob/main/Scripts/preprocess.py): `Scripts/preprocess.py`

### Other components

- **Campaign user**
- **Sensor and log files**
- **Flight file mapping**

## Connections

- Campaign user → Sensor cleaning: cleans data (evidence: `README.md`)
- Sensor and log files → Sensor cleaning: raw sensor input (evidence: `README.md`)
- Campaign user → Parandu workflow: selects flights (evidence: `README.md`)
- Campaign user → Rajali workflow: selects flights (evidence: `README.md`)
- Flight file mapping → Parandu workflow: maps files (evidence: `README.md`)
- Flight file mapping → Rajali workflow: maps files (evidence: `README.md`)
- Sensor cleaning → Parandu workflow: cleaned sensor input (evidence: `README.md`)
- Sensor cleaning → Rajali workflow: cleaned sensor input (evidence: `README.md`)
- Sensor and log files → Parandu workflow: log and sensor input (evidence: `README.md`)
- Sensor and log files → Rajali workflow: log and sensor input (evidence: `README.md`)
- Parandu workflow → MAVLink loader: imports (evidence: `cases/Parandu 2025/driver.py`)
- Parandu workflow → Sensor loader: imports (evidence: `cases/Parandu 2025/driver.py`)
- Rajali workflow → MAVLink loader: imports (evidence: `cases/rajali_2025/driver.py`)
- Rajali workflow → Sensor loader: imports (evidence: `cases/rajali_2025/driver.py`)
- Parandu workflow → Wind profile graph: plots profiles (evidence: `README.md`)
- Rajali workflow → Wind profile graph: plots profiles (evidence: `README.md`)
- Hover analysis → Rajali workflow: calls process_case (evidence: `cases/rajali_2025/hover.py`)
- Analysis script → MAVLink loader: imports (evidence: `Scripts/main script.py`)
- Analysis script → Sensor loader: imports (evidence: `Scripts/main script.py`)
- Flight log plotter → MAVLink loader: loads log data (evidence: `main libraries/dash_drone_plot.py`)
- Sensor stream plotter → Sensor loader: uses sensor data (evidence: `main libraries/dash_drone_plot.py`)
- Flight plotter copy → MAVLink loader copy: loads log data (evidence: `main libraries/main libraries/dash_drone_plot.py`)
- Sensor loader → MAVLink loader: requests GPS time (evidence: `main libraries/senlab.py`)
- Parandu workflow → Wind algorithms: uses wind algorithms
