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

Geodetic to/from geocentric spherical conversion #55

Merged
merged 2 commits into from
Jun 17, 2022
Merged

Geodetic to/from geocentric spherical conversion #55

merged 2 commits into from
Jun 17, 2022

Conversation

leouieda
Copy link
Contributor

@leouieda leouieda commented Jun 16, 2022

Add two functions to new module pymap3d/spherical.py:
geodetic2spherical and spherical2geodetic to convert between
geocentric geodetic (latitude, longitude, altitude) and geocentric
spherical coordinates (spherical latitude, longitude, radius).
Test against equator and pole easily deduced values as well as
latitude=45 with values pre-computed from the implementation in Boule.
Add the functions to the API definition in pymap3d/__init__.py and to
the list of functions in the README.md.

Fixes #54

Add two functions to new module `pymap3d/spherical.py`:
`geodetic2spherical` and `spherical2geodetic` to convert between
geocentric geodetic (latitude, longitude, altitude) and geocentric
spherical coordinates (spherical latitude, longitude, radius).
Test against equator and pole easily deduced values as well as
latitude=45 with values pre-computed from the implementation in Boule.
Add the functions to the API definition in `pymap3d/__init__.py` and to
the list of functions in the `README.md`.
@scivision scivision merged commit 27e4d99 into geospace-code:main Jun 17, 2022
@scivision
Copy link
Member

Thanks!

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.

Add conversion from geodetic to geocentric spherical
2 participants