Rank: 1892 based on 62 downloads (last 30 days) and 1 file submitted
photo

Alexandre Schimel

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Alexandre
Updated   File Tags Downloads
(last 30 days)
Comments Rating
01 Feb 2012 wgs2utm (version 2) Convert WGS84 coordinates (Latitude, Longitude) into UTM coordinates (northing, easting). Author: Alexandre Schimel wgs, wgs84, utm, latitude, longitude, conversion 62 10
  • 5.0
5.0 | 4 ratings
Comments and Ratings by Alexandre View all
Updated File Comments Rating
05 Mar 2014 run_exiftool Read and write full Exif metadata from image files. A Matlab front end for ExifTool, by Phil Harvey. Author: Peter Burns

works like a charm

01 Feb 2012 wgs2utm (version 2) Convert WGS84 coordinates (Latitude, Longitude) into UTM coordinates (northing, easting). Author: Alexandre Schimel

FYI. I just submitted a new version of the wgs2utm allowing to force UTM zone and hemisphere in input, as per requests.

You can still use it like the old one though, ie with no forcing and let the function choose the appropriate zone. The new function should be compatible with any code using the old version. Check function's help for more info on use.

05 Aug 2010 MAKEDATATIP Allows programmatically adding datatips to any valid graphical object. Author: Tim Farajian

very good, well coded and useful function.
Just a note. I use R2008a and tried to use it on a "imagesc" graphical object. The function doesn't work since image properties have different XData and YData and no Zdata. I had to tweak a little the code.

05 Jun 2009 wgs2utm (version 2) Convert WGS84 coordinates (Latitude, Longitude) into UTM coordinates (northing, easting). Author: Alexandre Schimel

Comment about forcing output UTM zone.

Two parameters change for each UTM zone: the reference longitude and the false northing. In the current code, these values are caculated from the input data at lines 63 and 68:
Lon0 = floor(Lon./6).*6+3; % reference longitude in degrees
FN = (Lat < 0).*10000000; % false northing

In order to force the output UTM zone, one can force these two parameters to their desired value. If you know your reference longitude, just replace Lon0 by this value. If you know the zone number ii, replace Lon0 by 6*ii-183

Set FN to 0 for northern hemisphere, or 10000000 for southern hemisphere.

Comments and Ratings on Alexandre's Files View all
Updated File Comment by Comments Rating
30 Jul 2014 wgs2utm (version 2) Convert WGS84 coordinates (Latitude, Longitude) into UTM coordinates (northing, easting). Author: Alexandre Schimel Gonzalo

Thank you very much. This function works perfectly for me. I'm working on geolocation of buses in London and the function has no problems and is helping me a lot in my research.

27 Feb 2014 wgs2utm (version 2) Convert WGS84 coordinates (Latitude, Longitude) into UTM coordinates (northing, easting). Author: Alexandre Schimel Esteban

18 Feb 2014 wgs2utm (version 2) Convert WGS84 coordinates (Latitude, Longitude) into UTM coordinates (northing, easting). Author: Alexandre Schimel jack

really thanks.

30 Jun 2012 wgs2utm (version 2) Convert WGS84 coordinates (Latitude, Longitude) into UTM coordinates (northing, easting). Author: Alexandre Schimel Sohrabinia, M

Hey again, had been working on this issue since I wrote the comment, it appears Matlab's built-in functions need more tweaking (I checked this with ArcGIS too), your function works accuratesly with sub-meter precision. Please ignore my previous comment.

30 Jun 2012 wgs2utm (version 2) Convert WGS84 coordinates (Latitude, Longitude) into UTM coordinates (northing, easting). Author: Alexandre Schimel Sohrabinia, M

Hi and thanks for your code,
I just did a quick comparison between your code and Matlab's built-in functions to calculate UTM values based on LatLon, here are the results:
Matlab:
mstruct = defaultm('utm');
mstruct.zone=utmzone(-43.5,172.5);
mstruct = defaultm(mstruct);
[x,y] = mfwdtran(mstruct,-43.5,172.5)
Result: 621272.828768645 5182478.29916538
Your code:
[x,y,zone1,utmhemi1] = wgs2utm(-43.5, 172.5)
Result: 621267.241003134 5182565.80639284
(there is almost 100 meter diff in y).
By the way, you have used utmzone as variable name in the output which conflicts with Matlab's built-in function name, it took me a while why I am getting weird errors after trying your function (output from your function stops utmzone function from working). Good luck

Contact us