This repository was archived by the owner on Oct 30, 2022. It is now read-only.
Issue #91: team-02 - Mean trajectory dispersion simulation#103
Open
SullivanMuse wants to merge 2 commits intoRocketPy-Team:masterfrom
Open
Issue #91: team-02 - Mean trajectory dispersion simulation#103SullivanMuse wants to merge 2 commits intoRocketPy-Team:masterfrom
SullivanMuse wants to merge 2 commits intoRocketPy-Team:masterfrom
Conversation
giovaniceotto
approved these changes
Aug 28, 2022
Member
giovaniceotto
left a comment
There was a problem hiding this comment.
Great work @SullivanMuse! This is a great solution to the problem. Kudos for normalizing the time vector and making sure to make time steps uniform.
I ran your notebook here with some more flights and kept getting a great result:

Member
|
Awesome!! |
Member
|
May recieve an extra 20% points since it was the onlly team solving this challege |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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: