-
Notifications
You must be signed in to change notification settings - Fork 101
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
Inaccurate and asymmetric (North/South) transformation utm to lat lon #120
Comments
@Turbo87 any thoughts about this? 🙏 |
Hey @Turbo87! Can we help by opening a PR to fix this? |
There is apparently an error (wrong parenthesis position) in the transformation from UTM to lat / lon, at this line:
utm/utm/conversion.py
Line 172 in 418d9c4
Original computation:
Proposed change:
One simple thing to notice is that the original correction term in
d6
had the same sign in the North and South hemisphere whereas it is expected to change.I attach some plots showing the performance improvement when implementing this change, evaluated by doing the double conversion from utm to lat/lon and then back:
I didn't manage to find the source of the code, but on this page you can see a similar series decomposition, and all terms of the latitude expression series are multiplied by
beta1*t1
, which in your code is(p_tan / r)
. That's why I believe the change is needed.The text was updated successfully, but these errors were encountered: