UTM to geographical coordinates

Discussion about analysis, visualization, and collaboration tools and techniques

Moderators: arango, robertson

Post Reply
Message
Author
chaos4u2
Posts: 26
Joined: Sun Oct 30, 2011 3:12 pm
Location: UPC

UTM to geographical coordinates

#1 Post by chaos4u2 » Tue Feb 05, 2013 5:36 pm

Hello to all. I would like to ask if anybody has a matlab script to transform UTM to geographical coordinates in a massive file of bathymetry. I really need it. Thank you in advance.

lanerolle
Posts: 157
Joined: Mon Apr 28, 2003 5:12 pm
Location: NOAA

Re: UTM to geographical coordinates

#2 Post by lanerolle » Wed Feb 06, 2013 12:43 am

Yes, I found one online and have used it extenstively and its working very well - just simply do a google search with something like "Matlab UTM to longitude conversion" and you will find several routines.

marcelcure
Posts: 9
Joined: Fri Oct 22, 2004 8:32 pm
Location: Numerics Warehouse Ltd.

Re: UTM to geographical coordinates

#3 Post by marcelcure » Wed Feb 06, 2013 12:44 am

Hi chaos22u,

I have successfully used this script :- http://www.mathworks.com/matlabcentral/ ... 14-utm2deg developed by Gabriel Ruiz Martinez.

Good luck!

Marcel

zhzhlin
Posts: 5
Joined: Thu Mar 01, 2012 2:28 pm
Location: The University of Western Australia

Re: UTM to geographical coordinates

#4 Post by zhzhlin » Thu Feb 07, 2013 2:17 am

It seems that the new version of Matlab(2012a onward) has a function 'minvtran' to do the job.

chaos4u2
Posts: 26
Joined: Sun Oct 30, 2011 3:12 pm
Location: UPC

Re: UTM to geographical coordinates

#5 Post by chaos4u2 » Tue Feb 12, 2013 4:09 pm

Thank you very much to all three. Finally I used the script utm2deg.m and it worked.

I had a few problems with the utmzone, because I had more than a million data, and creating this array in matlab it was complicated. If anybody ones to know, I created by:

s='31 T';
utmzone=repmat(s,1514443,1);

And then by executing the function: [Lat,Lon]=utm2deg(x,y,utmzone);

Post Reply