source: issm/oecreview/Archive/24684-25833/ISSM-24787-24788.diff

Last change on this file was 25834, checked in by Mathieu Morlighem, 4 years ago

CHG: added 24684-25833

File size: 872 bytes
RevLine 
[25834]1Index: ../trunk-jpl/src/m/modules/CoordTransform.m
2===================================================================
3--- ../trunk-jpl/src/m/modules/CoordTransform.m (nonexistent)
4+++ ../trunk-jpl/src/m/modules/CoordTransform.m (revision 24788)
5@@ -0,0 +1,21 @@
6+function [xout,yout] = CoordTransform(xin,yin,projin,projout)
7+%COORDTRANSFORM - use PROJ to transform coordinates
8+%
9+% Usage:
10+% [xout,yout] = CoordTransform(xin,yin,projin,projout)
11+%
12+% xin, yin : input coordinates
13+% xout, yout: output coordinates (in new projection)
14+% projin,projout: input/output projection string (PROJ)
15+%
16+% This function will only work of PROJ has been installed in externalpackages
17+
18+% Check usage
19+if nargin~=4
20+ help CoordTransform
21+ error('Wrong usage (see above)');
22+end
23+
24+% Call mex module
25+[xout, yout] = CoordTransform_matlab(xin,yin,projin,projout);
26+
Note: See TracBrowser for help on using the repository browser.