artemis_gnss.data package

Submodules

artemis_gnss.data.clean_output module

Fields returned by the clean process Created on 20/09/24

class artemis_gnss.data.clean_output.CleanOutput

Bases: object

Class containing the fields returned by the clean process

Parameters:
  • attrs – place for scalar values

  • points – initial trace recordings

  • match – map-matched points

  • route – list of links representing the full trajectory

debug: dict
displacements: List[DataFrame]
get_displacement_table() DataFrame
init_last_trip_edit: DataFrame = None
init_last_trip_has_changed: bool = None

artemis_gnss.data.matched_trace module

Object returned by the clean process for one trip Contains fields for the trace, the map-matched points and the full map-matched route Created on 20/09/24

class artemis_gnss.data.matched_trace.MatchedTrace

Bases: object

Class representing a trace with additional representations

Parameters:
  • attrs – place for scalar values

  • points – initial trace recordings

  • match – map-matched points

  • route – list of links representing the full trajectory

attrs: dict
match: DataFrame = None
points: DataFrame
route: DataFrame = None

artemis_gnss.data.trace module

Standard data fields to represent a GPS trace The code uses pandas.DataFrame for internal usage Created on 20/09/24

class artemis_gnss.data.trace.Trace

Bases: object

Class with standard field names to represent a trace

Parameters:
  • attrs – attributes

  • time – time in seconds, relative to attrs[“timestamp”]

  • timestamp – timestamp as np.datetime64

  • speed – speed in m/s

  • longitude – longitude coordinate in °WGS

  • latitude – latitude coordinate in °WGS

  • hdop – horizontal GPS dilution in meters

  • elevation – elevation in meters

  • heading – heading in radians

attrs: TraceAttrs
elevation: ndarray[tuple[Any, ...], dtype[float64]] = None
hdop: ndarray[tuple[Any, ...], dtype[float64]] = None
heading: ndarray[tuple[Any, ...], dtype[float64]] = None
latitude: ndarray[tuple[Any, ...], dtype[float64]] = None
longitude: ndarray[tuple[Any, ...], dtype[float64]] = None
speed: ndarray[tuple[Any, ...], dtype[float64]] = None
time: ndarray[tuple[Any, ...], dtype[float64]] = None
timestamp: ndarray[tuple[Any, ...], dtype[datetime64]] = None
to_dataframe() DataFrame
to_dict() dict
class artemis_gnss.data.trace.TraceAttrs(timestamp: datetime64 = None, first_timeval: float = None, id: str = None)

Bases: object

Class to represent standard trace attributes

first_timeval: float = None

identification of the trace

Type:

id

id: str = None
timestamp: datetime64 = None

value of time for the first sample

Type:

first_timeval

to_dict() dict
artemis_gnss.data.trace.convert_traces_pandas(traces: DataFrame | dict | Trace | List[dict | DataFrame | Trace], *, deep_copy=True) List[DataFrame]
artemis_gnss.data.trace.convert_unit_trace_pandas(trace: DataFrame | dict | Trace, *, deep_copy=True) DataFrame

Module contents

Package for data structures Created on 20/09/24