Ignore:
Timestamp:
09/04/12 12:27:17 (13 years ago)
Author:
Mathieu Morlighem
Message:

CHG: preparing files for python inclusion

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/modules/InterpFromGridToMesh/InterpFromGridToMesh.cpp

    r13229 r13236  
    11/*!\file InterpFromGridToMesh.c
    22 * \brief: data interpolation from a list of (x,y,values) into mesh vertices
    3  
    4         InterpFromGridToMesh.c
    5 
    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 data
    13                 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.
    183*/
    194       
    205#include "./InterpFromGridToMesh.h"
    216
    22 void mexFunction( int nlhs, mxArray* plhs[], int nrhs, const mxArray* prhs[]) {
     7void 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}/*}}}*/
     27WRAPPER(InterpFromGridToMesh){
    2328
    2429        int i,j;
     
    7176        MODULEEND();
    7277}
    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.