Python library for parsing and generating NMEA 0183 protocol messages used in GPS and marine navigation systems
77
A tool for analyzing NMEA 0183 log files containing GPS and navigation data from marine or GPS equipment.
Build a tool that processes NMEA log files to extract and analyze GPS position data from marine or aviation navigation equipment.
Read an NMEA log file containing multiple sentence types (GGA, RMC, etc.). The file has one sentence per line.
Extract all valid GGA (GPS Fix Data) sentences from the log file. For each valid GGA sentence:
Generate a summary containing:
@generates
def analyze_nmea_log(filepath: str) -> dict:
"""
Analyzes an NMEA log file and extracts GPS position data.
Args:
filepath: Path to the NMEA log file
Returns:
A dictionary containing:
- 'total_sentences': Total number of sentences in file
- 'valid_fixes': Number of valid GGA fixes
- 'average_altitude': Average altitude in meters (2 decimals)
- 'first_fix': Dict with 'timestamp', 'lat', 'lon', 'altitude'
- 'last_fix': Dict with 'timestamp', 'lat', 'lon', 'altitude'
"""
passProvides NMEA 0183 sentence parsing and file processing support.
Install with Tessl CLI
npx tessl i tessl/pypi-pynmea2docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10