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

Turn longitude_semimajor_axis into an optional attribute #183

Conversation

MarkWieczorek
Copy link
Contributor

@MarkWieczorek MarkWieczorek commented Apr 8, 2024

This PR turns longitude_semimajor_axis (renamed to semimajor_axis_longitude) into an optional attribute that is used to instantiate triaxial ellipsoids.

Previously, this parameter was found as an optional argument to the geocentric radius function. However, this parameter is an intrinsic property of the ellipsoid, and will be necessary for all routines that make use of longitude coordinates. As this is now declared as a class attribute, I have thus remove this optional parameter from geocentric radius.

The test_geocentric_radius_semimajor_axis_longitude was somewhat modified: I declared a new ellipsoid triaxialellipsoid_90 that set semimajor_axis_longitude to 90.

As soon as this PR is merged, I will add the centrifugal_potential method (which requires the updated geocentric_radius function).

Note that at some point, we may want to allow for ellipsoids that are not rotating about the z axis, but this is probably far off into the future.

Relevant issues/PRs:

@MarkWieczorek MarkWieczorek force-pushed the triaxial_centrifugal_potential branch from dfc7a72 to fc8ca61 Compare April 8, 2024 14:21
@MarkWieczorek MarkWieczorek force-pushed the triaxial_centrifugal_potential branch from ca20bb7 to a7c6470 Compare April 8, 2024 14:28
@MarkWieczorek MarkWieczorek mentioned this pull request Apr 10, 2024
@MarkWieczorek
Copy link
Contributor Author

This PR was incorporated into #180

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.

None yet

2 participants