suboptimumg.log_analysis.preprocess_gps#

suboptimumg.log_analysis.preprocess_gps.preprocess_gps_data_instances(data, ins_lat_col='pcm.vnav.posLla.latitude', ins_lon_col='pcm.vnav.posLla.longitude', fix_col='pcm.vnav.gpsFix')[source]#

Extract GPS position DataInstances and inject them into SingleRunData.

Filters invalid samples (no GPS fix, zero lat/lon pairs), projects to local East/North Cartesian coordinates, and stores the results as gps.latitude, gps.longitude, posE, and posN in data.

Parameters:
  • data (SingleRunData)

  • ins_lat_col (str) – Key for the INS latitude signal.

  • ins_lon_col (str) – Key for the INS longitude signal.

  • fix_col (str or None) – Key for the GPS fix-status signal. None skips the fix check.

Returns:

The same data object with gps.latitude, gps.longitude, posN, and posE added.

Return type:

SingleRunData