- Timestamp:
- 09/04/12 12:27:17 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/modules/InterpFromGridToMesh/InterpFromGridToMesh.cpp
r13229 r13236 1 1 /*!\file InterpFromGridToMesh.c 2 2 * \brief: data interpolation from a list of (x,y,values) into mesh vertices 3 4 InterpFromGridToMesh.c5 6 usage:7 data_mesh=InterpFromGridToMesh(x,y,data,x_mesh,y_mesh);8 9 where:10 11 input:12 x,y: coordinates of matrix data13 data - matrix holding the data to be interpolated onto the mesh.14 x_mesh,y_mesh: coordinates of the mesh vertices onto which we interpolate.15 16 output:17 data_mesh: vector of mesh interpolated data.18 3 */ 19 4 20 5 #include "./InterpFromGridToMesh.h" 21 6 22 void mexFunction( int nlhs, mxArray* plhs[], int nrhs, const mxArray* prhs[]) { 7 void InterpFromGridToMeshUsage(void){/*{{{*/ 8 _pprintLine_("INTERPFROMGRIDTOMESH - interpolation from a grid onto a list of points"); 9 _pprintLine_(""); 10 _pprintLine_(" This function is a multi-threaded mex file that interpolates a field"); 11 _pprintLine_(" defined on a grid onto a list of points"); 12 _pprintLine_(""); 13 _pprintLine_(" Usage:"); 14 _pprintLine_(" data_mesh=InterpFromGridToMesh(x,y,data,x_mesh,y_mesh,default_value);"); 15 _pprintLine_(""); 16 _pprintLine_(" data: matrix holding the data to be interpolated onto the mesh."); 17 _pprintLine_(" x,y: coordinates of matrix data. (x and y must be in increasing order)"); 18 _pprintLine_(" x_mesh,y_mesh: coordinates of the points onto which we interpolate."); 19 _pprintLine_(" default_value: default value if no data is found (holes)."); 20 _pprintLine_(" data_mesh: vector of mesh interpolated data."); 21 _pprintLine_(""); 22 _pprintLine_(" Example:"); 23 _pprintLine_(" load('velocities.mat');"); 24 _pprintLine_(" md.inversion.vx_obs=InterpFromGridToMesh(x_n,y_m,vx,md.mesh.x,md.mesh.y,0);"); 25 _pprintLine_(""); 26 }/*}}}*/ 27 WRAPPER(InterpFromGridToMesh){ 23 28 24 29 int i,j; … … 71 76 MODULEEND(); 72 77 } 73 74 void InterpFromGridToMeshUsage(void)75 {76 _pprintLine_("INTERPFROMGRIDTOMESH - interpolation from a grid onto a list of points");77 _pprintLine_("");78 _pprintLine_(" This function is a multi-threaded mex file that interpolates a field");79 _pprintLine_(" defined on a grid onto a list of points");80 _pprintLine_("");81 _pprintLine_(" Usage:");82 _pprintLine_(" data_mesh=InterpFromGridToMesh(x,y,data,x_mesh,y_mesh,default_value);");83 _pprintLine_("");84 _pprintLine_(" data: matrix holding the data to be interpolated onto the mesh.");85 _pprintLine_(" x,y: coordinates of matrix data. (x and y must be in increasing order)");86 _pprintLine_(" x_mesh,y_mesh: coordinates of the points onto which we interpolate.");87 _pprintLine_(" default_value: default value if no data is found (holes).");88 _pprintLine_(" data_mesh: vector of mesh interpolated data.");89 _pprintLine_("");90 _pprintLine_(" Example:");91 _pprintLine_(" load('velocities.mat');");92 _pprintLine_(" md.inversion.vx_obs=InterpFromGridToMesh(x_n,y_m,vx,md.mesh.x,md.mesh.y,0);");93 _pprintLine_("");94 }
Note:
See TracChangeset
for help on using the changeset viewer.