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
Add conversion from geodetic to geocentric spherical #54
Comments
We can make it a separate file under src/pymap3d/, and then import it from src/pymap3d/ |
👍🏾 sounds good to me! I'll give this a shot and open a PR soon. |
geodetic2geocentric already takes height above the sphreoid in to
consideration:
https://github.com/geospace-code/pymap3d/blob/1ecb84ecf3f81980b845dbfd94dbfdaa08339359/src/pymap3d/latitude.py#L86
…On Thu, Jun 16, 2022 at 6:40 AM Leonardo Uieda ***@***.***> wrote:
👍🏾 sounds good to me! I'll give this a shot and open a PR soon.
—
Reply to this email directly, view it on GitHub
<#54 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABVI32FHDGBPT6J2EPEWKTVPMVC7ANCNFSM5Y3FE3NA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
@ryanpavlick thanks for the pointer, I missed that when going over the I already added the 2 functions to #55 but could change it to patch the existing |
There is a function for converting latitudes from geodetic to geocentric but this is restricted to the surface of the ellipsoid. For many geophysical applications, we need to convert the
(latitude, height)
of points into(latitude_spherical, radius)
.This is implemented in Boule as
boule.Ellipsoid.spherical_to_geodetic
. Boule is more focused on gravity calculations than coordinate conversions so I'd be happy to move that implementation to pymap3d if it's of interest to you.I can volunteer to do this given a bit of guidance as to where to put the functions and what they should be called to fit with pymap3d.
The text was updated successfully, but these errors were encountered: