Ignore:
Timestamp:
09/02/14 12:05:17 (11 years ago)
Author:
Mathieu Morlighem
Message:

CHG: new version after my suggestion to the author

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/coordsystems/utm2ll.m

    r18460 r18478  
    11function [lat,lon]=utm2ll(x,y,f,datum,varargin)
    22%UTM2LL UTM to Lat/Lon coordinates precise conversion.
    3 %   [LAT,LON]=UTM2LL(X,Y,ZONE) converts UTM coordinates X,Y (in meters)
     3%       [LAT,LON]=UTM2LL(X,Y,ZONE) converts UTM coordinates X,Y (in meters)
    44%       defined in the UTM ZONE (integer) to latitude LAT and longitude LON
    55%       (in degrees). Default datum is WGS84.
     
    3030%                  Notes Techniques NT/G 76, janvier 1995.
    3131%
    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
    3536
    3637%       Copyright (c) 2001-2014, François Beauducel, covered by BSD License.
     
    105106eps = 1e-11;    % minimum residue for latitude computation
    106107
    107 K0 = 0.9996;                                                            % UTM scale factor
    108 X0 = 500000;                                                            % UTM false East (m)
    109 Y0 = 1e7*(f < 0);                                                       % UTM false North (m)
    110 P0 = 0;                                                                         % UTM origin latitude (rad)
    111 L0 = (6*abs(f) - 183)/D0;                                       % UTM origin longitude (rad)
     108K0 = 0.9996;                                    % UTM scale factor
     109X0 = 500000;                                    % UTM false East (m)
     110Y0 = 1e7*(f < 0);                               % UTM false North (m)
     111P0 = 0;                                         % UTM origin latitude (rad)
     112L0 = (6*abs(f) - 183)/D0;                       % UTM origin longitude (rad)
    112113E1 = sqrt((A1^2 - (A1*(1 - 1/F1))^2)/A1^2);     % ellpsoid excentricity
    113114N = K0*A1;
Note: See TracChangeset for help on using the changeset viewer.