Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interpolate direction #359

Open
nomeata opened this issue Dec 21, 2023 · 4 comments
Open

Interpolate direction #359

nomeata opened this issue Dec 21, 2023 · 4 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@nomeata
Copy link

nomeata commented Dec 21, 2023

Is your feature request related to a problem?

I wish I could use MovingPandas to analyze paragliding tracks, and I am mostly looking for a nice way to interpolate the tracks and query various parameters at certain times.

Describe the solution you'd like

I see there is add_direction which adds the direction between adjacent points. But for working with an interpolated track (e.g. using get_position_at), I’d also expect to be able to run get_direction_at with a suitable interpolation.

@nomeata nomeata added the enhancement New feature or request label Dec 21, 2023
@nomeata
Copy link
Author

nomeata commented Dec 21, 2023

Upon further thought, I notice that I am not sure whether movingpandas even performs interpolations (like splines) where the direction changes between adjacent points, so maybe the request is pointless because it’s only linearly interpolating?

@anitagraser
Copy link
Collaborator

Indeed, MovingPandas performs linear interpolation and there is no spline interpolation so far.

@nomeata
Copy link
Author

nomeata commented Dec 21, 2023

Thanks, and sorry for the incomplete research. Feel free to close or keep open as it's more useful to you. For my purposes I'll play with https://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.splprep.html and see if that works.

@anitagraser
Copy link
Collaborator

anitagraser commented Dec 21, 2023

Given the lack of splines, maybe the kalman smoother could help instead: https://movingpandas.readthedocs.io/en/main/trajectorysmoother.html

@anitagraser anitagraser added the help wanted Extra attention is needed label Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants