This repository has been archived by the owner on Oct 30, 2022. It is now read-only.
Issue #91: team-02 - Mean trajectory dispersion simulation #103
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull request type
Please check the type of change your PR introduces:
Pull request checklist
Please check if your PR fulfills the following requirements, depending on the type of PR:
ReadMe, Docs and GitHub maintenance:
Code base maintenance (refactoring, formatting, renaming):
black rocketpy
) has passed locally and any fixes were madepytest --runslow
) have passed locallyCode base additions (for bug fixes / features):
black rocketpy
) has passed locally and any fixes were madepytest --runslow
) have passed locallyWhat is the current behavior?
There are no utilities for dispersion analysis.
What is the new behavior?
Utilities are added to allow easy visualization of the results of dispersion analyses. One can simple pass a list of Flights to
plot_dispersion
. Each flight trajectory is converted from the time domain to the non-dimensional time domain (non-dimensionalized by the duration) and interpolated to a standard number of points (default 1000). Then mean, and standard deviation (in z-axis only) flight trajectories are calculated. Finally, all trajectories are plotted. Real trajectories are plotted in black. Statistical trajectories are plotted in red.Does this introduce a breaking change?
Other information
This could definitely use some tests. Also, it introduces a lot of new utility functions.
See screenshot of simple example: