Changeset 26959
- Timestamp:
- 04/15/22 12:32:48 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/modules/CoordTransform.m
r26367 r26959 4 4 % Usage: 5 5 % [xout,yout] = CoordTransform(xin,yin,projin,projout) 6 % 7 % xin, yin : input coordinates 8 % xout, yout: output coordinates (in new projection) 9 % projin,projout: input/output projection string (PROJ) 6 % - xin, yin : input coordinates 7 % - xout, yout: output coordinates (in new projection) 8 % - projin,projout: input/output projection string (PROJ) 9 % 10 % Examples: 11 % [md.mesh.lat md.mesh.long] = CoordTransform(md.mesh.x, md.mesh.y, 'EPSG:3413','EPSG:4326'); 12 % [md.mesh.x md.mesh.y] = CoordTransform(md.mesh.lat,md.mesh.long,'EPSG:4326','EPSG:3413'); 10 13 % 11 14 % Example of Projections: 15 % lat/lon = 'EPSG:4326' or lat/lon = '+proj=longlat +datum=WGS84' 16 % Greenland = 'EPSG:3413' (polar stereographic 70N 45W) 17 % Antarctica = 'EPSG:3031' (polar stereographic 71S 0E) 18 % 19 % ll2xy previous default equivalent (uses with Hugues Ellispoid S) 20 % Greenland = '+proj=stere +lat_0=90 +lat_ts=70 +lon_0=-45 +k=1 +x_0=0 +y_0=0 +a=6378273 +b=6356889.448564109 +units=m +no_defs' 21 % Antarctica = '+proj=stere +lat_0=-90 +lat_ts=-71 +lon_0=0 +k=1 +x_0=0 +y_0=0 +a=6378273 +b=6356889.448564109 +units=m +no_defs' 22 % Bamber Greenland = '+proj=stere +lat_0=90 +lat_ts=71 +lon_0=-39 +k=1 +x_0=0 +y_0=0 +ellps=WGS84 +datum=WGS84 +units=m +no_defs' 12 23 % 13 % lat/lon = '+init=epsg:4326' 14 % lat/lon = '+proj=longlat +datum=WGS84' 15 % 16 % ll2xy default equivalent (uses with Hugues Ellispoid S) 17 % Greenland = '+proj=stere +lat_0=90 +lat_ts=70 +lon_0=-45 +k=1 +x_0=0 +y_0=0 +a=6378273 +b=6356889.448564109 +units=m +no_defs' 18 % Antarctica = '+proj=stere +lat_0=-90 +lat_ts=-71 +lon_0=0 +k=1 +x_0=0 +y_0=0 +a=6378273 +b=6356889.448564109 +units=m +no_defs' 19 % Bamber Greenland = '+proj=stere +lat_0=90 +lat_ts=71 +lon_0=-39 +k=1 +x_0=0 +y_0=0 +ellps=WGS84 +datum=WGS84 +units=m +no_defs' 20 % 21 % For latitude/longitude, x is longitude and y latitude and the angles are in 22 % rad 23 % 24 % This function will only work if PROJ has been installed and --with-proj-dir 24 % This function will only work if PROJ has been installed and --with-proj-dir 25 25 % option has been set to its location in ISSM configuration 26 26
Note:
See TracChangeset
for help on using the changeset viewer.