Changeset 18478 for issm/trunk-jpl/src/m/coordsystems/utm2ll.m
- Timestamp:
- 09/02/14 12:05:17 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/coordsystems/utm2ll.m
r18460 r18478 1 1 function [lat,lon]=utm2ll(x,y,f,datum,varargin) 2 2 %UTM2LL UTM to Lat/Lon coordinates precise conversion. 3 % 3 % [LAT,LON]=UTM2LL(X,Y,ZONE) converts UTM coordinates X,Y (in meters) 4 4 % defined in the UTM ZONE (integer) to latitude LAT and longitude LON 5 5 % (in degrees). Default datum is WGS84. … … 30 30 % Notes Techniques NT/G 76, janvier 1995. 31 31 % 32 % Author: Francois Beauducel, <beauducel@ipgp.fr> 33 % Created: 2001-08-23 34 % Updated: 2014-04-20 32 % Author: Francois Beauducel, <beauducel@ipgp.fr> 33 % Created: 2001-08-23 34 % Updated: 2014-04-20 35 35 36 36 37 % Copyright (c) 2001-2014, François Beauducel, covered by BSD License. … … 105 106 eps = 1e-11; % minimum residue for latitude computation 106 107 107 K0 = 0.9996; 108 X0 = 500000; 109 Y0 = 1e7*(f < 0); 110 P0 = 0; 111 L0 = (6*abs(f) - 183)/D0; 108 K0 = 0.9996; % UTM scale factor 109 X0 = 500000; % UTM false East (m) 110 Y0 = 1e7*(f < 0); % UTM false North (m) 111 P0 = 0; % UTM origin latitude (rad) 112 L0 = (6*abs(f) - 183)/D0; % UTM origin longitude (rad) 112 113 E1 = sqrt((A1^2 - (A1*(1 - 1/F1))^2)/A1^2); % ellpsoid excentricity 113 114 N = K0*A1;
Note:
See TracChangeset
for help on using the changeset viewer.