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

New plots #11

Merged
merged 55 commits into from
Jul 25, 2024
Merged

New plots #11

merged 55 commits into from
Jul 25, 2024

Conversation

SuperdoerTrav
Copy link
Collaborator

Added new plots to ssapy, also corrected a lot of the previous plotting functions.
orbit_plot handles many orbital frames for visualizing ssapy orbits.
groundTrackplot provides Earth maps of ssapy orbits
globeplot will create a 3d render of the Earth with a ssapy orbit.
koe_plot will plot the Keplerian orbital elements of a ssapy orbit.

Many supporting functions were required to be added for the plots. They exist in compute.py utils.py mainly.
Some of the IO functions were updated to handle more error types and do properly read csv delimiters.

New compute functions for calculating the positions of the Earth-Moon Lagrange points were added.

yeager7 and others added 26 commits July 18, 2024 15:58
@SuperdoerTrav SuperdoerTrav requested a review from aperloff July 22, 2024 22:27
Copy link
Member

@aperloff aperloff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In general, you need to add docstrings to just about every function. Also there are large portions of plotUtils.py and utils.py where I'm not sure what you changed vs reordered vs removed. I'm trusting somewhat that you did your due diligence and didn't remove any features.

.gitignore Show resolved Hide resolved
ssapy/compute.py Show resolved Hide resolved
ssapy/compute.py Show resolved Hide resolved
ssapy/compute.py Show resolved Hide resolved
ssapy/compute.py Show resolved Hide resolved
ssapy/io.py Show resolved Hide resolved
ssapy/io.py Outdated Show resolved Hide resolved
ssapy/io.py Show resolved Hide resolved
ssapy/io.py Show resolved Hide resolved
ssapy/io.py Show resolved Hide resolved
Copy link
Collaborator Author

@SuperdoerTrav SuperdoerTrav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added doc strings to everything.

ssapy/io.py Show resolved Hide resolved
ssapy/io.py Show resolved Hide resolved
ssapy/io.py Show resolved Hide resolved
ssapy/io.py Show resolved Hide resolved
.gitignore Show resolved Hide resolved
ssapy/compute.py Show resolved Hide resolved
ssapy/compute.py Outdated Show resolved Hide resolved
ssapy/compute.py Show resolved Hide resolved
ssapy/io.py Outdated Show resolved Hide resolved
ssapy/plotUtils.py Outdated Show resolved Hide resolved
ssapy/plotUtils.py Show resolved Hide resolved
ssapy/plotUtils.py Outdated Show resolved Hide resolved
ssapy/simple.py Outdated Show resolved Hide resolved
tests/test_plots.py Outdated Show resolved Hide resolved
ssapy/compute.py Outdated Show resolved Hide resolved
ssapy/io.py Outdated Show resolved Hide resolved
ssapy/io.py Outdated Show resolved Hide resolved
ssapy/io.py Outdated Show resolved Hide resolved
ssapy/io.py Outdated Show resolved Hide resolved
Copy link
Member

@aperloff aperloff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All of the requested changes have been made.

@aperloff aperloff merged commit 9ed512e into main Jul 25, 2024
5 checks passed
@aperloff aperloff deleted the new_plots branch July 25, 2024 23:35
aperloff pushed a commit that referenced this pull request Jan 13, 2025
* new file to handle coordinate conversions

* moved most of the coordinate functions to .coordinates, some remain as they will require much more refactoring

* added several functions for use in plotUtils

* improved the brightness functions and added a gamma angle calculation

* updated the calculate_orbital_elements function

* added keplerian orbital element plots

* simply.py is a useful file to add functions that combine many other functionalities within ssapy.

* added points_on_circle for use in simply.py

* added ipython module for interactive plots

* added imageio for generation of gifs.

* added tqdm for progress bars

* added faster io functions and updated old io functions added by me

* added functions to calculate the position of lagrange points

* removed due to circular import conflicts, coordinates are all together in utils.py where they initially were

* added many more coordinate conversions useful for plotting

* added a gif writing function

* added built in plot to rotate_vector - used for validation

* fixed remaining circular imports

* cleaned up the get_times function, added weeks as a unit

* added doc string to ssapy_orbit()

* added plot_path as optional input to rotate_vector()

* added simply.py which will contain simplified functions for using ssapy

* adding a testing plot testing function

* changed the output of ssapy_orbit() to always give back the time array used.

* changed save directory of test plots

* added an ignore for the ssapy_test_plots/ folder which will be generated if user runs test_plots.py

* added docstrings to all plot functions

* added doc strings to all new functions

* added doc strings

* changed lagrange_point_lunar_frame() doc string

* more doc strings

* added doc strings

* added / after {save_folder}

* empty line at end

* doc string to DRO()

* new line added

* mentioned Kelerian in the doc string

* file_exists renamed

* renamed getAngle and moved get_angle to utils.py where a copy was already.

* renamed file_exists

* modified save_plot to accept any extension

* renamed write gif to save_animated_gif

* removed a comment

* removed get_angle()

* changed doc strings to lagrange point functions

* changed some function names that were changed in .utils and .compute

* merged make_black and make_white to set_color_theme

* renamed groundTrackPlot and added Keplerian to several dot strings

* drawmoon and drawearth renamed

* standardized npload and npsave and pload psave

* more renamed and changes

* lunar decapitalized

* bool instantly returned in exists

* index added to sortbynum to allow user to chose which number to sort by

* sortbynum renamed to _sortbynum

---------

Co-authored-by: yeager7 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants