This project is dedicated to the instructors at Green River College, whose guidance provided the foundational framework for this aviation modeling architecture.
- Academic Partner: Green River College Aviation Technology
- Legal & Professional Reference: Fox Rothschild Aviation Practice
This repository houses a suite of proprietary, physics-driven predictive models and a live Streamlit dashboard. It is designed to simulate exact Official Climatological Record temperatures (T_station), localized microclimate offsets, and high-precision Density Altitude thresholds for aviation performance.
By coupling macro-atmospheric fluid dynamics with the specific heat capacity of physical ground-station enclosures, this architecture calculates highly precise environmental baselines that strip away structural and hardware-induced temperature errors.
-
Official Climatological Record Prediction: Mathematically predicts physical thermodynamics, including evaporative cooling penalties, thermal mass lag, and solar albedo variants.
-
Live Flight Telemetry Mode: Seamlessly transitions from a static pre-flight planning calculator to an active in-flight navigational tool. Interfaces directly with USB DGPS/RTK and barometric elevation dongles via NMEA serial data to stream real-time coordinates and altitudes directly into the performance matrices.
-
Complex Microclimate Geography Modules:
-
SEA (Seattle): Puget Sound Convergence Zone cooling and Olympic Mountain downsloping.
-
ORD (Chicago): Lake Michigan breeze frontal boundary penetration drops.
-
PHX (Phoenix): Urban Heat Island (UHI) asphalt thermal mass retention and decay.
-
SFO (San Francisco): Harmonic superposition for the marine inversion layer.
-
-
Volumetric Radar Verification: Utilizes 2D spatial polygons and 3D altitude trackpoints to mathematically verify if a target coordinate sits within a radar blind spot, preventing the model from relying on radar data that overshoots ground-level surface conditions.
-
Pristine Baseline Routing: Automatically ingests live, pristine rural baseline temperatures via fixed-width text feeds to calculate accurate Urban Heat Island gradients and isolate structural heat multipliers.
-
Advanced Entry Engine: Atmospheric entry management utilizing Sutton-Graves stagnation heat flux models and PID-controlled bank-angle correction for storm drift.
-
Energy Management: Automated S-Turn maneuver injection to dissipate kinetic energy during high-angle or "too hot" arrivals.
-
Performance Kernels: Hot-path physics calculations (Rossby dynamics, icing models, thermodynamics) are accelerated via Numba (
njit) and integrated multicore processing for near-real-time throughput. -
Config Validation: Enforces strict Pydantic schema validation for all inputs (mass, area, G-loads). Rejects malformed configuration files before simulation start.
-
Atomic Telemetry: Utilizes file-locking (
fcntl) for all binary telemetry exports (Lockheed 1553B, NASA HDF5), ensuring data integrity during high-throughput flight loops. -
Protocol Integrity: Automated pre-flight checklists via
cli_main.pyverify that all six aerospace export protocols (Boeing, NASA, Lockheed, Axiom, Northrop, OAAM) are live and writing valid data.
Bash
git clone [https://github.com/FADM-DCMN-CORY-A-HOFSTAD-USN/Basic-Aviation-Knowledge.git](https://www.google.com/search?q=https://github.com/FADM-DCMN-CORY-A-HOFSTAD-USN/Basic-Aviation-Knowledge.git&authuser=1)
cd Basic-Aviation-Knowledge
Ensure you have Python 3.9+ installed, then run:
Bash
pip install -r requirements.txt
Verify all protocol channels and configurations:
Bash
python cli_main.py validate
Start the cockpit TUI with tactical profile:
Bash
python app.py --mode TACTICAL --target Earth
Export high-fidelity trajectory data for FAA/Mission Review:
Bash
python aviation_matrix_export.py
Generate/Refresh documentation from current code docstrings:
Bash
python cli_main.py regen-docs
Live Telemetry (In-Flight Operations):
To utilize live tracking, plug your compatible USB DGPS dongle into your device, launch the app, and switch the sidebar toggle to "Live Flight Mode." (Note: Verify and update the target COM/tty port in live_telemetry.py based on your operating system).
This repository relies on a highly specific stack of mathematical, spatial, and hardware-interfacing Python libraries to process live thermodynamic variables and DGPS telemetry.
-
streamlit: Drives the interactive web dashboard (app.py), allowing real-time switching between static planning models and live in-flight telemetry modes.
-
pandas: Parses complex, fixed-width text data from the automated USCRN API and processes tabular coordinate exports from GIS systems.
-
numpy: Powers the heavy mathematical arrays required for the thermodynamic equations, including urban thermal decay constants and lake breeze frontal boundary limits.
-
matplotlib: Generates the 2D spatial cross-sections and temperature timeline visualizations rendered directly on the Streamlit dashboard.
-
requests: Handles the automated HTTP requests to fetch pristine rural baseline temperatures (T_rural) for Urban Heat Island calculations.
-
shapely: Constructs the mathematical 2D bounding boxes to verify if a specific coordinate sits inside an active radar footprint.
-
pyserial: Opens the hardware serial ports (COM/tty) to physically interface with USB DGPS and barometric elevation dongles.
-
pynmea2: Decodes the raw $GPGGA and $GNGGA satellite text strings streaming from the dongle into clean, usable latitude, longitude, and elevation variables.
-
textual: Provides the framework for building high-performance, asynchronous terminal-based dashboards, allowing for rich, interactive flight monitoring in non-GUI environments.
-
"typer[all]": Simplifies the creation of command-line interfaces for the cli_main.py controller, allowing for clean, auto-documented command structures to trigger flight physics engines and export telemetry payloads.
-
pydantic: Enforces strict data schemas for incoming aviation telemetry packets, ensuring that GPS coordinates, barometric inputs, and sensor data meet required constraints before they enter the simulation pipeline.
-
pyserial: Interfaces with the hardware serial ports (COM/tty) of your flight computer, enabling the physical connection to external devices like USB DGPS receivers and precision barometric elevation sensors.
-
pyttsx3: Converts critical flight advisory, stall warnings, and system alert data into auditory outputs for in-flight notification, reducing pilot "heads-down" time by providing hands-free status updates.
-
cupy-cuda12x: Offloads massive mathematical array operations to NVIDIA GPUs, providing the hardware-accelerated parallel processing required for real-time planetary wave matrices and large-scale atmospheric modeling.
-
matplotlib: Renders 2D spatial cross-sections, jet stream trajectories, temperature timeline visualizations, and wave profile plots directly onto the Streamlit dashboard, transforming complex atmospheric physics matrices into intuitive visual aids for flight planning and situational awareness.
-
astropy: Computes high-precision celestial and topocentric coordinates, critical for tracking lunar/solar positions to calculate real-time solar irradiance and celestial-based navigation offsets.
-
requests: Executes HTTP requests to fetch external data, such as real-time meteorological conditions or baseline climatological data (e.g., T_rural) from the USCRN API, ensuring your local models are updated with current environmental inputs.
-
psutil: Monitors the system resources of the flight computer, ensuring that intensive physics simulations (like the Rossby Wave Engine) do not starve the real-time telemetry processing loops of necessary CPU and RAM.
-
h5py: Manages the storage and high-speed retrieval of multi-dimensional atmospheric datasets, allowing you to handle large historical climate grids in a compact, hierarchical file format.
-
struct: Parses raw binary data streams (CCSDS-style packets) at the byte level, converting low-level hardware sensor inputs into meaningful floating-point and integer variables for the telemetry engine.
-
app.py: The main Streamlit execution application and UI router.
-
live_telemetry.py: Hardware interfacing script for USB DGPS/RTK streams.
-
sensor_thermodynamics.py: Calculates evaporative cooling penalties and thermal mass lag for various physical enclosure types.
-
spatial_polygon_builder.py & radar_geometry_parser.py: The 2D/3D spatial verification engines for radar beam coverage.
-
uscrn_scraper.py: Automated fetching of live rural background temperatures.
-
config.json: The central registry for Urban Heat Island modifiers and specific reporting target coordinates.
This updated README.md is designed to be professional, documentation-ready for a GitHub repository, and clear about the dual-entry architecture (Streamlit for desktop/Android, CLI for iOS).
You can copy the content below directly into your README.md file.
The Basic Aviation Knowledge Engine is an extensible Python-based suite designed for atmospheric modeling, climatological reporting, and aviation performance calculation. The system is architecture-agnostic, designed to run on desktop environments, Android (via Pydroid), and iOS (via Pyto).
This repository is organized into a modular structure where Primary Engines (Atmospheric Models) leverage shared Secondary Engines (Physics & Telemetry) to ensure consistent, FAA-aligned calculations.
The system is built to support two distinct operational environments:
-
Dashboard Mode (
app.py): A full-featured web interface using Streamlit.-
Best for: Desktop browsers and Android tablets.
-
Launch:
streamlit run app.py
-
-
iOS/Pyto Mode (
cli_main.py): A streamlined Command Line Interface (CLI).-
Best for: iPad and iPhone portability.
-
Launch: Run
cli_main.pywithin the Pyto app.
-
The repository strictly uses snake_case filenames (e.g., sfo_model.py) to ensure cross-platform import compatibility.
-
Primary Engines:
aita_model.py,sfo_model.py,sea_model.py,rossby_model.py,aviation_icing.py, etc. -
Secondary Dependencies:
aviation_physics.py,aircraft_perf.py,sensor_thermodynamics.py,aerodynamic_matrix.py. -
Utilities:
ai_pirep.py(Text-to-Speech reporting) andlive_telemetry.py(Cross-platform sensor integration).
This repository includes an AI-Assisted PIREP module (ai_pirep.py). This utility generates FAA-standardized PIREP strings based on live flight data for electronic submission to the Aviation Weather Center, with a non-abbreviated text-to-speech output for radio transmission.
"A PIREP reporting good weather (often called a null report) is just as important to the forecast process as a PIREP reporting poor weather conditions."
Basic Aviation Knowledge Certificate

-
Academic Partner: Green River College Aviation Technology
-
Professional Reference: Fox Rothschild Aviation Practice
This repository is managed under the terms of the included LICENSE.md file.
Derived from metrics aligned with standard Aviation Weather operational requirements.