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

geodetic2enu produce different values from ecef2enu #49

Closed
quonn77 opened this issue Dec 5, 2021 · 1 comment
Closed

geodetic2enu produce different values from ecef2enu #49

quonn77 opened this issue Dec 5, 2021 · 1 comment

Comments

@quonn77
Copy link

quonn77 commented Dec 5, 2021

Invoking both geodetic2enu and ecef2enu with the same location and observable produce different output

import pymap3d as pm

lat1 = 45.977
lon1 = 7.658
h1 = 4531

lat0 = 46.017
lon0 = 7.750
h0 = 1673

x,y,z = pm.geodetic2ecef(lat1,lon1,h1)
e,n,u = pm.ecef2enu(x,y,z,lat0,lon0,h0)
e1,n1,u1 = pm.geodetic2enu(lat1,lon1,h1,lat0,lon0,h0)
print ("E=%f N=%f U=%f" % (e,n,u))
print ("E1=%f N1=%f U1=%f" % (e1,n1,u1))

Produce different output. I am expecting same result for enu the U output differs.

@quonn77
Copy link
Author

quonn77 commented Dec 6, 2021

Same here...it was my mistake, I was printing wrong result because I have in the middle a geodetic2aer.....sorry again

@quonn77 quonn77 closed this as completed Dec 6, 2021
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

No branches or pull requests

1 participant