Turbo87 / utm

Bidirectional UTM-WGS84 converter for python
http://pypi.python.org/pypi/utm
MIT License
486 stars 101 forks source link

wrong Easting when trying to convert hurricane katrina track from lon lat to utm #83

Open albacidcarrera opened 2 years ago

albacidcarrera commented 2 years ago

I'm attaching a picture that summarizes my problem. In blue and orange you can see the correct US coast and hurricane track, in black is what I obtain using utm.from_latlon. Coast appears to be moved to east while track is moved west.

Do you know what might be happening? Thanks

download (2)

jjccmm commented 1 year ago

I can imagine that you transformed your coordinates into different UTM Zones. Check the zone of the correct (blue/yellow) coordinates and compare what you get with utm.from_latlon. To convert all coordinates into a particular zone use the batch conversation with numpy arrays and add a coordinate from the desired zone to the beginning of the arrays.