pandas.DataFrame.xyz.ds_from_xy
- DataFrame.xyz.ds_from_xy(**kwargs)[source]
Calculate point-to-point displacements from GPS coordinates.
The chosen scheme: displacement at [i] represents the distance from [i-1] to [i].
- Parameters
**lat (scalar) – column label in the record DataFrame containing latitude coordinates along the route in degrees N (-90, 90). Must be numeric dtype. If a label is not provided, the parameter name itself is used.
**lon (scalar) – column label in the record DataFrame containing longitude coordinates along the route in degrees E (-180, 180). Must be numeric dtype. If a label is not provided, the parameter name itself is used.
- Returns
point-to-point displacements along the route in meters.
- Return type
pandas.Series
- Assumptions:
Earth is a perfect sphere, with radius =
pandas_xyz.scalar.EARTH_RADIUS_METERS.The point-to-point distances are sufficiently short (so that latitude distortion and curvature have limited effects).