Changeset 15396 for issm/trunk/src/wrappers/InterpFromGridToMesh
- Timestamp:
- 07/02/13 09:24:16 (12 years ago)
- Location:
- issm/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk
- Property svn:ignore
-
old new 1 par 2 ad 3 proj-* 1 4 projects 2 5 autom4te.cache
-
- Property svn:mergeinfo changed
/issm/trunk-jpl merged: 14311,14313,14316-14506,14508-15387,15390-15392
- Property svn:ignore
-
issm/trunk/src
- Property svn:mergeinfo changed
-
issm/trunk/src/wrappers/InterpFromGridToMesh/InterpFromGridToMesh.cpp
r13923 r15396 2 2 * \brief: data interpolation from a list of (x,y,values) into mesh vertices 3 3 */ 4 4 5 5 #include "./InterpFromGridToMesh.h" 6 6 7 7 void InterpFromGridToMeshUsage(void){/*{{{*/ 8 _p printLine_("INTERPFROMGRIDTOMESH - interpolation from a grid onto a list of points");9 _p printLine_("");10 _p printLine_(" This function is a multi-threaded mex file that interpolates a field");11 _p printLine_(" defined on a grid onto a list of points");12 _p printLine_("");13 _p printLine_(" Usage:");14 _p printLine_(" data_mesh=InterpFromGridToMesh(x,y,data,x_mesh,y_mesh,default_value);");15 _p printLine_("");16 _p printLine_(" data: matrix holding the data to be interpolated onto the mesh.");17 _p printLine_(" x,y: coordinates of matrix data. (x and y must be in increasing order)");18 _p printLine_(" x_mesh,y_mesh: coordinates of the points onto which we interpolate.");19 _p printLine_(" default_value: default value if no data is found (holes).");20 _p printLine_(" data_mesh: vector of mesh interpolated data.");21 _p printLine_("");22 _p printLine_(" Example:");23 _p printLine_(" load('velocities.mat');");24 _p printLine_(" md.inversion.vx_obs=InterpFromGridToMesh(x_n,y_m,vx,md.mesh.x,md.mesh.y,0);");25 _p printLine_("");8 _printf0_("INTERPFROMGRIDTOMESH - interpolation from a grid onto a list of points\n"); 9 _printf0_("\n"); 10 _printf0_(" This function is a multi-threaded mex file that interpolates a field\n"); 11 _printf0_(" defined on a grid onto a list of points\n"); 12 _printf0_("\n"); 13 _printf0_(" Usage:\n"); 14 _printf0_(" data_mesh=InterpFromGridToMesh(x,y,data,x_mesh,y_mesh,default_value);\n"); 15 _printf0_("\n"); 16 _printf0_(" data: matrix holding the data to be interpolated onto the mesh.\n"); 17 _printf0_(" x,y: coordinates of matrix data. (x and y must be in increasing order)\n"); 18 _printf0_(" x_mesh,y_mesh: coordinates of the points onto which we interpolate.\n"); 19 _printf0_(" default_value: default value if no data is found (holes).\n"); 20 _printf0_(" data_mesh: vector of mesh interpolated data.\n"); 21 _printf0_("\n"); 22 _printf0_(" Example:\n"); 23 _printf0_(" load('velocities.mat');\n"); 24 _printf0_(" md.inversion.vx_obs=InterpFromGridToMesh(x_n,y_m,vx,md.mesh.x,md.mesh.y,0);\n"); 25 _printf0_("\n"); 26 26 }/*}}}*/ 27 27 WRAPPER(InterpFromGridToMesh){ … … 42 42 43 43 /* output: */ 44 SeqVec<double>* data_mesh=NULL;44 IssmSeqVec<double>* data_mesh=NULL; 45 45 46 46 /*Boot module: */ -
issm/trunk/src/wrappers/InterpFromGridToMesh/InterpFromGridToMesh.h
r13749 r15396 17 17 #endif 18 18 19 #include "../../c/include/globals.h" 19 #include "../bindings.h" 20 #include "../../c/main/globals.h" 20 21 #include "../../c/modules/modules.h" 21 #include "../../c/Container/Container.h"22 22 #include "../../c/shared/shared.h" 23 #include "../bindings.h"24 23 25 24 #undef __FUNCT__
Note:
See TracChangeset
for help on using the changeset viewer.