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

Returning wrong zone? #63

Open
e5k opened this issue Dec 14, 2020 · 2 comments
Open

Returning wrong zone? #63

e5k opened this issue Dec 14, 2020 · 2 comments

Comments

@e5k
Copy link

e5k commented Dec 14, 2020

Hi,

I am trying to get the UTM zone for given coordinates (i.e. Taal volcano) using v0.7, Python 3.9 on Anaconda/OSX. It should return 51 P but returns 50 L. Any idea?
Cheers

S

lat=14.0107554
lon=120.9979889

zone = utm.from_latlon(lat,lon)

zone
(609326.0410868623, 9088147.638740664, 50, 'L')

image

@eumiro
Copy link
Contributor

eumiro commented Dec 18, 2020

Just to compare with Python 3.9.0 and the current git clone:

>>> import utm
>>> lat=14.0107554
>>> lon=120.9979889
>>> utm.from_latlon(lat,lon)
(283772.21524068655, 1549830.6652980775, 51, 'P')

@e5k
Copy link
Author

e5k commented Dec 19, 2020

Ok my bad, I had the pip version, thanks for trying. Maybe worth updating it there?

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

2 participants