uataq.sites.MobileSite.merge_gps#
- static MobileSite.merge_gps(obs, gps, on=None, obs_on=None, gps_on=None)[source]#
Merge observation data with location data from GPS.
- Parameters:
(pd.DataFrame) (gps)
(pd.DataFrame)
(str (gps_on)
optional) (The column name in the GPS data to merge on. If not specified, it will use the value of 'on'.)
(str
optional)
(str
optional)
- Return type:
- Returns:
pd.DataFrame: The merged data with added location information.
Notes
Both times are floored to whole seconds and the rows joined where the seconds match, so an observation with no fix in its second is dropped. When two fixes fall in the same second, the observation keeps the one nearest to it in time (the first on a tie), so no observation appears twice.