tessl install tessl/pypi-pynmea2@1.19.0Python library for parsing and generating NMEA 0183 protocol messages used in GPS and marine navigation systems
Agent Success
Agent success rate when using this tile
77%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.12x
Baseline
Agent success rate without this tile
69%
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.