UTM to geographical coordinates
UTM to geographical coordinates
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.
Re: UTM to geographical coordinates
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.
-
- Posts: 9
- Joined: Fri Oct 22, 2004 8:32 pm
- Location: Numerics Warehouse Ltd.
Re: UTM to geographical coordinates
Hi chaos22u,
I have successfully used this script :- http://www.mathworks.com/matlabcentral/ ... 14-utm2deg developed by Gabriel Ruiz Martinez.
Good luck!
Marcel
I have successfully used this script :- http://www.mathworks.com/matlabcentral/ ... 14-utm2deg developed by Gabriel Ruiz Martinez.
Good luck!
Marcel
-
- Posts: 6
- Joined: Thu Mar 01, 2012 2:28 pm
- Location: California Department of Water Resources
Re: UTM to geographical coordinates
It seems that the new version of Matlab(2012a onward) has a function 'minvtran' to do the job.
Re: UTM to geographical coordinates
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);
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);