source:
issm/oecreview/Archive/26740-27031/ISSM-26957-26958.diff
Last change on this file was 27032, checked in by , 3 years ago | |
---|---|
File size: 1.5 KB |
-
../trunk-jpl/src/m/coordsystems/ll2xy.m
39 39 error('bad usage'); 40 40 end 41 41 42 %Move to CoordTransform now... 43 if 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 54 end 55 42 56 % Conversion constant from degrees to radians 43 57 cde = 57.29577951; 44 58 % Radius of the earth in meters -
../trunk-jpl/src/m/coordsystems/xy2ll.m
35 35 error('bad usage'); 36 36 end 37 37 38 %Move to CoordTransform now... 39 if 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 50 end 51 38 52 if nargout~=3 & nargout~=2, 39 53 help xy2ll 40 54 error('bad usage');
Note:
See TracBrowser
for help on using the repository browser.