source: issm/oecreview/Archive/26740-27031/ISSM-26957-26958.diff@ 27032

Last change on this file since 27032 was 27032, checked in by Mathieu Morlighem, 3 years ago

CHG: added 26740-27031

File size: 1.5 KB
  • ../trunk-jpl/src/m/coordsystems/ll2xy.m

     
    3939        error('bad usage');
    4040end
    4141
     42%Move to CoordTransform now...
     43if exist('CoordTransform_matlab')==3
     44        disp('Calling CoordTransform instead, make sure to change your MATLAB script');
     45        if sgn==+1
     46                assert(delta==45); assert(slat ==70);
     47                [x y]=CoordTransform(lat,lon,'EPSG:4326','EPSG:3413');
     48                return;
     49        else
     50                assert(delta==0); assert(slat ==71);
     51                [x y]=CoordTransform(lat,lon,'EPSG:4326','EPSG:3031');
     52                return;
     53        end
     54end
     55
    4256% Conversion constant from degrees to radians
    4357cde  = 57.29577951;
    4458% Radius of the earth in meters
  • ../trunk-jpl/src/m/coordsystems/xy2ll.m

     
    3535        error('bad usage');
    3636end
    3737
     38%Move to CoordTransform now...
     39if exist('CoordTransform_matlab')==3
     40        disp('Calling CoordTransform instead, make sure to change your MATLAB script');
     41        if sgn==+1
     42                assert(delta==45); assert(slat ==70);
     43                [lat lon]=CoordTransform(x, y,'EPSG:3413','EPSG:4326');
     44                return;
     45        else
     46                assert(delta==0); assert(slat ==71);
     47                [lat lon]=CoordTransform(x, y,'EPSG:3031','EPSG:4326');
     48                return;
     49        end
     50end
     51
    3852if nargout~=3 & nargout~=2,
    3953        help xy2ll
    4054        error('bad usage');
Note: See TracBrowser for help on using the repository browser.