Changeset 15105


Ignore:
Timestamp:
05/24/13 19:12:27 (12 years ago)
Author:
Mathieu Morlighem
Message:

CHG: simplifying prints

Location:
issm/trunk-jpl/src/wrappers
Files:
40 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified issm/trunk-jpl/src/wrappers/AverageFilter/AverageFilter.cpp

    r15100 r15105  
    1313
    1414void AverageFilterUsage(void){/*{{{*/
    15         _printf_("   AverageFilter usage:" << "\n");
    16         _printf_("   [image_out]=AverageFilter(image_in,pixels)" << "\n");
    17         _printf_("   where:" << "\n");
    18         _printf_("      image_in in double format" << "\n");
    19         _printf_("      pixels: characteristic size of smoothing" << "\n");
    20         _printf_("      image_out in double format" << "\n");
    21         _printf_("" << "\n");
     15        _printf_("   AverageFilter usage:\n");
     16        _printf_("   [image_out]=AverageFilter(image_in,pixels)\n");
     17        _printf_("   where:\n");
     18        _printf_("      image_in in double format\n");
     19        _printf_("      pixels: characteristic size of smoothing\n");
     20        _printf_("      image_out in double format\n");
     21        _printf_("\n");
    2222}/*}}}*/
    2323WRAPPER(AverageFilter){
  • TabularUnified issm/trunk-jpl/src/wrappers/BamgConvertMesh/BamgConvertMesh.cpp

    r15100 r15105  
    66void BamgConvertMeshUsage(void){/*{{{*/
    77        _printf0_("BAMGCONVERTMESH - convert [x y index] to a bamg geom and mesh geom");
    8         _printf0_("" << "\n");
    9         _printf0_("   Usage:" << "\n");
    10         _printf0_("      [bamggeom bamgmesh]=BamgConvertMesh(index,x,y)" << "\n");
    11         _printf0_("      index: index of the mesh" << "\n");
    12         _printf0_("      x,y: coordinates of the nodes" << "\n");
    13         _printf0_("" << "\n");
     8        _printf0_("\n");
     9        _printf0_("   Usage:\n");
     10        _printf0_("      [bamggeom bamgmesh]=BamgConvertMesh(index,x,y)\n");
     11        _printf0_("      index: index of the mesh\n");
     12        _printf0_("      x,y: coordinates of the nodes\n");
     13        _printf0_("\n");
    1414}/*}}}*/
    1515WRAPPER(BamgConvertMesh){
  • TabularUnified issm/trunk-jpl/src/wrappers/BamgMesher/BamgMesher.cpp

    r15100 r15105  
    55
    66void BamgMesherUsage(void){/*{{{*/
    7         _printf0_("" << "\n");
    8         _printf0_("   usage: [bamgmesh,bamggeom]=" << __FUNCT__ << "(bamgmesh,bamggeom,bamgoptions)" << "\n");
    9         _printf0_("" << "\n");
     7        _printf0_("\n");
     8        _printf0_("   usage: [bamgmesh,bamggeom]=" << __FUNCT__ << "(bamgmesh,bamggeom,bamgoptions)\n");
     9        _printf0_("\n");
    1010}/*}}}*/
    1111WRAPPER(BamgMesher){
  • TabularUnified issm/trunk-jpl/src/wrappers/BamgTriangulate/BamgTriangulate.cpp

    r15100 r15105  
    66void BamgTriangulateUsage(void){/*{{{*/
    77        _printf0_("BAMGTRIANGULATE - Delaunay Triangulation of a list of points");
    8         _printf0_("" << "\n");
    9         _printf0_("   Usage:" << "\n");
    10         _printf0_("      index=BamgTriangulate(x,y);" << "\n");
    11         _printf0_("      index: index of the triangulation" << "\n");
    12         _printf0_("      x,y: coordinates of the nodes" << "\n");
    13         _printf0_("" << "\n");
     8        _printf0_("\n");
     9        _printf0_("   Usage:\n");
     10        _printf0_("      index=BamgTriangulate(x,y);\n");
     11        _printf0_("      index: index of the triangulation\n");
     12        _printf0_("      x,y: coordinates of the nodes\n");
     13        _printf0_("\n");
    1414}/*}}}*/
    1515WRAPPER(BamgTriangulate){
     
    3636
    3737        /*Input datasets: */
    38         if (verbose) _printf_("Fetching inputs" << "\n");
     38        if (verbose) _printf_("Fetching inputs\n");
    3939        FetchData(&x,&nods,&x_cols,XHANDLE);
    4040        FetchData(&y,&y_rows,&y_cols,YHANDLE);
     
    4646
    4747        /* Run core computations: */
    48         if (verbose) _printf_("Call core" << "\n");
     48        if (verbose) _printf_("Call core\n");
    4949        BamgTriangulatex(&index,&nels,x,y,nods);
    5050
  • TabularUnified issm/trunk-jpl/src/wrappers/Chaco/Chaco.cpp

    r15100 r15105  
    1212
    1313void ChacoUsage(void){/*{{{*/
    14         _printf0_("" << "\n");
    15         _printf0_("Usage: [assgn] = Chaco(A,vwgts,ewgts,x,y,z,options,nparts,goal);" << "\n");
    16         _printf0_("" << "\n");
     14        _printf0_("\n");
     15        _printf0_("Usage: [assgn] = Chaco(A,vwgts,ewgts,x,y,z,options,nparts,goal);\n");
     16        _printf0_("\n");
    1717}/*}}}*/
    1818WRAPPER(Chaco){
     
    8989        _printf_("options: [");
    9090        for(i=0;i<10;i++)_printf_(options[i] << "|");
    91         _printf_("]" << "\n");
    92         _printf_("start: " << "\n");
     91        _printf_("]\n");
     92        _printf_("start: \n");
    9393        for (i=0; i<nvtxs+1;i++)_printf_(start[i] << " ");
    94         _printf_("" << "\n");
    95         _printf_("adjacency: " << "\n");
     94        _printf_("\n");
     95        _printf_("adjacency: \n");
    9696        for (i=0; i<mxGetNzmax(A_IN);i++)_printf_("" <<adjacency[i]<< " ");i++)
    97         _printf_("" << "\n");
     97        _printf_("\n");
    9898        _printf_("nedges: " << nedges << " " << ewgts << "\n");
    9999        if(ewgts) for (i = 0; i < nedges; i++)_printf_(ewgts[i] << " ");
    100         _printf_("" << "\n");
    101         _printf_("vwgts:" << "\n");
     100        _printf_("\n");
     101        _printf_("vwgts:\n");
    102102        for (i = 0; i < nvtxs; i++)_printf_(vwgts[i] << " ");
    103         _printf_("" << "\n");
     103        _printf_("\n");
    104104        _printf_("nparts: " << nparts[0] << "\n");
    105105        _printf_("goal: " << goal << "\n");
  • TabularUnified issm/trunk-jpl/src/wrappers/ContourToMesh/ContourToMesh.cpp

    r15100 r15105  
    77
    88void ContourToMeshUsage(void){/*{{{*/
    9         _printf_("CONTOURTOMESH - Flag the elements or nodes inside a contour" << "\n");
    10         _printf_("" << "\n");
    11         _printf_("      Usage: " << "\n");
    12         _printf_("         [in_nod,in_elem]=ContourToMesh(index,x,y,contourname,interptype,edgevalue)" << "\n");
    13         _printf_("" << "\n");
    14         _printf_("         index,x,y: mesh triangulation." << "\n");
    15         _printf_("         contourname: name of .exp file containing the contours." << "\n");
    16         _printf_("         interptype: string definining type of interpolation ('element', or 'node')." << "\n");
    17         _printf_("         edgevalue: integer (0, 1 or 2) defining the value associated to the nodes on the edges of the polygons." << "\n");
    18         _printf_("         in_nod: vector of flags (0 or 1), of size nods if interptype is set to 'node' or 'element and node', " << "\n");
    19         _printf_("            or of size 0 otherwise." << "\n");
    20         _printf_("         in_elem: vector of flags (0 or 1), of size nel if interptype is set to 'element' or 'element and node', " << "\n");
    21         _printf_("            or of size 0 otherwise." << "\n");
    22         _printf_("" << "\n");
    23         _printf_("      Example: " << "\n");
    24         _printf_("         in_nod=ContourToMesh(md.elements,md.x,md.y,'Contour.exp','node',1)" << "\n");
    25         _printf_("         in_elements=ContourToMesh(md.elements,md.x,md.y,'Contour.exp','element',0)" << "\n");
    26         _printf_("         [in_nodes,in_elements]=ContourToMesh(md.elements,md.x,md.y,'Contour.exp','element and node',0)" << "\n");
    27         _printf_("" << "\n");
     9        _printf_("CONTOURTOMESH - Flag the elements or nodes inside a contour\n");
     10        _printf_("\n");
     11        _printf_("      Usage: \n");
     12        _printf_("         [in_nod,in_elem]=ContourToMesh(index,x,y,contourname,interptype,edgevalue)\n");
     13        _printf_("\n");
     14        _printf_("         index,x,y: mesh triangulation.\n");
     15        _printf_("         contourname: name of .exp file containing the contours.\n");
     16        _printf_("         interptype: string definining type of interpolation ('element', or 'node').\n");
     17        _printf_("         edgevalue: integer (0, 1 or 2) defining the value associated to the nodes on the edges of the polygons.\n");
     18        _printf_("         in_nod: vector of flags (0 or 1), of size nods if interptype is set to 'node' or 'element and node', \n");
     19        _printf_("            or of size 0 otherwise.\n");
     20        _printf_("         in_elem: vector of flags (0 or 1), of size nel if interptype is set to 'element' or 'element and node', \n");
     21        _printf_("            or of size 0 otherwise.\n");
     22        _printf_("\n");
     23        _printf_("      Example: \n");
     24        _printf_("         in_nod=ContourToMesh(md.elements,md.x,md.y,'Contour.exp','node',1)\n");
     25        _printf_("         in_elements=ContourToMesh(md.elements,md.x,md.y,'Contour.exp','element',0)\n");
     26        _printf_("         [in_nodes,in_elements]=ContourToMesh(md.elements,md.x,md.y,'Contour.exp','element and node',0)\n");
     27        _printf_("\n");
    2828}/*}}}*/
    2929WRAPPER(ContourToMesh){
  • TabularUnified issm/trunk-jpl/src/wrappers/ContourToNodes/ContourToNodes.cpp

    r15100 r15105  
    66
    77void ContourToNodesUsage(void){/*{{{*/
    8         _printf_("   usage:" << "\n");
    9         _printf_("   [flags]=ContourToNodes(x,y,contourname,edgevalue);" << "\n");
    10         _printf_("   where:" << "\n");
    11         _printf_("      x,y: list of nodes." << "\n");
    12         _printf_("      contourname: name of .exp file containing the contours, or resulting structure from call to expread." << "\n");
    13         _printf_("      edgevalue: integer (0, 1 or 2) defining the value associated to the nodes on the edges of the polygons." << "\n");
    14         _printf_("      flags: vector of flags (0 or 1), of size nods." << "\n");
    15         _printf_("" << "\n");
     8        _printf_("   usage:\n");
     9        _printf_("   [flags]=ContourToNodes(x,y,contourname,edgevalue);\n");
     10        _printf_("   where:\n");
     11        _printf_("      x,y: list of nodes.\n");
     12        _printf_("      contourname: name of .exp file containing the contours, or resulting structure from call to expread.\n");
     13        _printf_("      edgevalue: integer (0, 1 or 2) defining the value associated to the nodes on the edges of the polygons.\n");
     14        _printf_("      flags: vector of flags (0 or 1), of size nods.\n");
     15        _printf_("\n");
    1616}/*}}}*/
    1717WRAPPER(ContourToNodes){
  • TabularUnified issm/trunk-jpl/src/wrappers/EdgeDetection/EdgeDetection.cpp

    r15100 r15105  
    66
    77void EdgeDetectionUsage(void){/*{{{*/
    8         _printf0_("EDGEDETECTION usage- detect edges of a boolean image" << "\n");
    9         _printf0_("" << "\n");
    10         _printf0_("   Usage:" << "\n");
    11         _printf0_("      contours=EdgeDetection(image);" << "\n");
    12         _printf0_("" << "\n");
    13         _printf0_("      image: boolean matrix" << "\n");
    14         _printf0_("" << "\n");
    15         _printf0_("   Example:" << "\n");
    16         _printf0_("      load('velocities.mat');" << "\n");
    17         _printf0_("      md.inversion.vx_obs=EdgeDetection(x_n,y_m,vx,md.mesh.x,md.mesh.y,0);" << "\n");
    18         _printf0_("" << "\n");
     8        _printf0_("EDGEDETECTION usage- detect edges of a boolean image\n");
     9        _printf0_("\n");
     10        _printf0_("   Usage:\n");
     11        _printf0_("      contours=EdgeDetection(image);\n");
     12        _printf0_("\n");
     13        _printf0_("      image: boolean matrix\n");
     14        _printf0_("\n");
     15        _printf0_("   Example:\n");
     16        _printf0_("      load('velocities.mat');\n");
     17        _printf0_("      md.inversion.vx_obs=EdgeDetection(x_n,y_m,vx,md.mesh.x,md.mesh.y,0);\n");
     18        _printf0_("\n");
    1919}/*}}}*/
    2020WRAPPER(EdgeDetection){
  • TabularUnified issm/trunk-jpl/src/wrappers/ElementConnectivity/ElementConnectivity.cpp

    r15100 r15105  
    66
    77void ElementConnectivityUsage(void) {/*{{{*/
    8         _printf0_("" << "\n");
    9         _printf0_("   usage: elementconnectivity = " << __FUNCT__ << "(elements, nodeconnectivity);" << "\n");
    10         _printf0_("" << "\n");
     8        _printf0_("\n");
     9        _printf0_("   usage: elementconnectivity = " << __FUNCT__ << "(elements, nodeconnectivity);\n");
     10        _printf0_("\n");
    1111}/*}}}*/
    1212WRAPPER(ElementConnectivity){
  • TabularUnified issm/trunk-jpl/src/wrappers/EnumToString/EnumToString.cpp

    r15100 r15105  
    66
    77void EnumToStringUsage(void){/*{{{*/
    8         _printf0_("" << "\n");
    9         _printf0_("   usage: " << __FUNCT__ << "string = EnumToString(enum);" << "\n");
    10         _printf0_("" << "\n");
     8        _printf0_("\n");
     9        _printf0_("   usage: " << __FUNCT__ << "string = EnumToString(enum);\n");
     10        _printf0_("\n");
    1111}/*}}}*/
    1212WRAPPER(EnumToString){
  • TabularUnified issm/trunk-jpl/src/wrappers/Exp2Kml/Exp2Kml.cpp

    r15100 r15105  
    55
    66void Exp2KmlUsage(void){/*{{{*/
    7         _printf0_("Exp2Kml - exp to kml file conversion module:" << "\n");
    8         _printf0_("" << "\n");
    9         _printf0_("   This module converts a file from exp to kml format." << "\n");
    10         _printf0_("" << "\n");
    11         _printf0_("   Usage:" << "\n");
    12         _printf0_("      [ret]=Exp2Kml(filexp,filkml,sgn,'param name',param,...);" << "\n");
    13         _printf0_("" << "\n");
    14         _printf0_("      filexp      file name of exp file to be read (char)" << "\n");
    15         _printf0_("      filkml      file name of kml file to be written (char)" << "\n");
    16         _printf0_("      sgn         sign for hemisphere (double, +1 (north) or -1 (south))" << "\n");
    17         _printf0_("" << "\n");
    18         _printf0_("      central_meridian     central meridian (double, optional, but must specify with sp)" << "\n");
    19         _printf0_("      standard_parallel    standard parallel (double, optional, but must specify with cm)" << "\n");
    20         _printf0_("      holes       flag for treatment of multiple profiles (char, optional, 'yes' for holes))" << "\n");
    21         _printf0_("" << "\n");
    22         _printf0_("      ret         return code (non-zero for warning)" << "\n");
    23         _printf0_("" << "\n");
    24         _printf0_("   Examples:" << "\n");
    25         _printf0_("      [ret]=Exp2Kml('file.exp','file.kml', 1);" << "\n");
    26         _printf0_("      [ret]=Exp2Kml('file.exp','file.kml', 1,'central_meridian',45,'standard_parallel',70,'holes','yes');" << "\n");
    27         _printf0_("      [ret]=Exp2Kml('file.exp','file.kml',-1,'central_meridian', 0,'standard_parallel',71,'holes','yes');" << "\n");
    28         _printf0_("" << "\n");
     7        _printf0_("Exp2Kml - exp to kml file conversion module:\n");
     8        _printf0_("\n");
     9        _printf0_("   This module converts a file from exp to kml format.\n");
     10        _printf0_("\n");
     11        _printf0_("   Usage:\n");
     12        _printf0_("      [ret]=Exp2Kml(filexp,filkml,sgn,'param name',param,...);\n");
     13        _printf0_("\n");
     14        _printf0_("      filexp      file name of exp file to be read (char)\n");
     15        _printf0_("      filkml      file name of kml file to be written (char)\n");
     16        _printf0_("      sgn         sign for hemisphere (double, +1 (north) or -1 (south))\n");
     17        _printf0_("\n");
     18        _printf0_("      central_meridian     central meridian (double, optional, but must specify with sp)\n");
     19        _printf0_("      standard_parallel    standard parallel (double, optional, but must specify with cm)\n");
     20        _printf0_("      holes       flag for treatment of multiple profiles (char, optional, 'yes' for holes))\n");
     21        _printf0_("\n");
     22        _printf0_("      ret         return code (non-zero for warning)\n");
     23        _printf0_("\n");
     24        _printf0_("   Examples:\n");
     25        _printf0_("      [ret]=Exp2Kml('file.exp','file.kml', 1);\n");
     26        _printf0_("      [ret]=Exp2Kml('file.exp','file.kml', 1,'central_meridian',45,'standard_parallel',70,'holes','yes');\n");
     27        _printf0_("      [ret]=Exp2Kml('file.exp','file.kml',-1,'central_meridian', 0,'standard_parallel',71,'holes','yes');\n");
     28        _printf0_("\n");
    2929}/*}}}*/
    3030WRAPPER(Exp2Kml){
  • TabularUnified issm/trunk-jpl/src/wrappers/ExpSimplify/ExpSimplify.cpp

    r15100 r15105  
    55
    66void ExpSimplifyUsage(void){/*{{{*/
    7         _printf_("ExpSimplify - Simplify Exp contour" << "\n");
    8         _printf_("" << "\n");
    9         _printf_("   Recursive Douglas-Peucker Polygon Simplification" << "\n");
    10         _printf_("" << "\n");
    11         _printf_("   Usage:" << "\n");
    12         _printf_("      ExpSimplify(expfile,tol);" << "\n");
    13         _printf_("      - expfile: name of the exp file" << "\n");
    14         _printf_("      - tol:  tolerance (maximal euclidean distance allowed between the new line and a vertex)" << "\n");
    15         _printf_("      Additional options:" << "\n");
    16         _printf_("      - 'min': minimum number of vertices to save contours in exp file (default is 3)" << "\n");
    17         _printf_("" << "\n");
    18         _printf_("   Example:" << "\n");
    19         _printf_("      ExpSimplify('file.exp',100);" << "\n");
    20         _printf_("      ExpSimplify('file.exp',100,'remove1',false);" << "\n");
     7        _printf_("ExpSimplify - Simplify Exp contour\n");
     8        _printf_("\n");
     9        _printf_("   Recursive Douglas-Peucker Polygon Simplification\n");
     10        _printf_("\n");
     11        _printf_("   Usage:\n");
     12        _printf_("      ExpSimplify(expfile,tol);\n");
     13        _printf_("      - expfile: name of the exp file\n");
     14        _printf_("      - tol:  tolerance (maximal euclidean distance allowed between the new line and a vertex)\n");
     15        _printf_("      Additional options:\n");
     16        _printf_("      - 'min': minimum number of vertices to save contours in exp file (default is 3)\n");
     17        _printf_("\n");
     18        _printf_("   Example:\n");
     19        _printf_("      ExpSimplify('file.exp',100);\n");
     20        _printf_("      ExpSimplify('file.exp',100,'remove1',false);\n");
    2121}/*}}}*/
    2222void simplify(Contour<double>* contour,bool* flags,int ind0,int ind1,double tolerance){/*{{{*/
     
    202202                }
    203203                else{
    204                         _printf_("   Final   number of vertices in contour #"<<counter+1<<": "<<newnods<<" (not saved)" << "\n");
     204                        _printf_("   Final   number of vertices in contour #"<<counter+1<<": "<<newnods<<" (not saved)\n");
    205205                }
    206206
  • TabularUnified issm/trunk-jpl/src/wrappers/HoleFiller/HoleFiller.cpp

    r15100 r15105  
    1313
    1414void HoleFillerUsage(void){/*{{{*/
    15         _printf_("   HoleFiller usage:" << "\n");
    16         _printf_("   [image_out]=HoleFiller(image_in,smooth);" << "\n");
    17         _printf_("   where:" << "\n");
    18         _printf_("      image_in in double format" << "\n");
    19         _printf_("      smooth: 1 to smooth with a box filer, 0 to leave data raw" << "\n");
    20         _printf_("      image_out in double format" << "\n");
    21         _printf_("" << "\n");
     15        _printf_("   HoleFiller usage:\n");
     16        _printf_("   [image_out]=HoleFiller(image_in,smooth);\n");
     17        _printf_("   where:\n");
     18        _printf_("      image_in in double format\n");
     19        _printf_("      smooth: 1 to smooth with a box filer, 0 to leave data raw\n");
     20        _printf_("      image_out in double format\n");
     21        _printf_("\n");
    2222}/*}}}*/
    2323WRAPPER(HoleFiller){
  • TabularUnified issm/trunk-jpl/src/wrappers/InternalFront/InternalFront.cpp

    r15100 r15105  
    66
    77void InternalFrontUsage(void) {/*{{{*/
    8         _printf0_("" << "\n");
    9         _printf0_("   usage: icefront = " << __FUNCT__ << "(md);" << "\n");
    10         _printf0_("" << "\n");
     8        _printf0_("\n");
     9        _printf0_("   usage: icefront = " << __FUNCT__ << "(md);\n");
     10        _printf0_("\n");
    1111}/*}}}*/
    1212WRAPPER(InternalFront){
  • TabularUnified issm/trunk-jpl/src/wrappers/InterpFromGridToMesh/InterpFromGridToMesh.cpp

    r15100 r15105  
    66
    77void InterpFromGridToMeshUsage(void){/*{{{*/
    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");
     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");
    2626}/*}}}*/
    2727WRAPPER(InterpFromGridToMesh){
  • TabularUnified issm/trunk-jpl/src/wrappers/InterpFromMesh2d/InterpFromMesh2d.cpp

    r15100 r15105  
    66
    77void InterpFromMesh2dUsage(void){/*{{{*/
    8         _printf0_("   usage:" << "\n");
    9         _printf0_("         data_prime=InterpFromMesh2d(index,x,y,data,x_prime,y_prime);" << "\n");
    10         _printf0_("      or data_prime=InterpFromMesh2d(index,x,y,data,x_prime,y_prime,default_value);" << "\n");
    11         _printf0_("      or data_prime=InterpFromMesh2d(index,x,y,data,x_prime,y_prime,default_value,contourname);" << "\n");
    12         _printf0_("   where:" << "\n");
    13         _printf0_("      x,y: coordinates of the nodes where data is defined" << "\n");
    14         _printf0_("      index: index of the mesh where data is defined" << "\n");
    15         _printf0_("      data - vector holding the data to be interpolated onto the points." << "\n");
    16         _printf0_("      x_prime,y_prime: coordinates of the mesh vertices onto which we interpolate." << "\n");
    17         _printf0_("      default_value: a scalar or vector of size length(x_prime)." << "\n");
    18         _printf0_("      contourname: linear interpolation will happen on all x_interp,y_interp inside the contour, default value will be adopted on the rest of the mesh." << "\n");
    19         _printf0_("      data_prime:  vector of prime interpolated data." << "\n");
    20         _printf0_("" << "\n");
     8        _printf0_("   usage:\n");
     9        _printf0_("         data_prime=InterpFromMesh2d(index,x,y,data,x_prime,y_prime);\n");
     10        _printf0_("      or data_prime=InterpFromMesh2d(index,x,y,data,x_prime,y_prime,default_value);\n");
     11        _printf0_("      or data_prime=InterpFromMesh2d(index,x,y,data,x_prime,y_prime,default_value,contourname);\n");
     12        _printf0_("   where:\n");
     13        _printf0_("      x,y: coordinates of the nodes where data is defined\n");
     14        _printf0_("      index: index of the mesh where data is defined\n");
     15        _printf0_("      data - vector holding the data to be interpolated onto the points.\n");
     16        _printf0_("      x_prime,y_prime: coordinates of the mesh vertices onto which we interpolate.\n");
     17        _printf0_("      default_value: a scalar or vector of size length(x_prime).\n");
     18        _printf0_("      contourname: linear interpolation will happen on all x_interp,y_interp inside the contour, default value will be adopted on the rest of the mesh.\n");
     19        _printf0_("      data_prime:  vector of prime interpolated data.\n");
     20        _printf0_("\n");
    2121}/*}}}*/
    2222WRAPPER(InterpFromMesh2d){
     
    117117                  _printf_("   Number of vertices " << contouri->nods << "\n");
    118118                  for (j=0;j<contouri->nods;j++){
    119                   _printf_("   " << *(contouri->x+j) << "f " << *(contouri->y+j) << "f" << "\n");
     119                  _printf_("   " << *(contouri->x+j) << "f " << *(contouri->y+j) << "f\n");
    120120                  }
    121121                  }*/
  • TabularUnified issm/trunk-jpl/src/wrappers/InterpFromMeshToGrid/InterpFromMeshToGrid.cpp

    r15100 r15105  
    66
    77void InterpFromMeshToGridUsage(void){/*{{{*/
    8         _printf0_("INTERPFROMMESHTOGRID - interpolation of a data defined on a mesh onto a grid" << "\n");
    9         _printf0_("" << "\n");
    10         _printf0_("   This function is a multi-threaded mex file that interpolates a field" << "\n");
    11         _printf0_("   defined on a triangular mesh onto a regular grid" << "\n");
    12         _printf0_("" << "\n");
    13         _printf0_("   Usage:" << "\n");
    14         _printf0_("      [x_m,y_m,griddata]=InterpFromMeshToGrid(index,x,y,data,xmin,ymax,xposting,yposting,nlines,ncols,default_value)" << "\n");
    15         _printf0_("" << "\n");
    16         _printf0_("      index,x,y: delaunay triangulation defining the mesh." << "\n");
    17         _printf0_("      meshdata: vertex values of data to be interpolated." << "\n");
    18         _printf0_("      xmin,ymax,posting,nlines,ncols: parameters that define the grid" << "\n");
    19         _printf0_("      default_value: value of points located out of the mesh." << "\n");
    20         _printf0_("" << "\n");
     8        _printf0_("INTERPFROMMESHTOGRID - interpolation of a data defined on a mesh onto a grid\n");
     9        _printf0_("\n");
     10        _printf0_("   This function is a multi-threaded mex file that interpolates a field\n");
     11        _printf0_("   defined on a triangular mesh onto a regular grid\n");
     12        _printf0_("\n");
     13        _printf0_("   Usage:\n");
     14        _printf0_("      [x_m,y_m,griddata]=InterpFromMeshToGrid(index,x,y,data,xmin,ymax,xposting,yposting,nlines,ncols,default_value)\n");
     15        _printf0_("\n");
     16        _printf0_("      index,x,y: delaunay triangulation defining the mesh.\n");
     17        _printf0_("      meshdata: vertex values of data to be interpolated.\n");
     18        _printf0_("      xmin,ymax,posting,nlines,ncols: parameters that define the grid\n");
     19        _printf0_("      default_value: value of points located out of the mesh.\n");
     20        _printf0_("\n");
    2121}/*}}}*/
    2222WRAPPER(InterpFromMeshToGrid){
  • TabularUnified issm/trunk-jpl/src/wrappers/InterpFromMeshToMesh2d/InterpFromMeshToMesh2d.cpp

    r15100 r15105  
    55
    66void InterpFromMeshToMesh2dUsage(void){/*{{{*/
    7         _printf0_("INTERFROMMESHTOMESH2D - interpolation from a 2d triangular mesh onto a list of point" << "\n");
    8         _printf0_("" << "\n");
    9         _printf0_("   This function is a multi-threaded mex file that interpolates a field" << "\n");
    10         _printf0_("   defined on a Delaunay triangulation onto a list of point" << "\n");
    11         _printf0_("" << "\n");
    12         _printf0_("   Usage:" << "\n");
    13         _printf0_("         data_interp=InterpFromMeshToMesh2d(index,x,y,data,x_interp,y_interp);" << "\n");
    14         _printf0_("      or data_interp=InterpFromMeshToMesh2d(index,x,y,data,x_interp,y_interp,OPTIONS);" << "\n");
    15         _printf0_("" << "\n");
    16         _printf0_("      index             : index of the mesh where data is defined" << "\n");
    17         _printf0_("      x,y               : coordinates of the nodes where data is defined" << "\n");
    18         _printf0_("      data              : matrix holding the data to be interpolated onto the mesh. (one column per field)" << "\n");
    19         _printf0_("      x_interp,y_interp : coordinates of the points onto which we interpolate." << "\n");
    20         _printf0_("      data_interp       : vector of mesh interpolated data." << "\n");
    21         _printf0_("      Available options :" << "\n");
    22         _printf0_("         - 'default' : default value if point is outsite of triangulation (instead of linear interolation)" << "\n");
    23         _printf0_("" << "\n");
    24         _printf0_("   Example:" << "\n");
    25         _printf0_("      load('temperature.mat');" << "\n");
    26         _printf0_("      md.initialization.temperature=InterpFromMeshToMesh2d(index,x,y,temperature,md.mesh.x,md.mesh.y);" << "\n");
    27         _printf0_("      md.initialization.temperature=InterpFromMeshToMesh2d(index,x,y,temperature,md.mesh.x,md.mesh.y,'default',253);" << "\n");
    28         _printf0_("" << "\n");
     7        _printf0_("INTERFROMMESHTOMESH2D - interpolation from a 2d triangular mesh onto a list of point\n");
     8        _printf0_("\n");
     9        _printf0_("   This function is a multi-threaded mex file that interpolates a field\n");
     10        _printf0_("   defined on a Delaunay triangulation onto a list of point\n");
     11        _printf0_("\n");
     12        _printf0_("   Usage:\n");
     13        _printf0_("         data_interp=InterpFromMeshToMesh2d(index,x,y,data,x_interp,y_interp);\n");
     14        _printf0_("      or data_interp=InterpFromMeshToMesh2d(index,x,y,data,x_interp,y_interp,OPTIONS);\n");
     15        _printf0_("\n");
     16        _printf0_("      index             : index of the mesh where data is defined\n");
     17        _printf0_("      x,y               : coordinates of the nodes where data is defined\n");
     18        _printf0_("      data              : matrix holding the data to be interpolated onto the mesh. (one column per field)\n");
     19        _printf0_("      x_interp,y_interp : coordinates of the points onto which we interpolate.\n");
     20        _printf0_("      data_interp       : vector of mesh interpolated data.\n");
     21        _printf0_("      Available options :\n");
     22        _printf0_("         - 'default' : default value if point is outsite of triangulation (instead of linear interolation)\n");
     23        _printf0_("\n");
     24        _printf0_("   Example:\n");
     25        _printf0_("      load('temperature.mat');\n");
     26        _printf0_("      md.initialization.temperature=InterpFromMeshToMesh2d(index,x,y,temperature,md.mesh.x,md.mesh.y);\n");
     27        _printf0_("      md.initialization.temperature=InterpFromMeshToMesh2d(index,x,y,temperature,md.mesh.x,md.mesh.y,'default',253);\n");
     28        _printf0_("\n");
    2929}/*}}}*/
    3030WRAPPER(InterpFromMeshToMesh2d){
  • TabularUnified issm/trunk-jpl/src/wrappers/InterpFromMeshToMesh3d/InterpFromMeshToMesh3d.cpp

    r15100 r15105  
    66
    77void InterpFromMeshToMesh3dUsage(void){/*{{{*/
    8         _printf0_("INTERPFROMMESHTOMESH3D - interpolation from a 3d hexahedron mesh onto a list of point" << "\n");
    9         _printf0_("" << "\n");
    10         _printf0_("   This function is a multi-threaded mex file that interpolates a field" << "\n");
    11         _printf0_("   defined on a triangular mesh onto a list of point" << "\n");
    12         _printf0_("" << "\n");
    13         _printf0_("   Usage:" << "\n");
    14         _printf0_("      data_prime=InterpFromMeshToMesh3d(index,x,y,z,data,x_prime,y_prime,z_prime,default_value);" << "\n");
    15         _printf0_("" << "\n");
    16         _printf0_("      index: index of the mesh where data is defined" << "\n");
    17         _printf0_("      x,y,z: coordinates of the nodes where data is defined" << "\n");
    18         _printf0_("      data: matrix holding the data to be interpolated onto the mesh." << "\n");
    19         _printf0_("      x_prime,y_prime,z_prime: coordinates of the points onto which we interpolate." << "\n");
    20         _printf0_("      default_value: default value if no data is found (holes)." << "\n");
    21         _printf0_("      data_prime: vector of mesh interpolated data." << "\n");
    22         _printf0_("" << "\n");
    23         _printf0_("   Example:" << "\n");
    24         _printf0_("      load('temperature.mat');" << "\n");
    25         _printf0_("      md.initialization.temperature=InterpFromMeshToMesh3d(index,x,y,z,temperature,md.mesh.x,md.mesh.y,md.mesh.z,253);" << "\n");
    26         _printf0_("" << "\n");
     8        _printf0_("INTERPFROMMESHTOMESH3D - interpolation from a 3d hexahedron mesh onto a list of point\n");
     9        _printf0_("\n");
     10        _printf0_("   This function is a multi-threaded mex file that interpolates a field\n");
     11        _printf0_("   defined on a triangular mesh onto a list of point\n");
     12        _printf0_("\n");
     13        _printf0_("   Usage:\n");
     14        _printf0_("      data_prime=InterpFromMeshToMesh3d(index,x,y,z,data,x_prime,y_prime,z_prime,default_value);\n");
     15        _printf0_("\n");
     16        _printf0_("      index: index of the mesh where data is defined\n");
     17        _printf0_("      x,y,z: coordinates of the nodes where data is defined\n");
     18        _printf0_("      data: matrix holding the data to be interpolated onto the mesh.\n");
     19        _printf0_("      x_prime,y_prime,z_prime: coordinates of the points onto which we interpolate.\n");
     20        _printf0_("      default_value: default value if no data is found (holes).\n");
     21        _printf0_("      data_prime: vector of mesh interpolated data.\n");
     22        _printf0_("\n");
     23        _printf0_("   Example:\n");
     24        _printf0_("      load('temperature.mat');\n");
     25        _printf0_("      md.initialization.temperature=InterpFromMeshToMesh3d(index,x,y,z,temperature,md.mesh.x,md.mesh.y,md.mesh.z,253);\n");
     26        _printf0_("\n");
    2727}/*}}}*/
    2828WRAPPER(InterpFromMeshToMesh3d){
  • TabularUnified issm/trunk-jpl/src/wrappers/KMLFileRead/KMLFileRead.cpp

    r15100 r15105  
    55
    66void KMLFileReadUsage(void){/*{{{*/
    7         _printf0_("KMLFileRead - KML file reader module:" << "\n");
    8         _printf0_("" << "\n");
    9         _printf0_("   This module reads a KML file." << "\n");
    10         _printf0_("" << "\n");
    11         _printf0_("   Usage:" << "\n");
    12         _printf0_("      [ierror]=KMLFileRead(kmlfile,'param name',param,...);" << "\n");
    13         _printf0_("" << "\n");
    14         _printf0_("      kmlfile      file name of kml file to be read (char)" << "\n");
    15         _printf0_("" << "\n");
    16         _printf0_("      echo         echo command (char, optional, 'off'/'on')" << "\n");
    17         _printf0_("      deepecho     deep echo command (char, optional, 'off'/'on')" << "\n");
    18         _printf0_("      write        write command (char, optional, 'off'/'stdout'/kmlfile)" << "\n");
    19         _printf0_("" << "\n");
    20         _printf0_("      ierror       return code (non-zero for error)" << "\n");
    21         _printf0_("" << "\n");
    22         _printf0_("   Examples:" << "\n");
    23         _printf0_("      [ierror]=KMLFileRead('file.kml','deepecho','on');" << "\n");
    24         _printf0_("      [ierror]=KMLFileRead('filin.kml','echo','on','write','filout.kml');" << "\n");
    25         _printf0_("" << "\n");
     7        _printf0_("KMLFileRead - KML file reader module:\n");
     8        _printf0_("\n");
     9        _printf0_("   This module reads a KML file.\n");
     10        _printf0_("\n");
     11        _printf0_("   Usage:\n");
     12        _printf0_("      [ierror]=KMLFileRead(kmlfile,'param name',param,...);\n");
     13        _printf0_("\n");
     14        _printf0_("      kmlfile      file name of kml file to be read (char)\n");
     15        _printf0_("\n");
     16        _printf0_("      echo         echo command (char, optional, 'off'/'on')\n");
     17        _printf0_("      deepecho     deep echo command (char, optional, 'off'/'on')\n");
     18        _printf0_("      write        write command (char, optional, 'off'/'stdout'/kmlfile)\n");
     19        _printf0_("\n");
     20        _printf0_("      ierror       return code (non-zero for error)\n");
     21        _printf0_("\n");
     22        _printf0_("   Examples:\n");
     23        _printf0_("      [ierror]=KMLFileRead('file.kml','deepecho','on');\n");
     24        _printf0_("      [ierror]=KMLFileRead('filin.kml','echo','on','write','filout.kml');\n");
     25        _printf0_("\n");
    2626}/*}}}*/
    2727WRAPPER(KMLFileRead){
     
    8484        if (!strlen(filnam)) strcpy(filnam,"stdout");
    8585
    86         if (verbose) _printf_("Opening file \"" << filnam << "\"." << "\n");
     86        if (verbose) _printf_("Opening file \"" << filnam << "\".\n");
    8787        fidi=fopen(filnam,"r");
    8888
    8989        /* Run core computations: */
    90         if (verbose) _printf_("Calling core:" << "\n");
     90        if (verbose) _printf_("Calling core:\n");
    9191        kobj=KMLFileReadx(fidi);
    9292
    93         if (verbose) _printf_("Closing file \"" << filnam << "\"." << "\n");
     93        if (verbose) _printf_("Closing file \"" << filnam << "\".\n");
    9494        fclose(fidi);
    9595
     
    104104                        }
    105105                        else {
    106                                 if (verbose) _printf_("Opening file \"" << write << "\"." << "\n");
     106                                if (verbose) _printf_("Opening file \"" << write << "\".\n");
    107107                                fido=fopen(write,"w");
    108108                                kobj->Write(fido,"");
    109                                 if (verbose) _printf_("Closing file \"" << write << "\"." << "\n");
     109                                if (verbose) _printf_("Closing file \"" << write << "\".\n");
    110110                                ierror=fclose(fido);
    111111                        }
  • TabularUnified issm/trunk-jpl/src/wrappers/KMLMeshWrite/KMLMeshWrite.cpp

    r15100 r15105  
    55
    66void KMLMeshWriteUsage(void){/*{{{*/
    7         _printf0_("KMLMeshWrite - KML mesh writer module:" << "\n");
    8         _printf0_("" << "\n");
    9         _printf0_("   This module writes the mesh of a model as KML polygons into the specified KML file." << "\n");
    10         _printf0_("" << "\n");
    11         _printf0_("   Usage:" << "\n");
    12         _printf0_("      ierror=KMLMeshWrite(name,notes,elem,nodecon,lat,long,part,data,cmap,kmlfile);" << "\n");
    13         _printf0_("" << "\n");
    14         _printf0_("      name       model name (string, may be empty)" << "\n");
    15         _printf0_("      notes      model notes (string or cell array of strings, may be empty)" << "\n");
    16         _printf0_("      elem       elements (double array)" << "\n");
    17         _printf0_("      nodecon    nodal connectivity array (double array, may be empty)" << "\n");
    18         _printf0_("      lat        nodal latititudes (double vector)" << "\n");
    19         _printf0_("      long       nodal longitudes (double vector)" << "\n");
    20         _printf0_("      part       nodal partitions (double vector, may be empty)" << "\n");
    21         _printf0_("      data       nodal or element data (double vector, may be empty)" << "\n");
    22         _printf0_("      cmap       color map (double nx3 array, may be empty)" << "\n");
    23         _printf0_("      kmlfile    KML file name (string)" << "\n");
    24         _printf0_("" << "\n");
    25         _printf0_("      ierror     error flag (double, non-zero for error)" << "\n");
    26         _printf0_("" << "\n");
    27         _printf0_("   Example:" << "\n");
    28         _printf0_("      KMLMeshWrite(md.name,md.notes,md.elements,md.nodeconnectivity,md.lat,md.long,md.part,md.fm_criterion,options.cmap,filekml);" << "\n");
    29         _printf0_("" << "\n");
     7        _printf0_("KMLMeshWrite - KML mesh writer module:\n");
     8        _printf0_("\n");
     9        _printf0_("   This module writes the mesh of a model as KML polygons into the specified KML file.\n");
     10        _printf0_("\n");
     11        _printf0_("   Usage:\n");
     12        _printf0_("      ierror=KMLMeshWrite(name,notes,elem,nodecon,lat,long,part,data,cmap,kmlfile);\n");
     13        _printf0_("\n");
     14        _printf0_("      name       model name (string, may be empty)\n");
     15        _printf0_("      notes      model notes (string or cell array of strings, may be empty)\n");
     16        _printf0_("      elem       elements (double array)\n");
     17        _printf0_("      nodecon    nodal connectivity array (double array, may be empty)\n");
     18        _printf0_("      lat        nodal latititudes (double vector)\n");
     19        _printf0_("      long       nodal longitudes (double vector)\n");
     20        _printf0_("      part       nodal partitions (double vector, may be empty)\n");
     21        _printf0_("      data       nodal or element data (double vector, may be empty)\n");
     22        _printf0_("      cmap       color map (double nx3 array, may be empty)\n");
     23        _printf0_("      kmlfile    KML file name (string)\n");
     24        _printf0_("\n");
     25        _printf0_("      ierror     error flag (double, non-zero for error)\n");
     26        _printf0_("\n");
     27        _printf0_("   Example:\n");
     28        _printf0_("      KMLMeshWrite(md.name,md.notes,md.elements,md.nodeconnectivity,md.lat,md.long,md.part,md.fm_criterion,options.cmap,filekml);\n");
     29        _printf0_("\n");
    3030}/*}}}*/
    3131WRAPPER(KMLMeshWrite){
  • TabularUnified issm/trunk-jpl/src/wrappers/KMLOverlay/KMLOverlay.cpp

    r15100 r15105  
    55
    66void KMLOverlayUsage(void){/*{{{*/
    7         _printf0_("KMLOverlay - KML file overlay module:" << "\n");
    8         _printf0_("" << "\n");
    9         _printf0_("   This module reads a list of image files and writes a KML or KMZ overlay file." << "\n");
    10         _printf0_("" << "\n");
    11         _printf0_("   Usage:" << "\n");
    12         _printf0_("      ierror=KMLOverlay(kmlfile,'param name',param,...);" << "\n");
    13         _printf0_("" << "\n");
    14         _printf0_("      kmlfile     KML or KMZ file name (string)" << "\n");
    15         _printf0_("" << "\n");
    16         _printf0_("      lataxis     latitude axis (double vector [south north], required)" << "\n");
    17         _printf0_("      longaxis    longitude axis (double vector [west east], required)" << "\n");
    18         _printf0_("      images      relative or http image file names (string or array of strings or cell array of strings, required)" << "\n");
    19         _printf0_("      zip         flag to zip the doc.kml and image files into kmzfile (double, non-zero for kmz)" << "\n");
    20         _printf0_("" << "\n");
    21         _printf0_("      ierror     error flag (double, non-zero for error)" << "\n");
    22         _printf0_("" << "\n");
    23         _printf0_("   Example:" << "\n");
    24         _printf0_("      KMLOverlay(kmlfile,'lataxis',[south north],'longaxis',[west east],'images',{'file1.png','http://issm/file2.png'},'zip',1);" << "\n");
    25         _printf0_("" << "\n");
     7        _printf0_("KMLOverlay - KML file overlay module:\n");
     8        _printf0_("\n");
     9        _printf0_("   This module reads a list of image files and writes a KML or KMZ overlay file.\n");
     10        _printf0_("\n");
     11        _printf0_("   Usage:\n");
     12        _printf0_("      ierror=KMLOverlay(kmlfile,'param name',param,...);\n");
     13        _printf0_("\n");
     14        _printf0_("      kmlfile     KML or KMZ file name (string)\n");
     15        _printf0_("\n");
     16        _printf0_("      lataxis     latitude axis (double vector [south north], required)\n");
     17        _printf0_("      longaxis    longitude axis (double vector [west east], required)\n");
     18        _printf0_("      images      relative or http image file names (string or array of strings or cell array of strings, required)\n");
     19        _printf0_("      zip         flag to zip the doc.kml and image files into kmzfile (double, non-zero for kmz)\n");
     20        _printf0_("\n");
     21        _printf0_("      ierror     error flag (double, non-zero for error)\n");
     22        _printf0_("\n");
     23        _printf0_("   Example:\n");
     24        _printf0_("      KMLOverlay(kmlfile,'lataxis',[south north],'longaxis',[west east],'images',{'file1.png','http://issm/file2.png'},'zip',1);\n");
     25        _printf0_("\n");
    2626}/*}}}*/
    2727WRAPPER(KMLOverlay){
     
    6767        if (verbose && longaxis) for (i=0; i<nlong; i++) _printf_("  longaxis[" << i << "]=" << longaxis[i] << "\n");
    6868        options->Get(&pimages,&nimages,(char*)"images");
    69         if (verbose && pimages) for (i=0; i<nimages; i++) _printf_("  pimages[" << i << "]=\"" << pimages[i] << "\"" << "\n");
     69        if (verbose && pimages) for (i=0; i<nimages; i++) _printf_("  pimages[" << i << "]=\"" << pimages[i] << "\"\n");
    7070        options->Get(&dzip,(char*)"zip",0.);
    7171        if (verbose) _printf_("  dzip=" << dzip << "\n");
     
    8484        if(!strlen(filkml)) strcpy(filkml,"stdout");
    8585
    86         if(verbose) _printf_("Opening kml overlay file \"" << filkml << "\"." << "\n");
     86        if(verbose) _printf_("Opening kml overlay file \"" << filkml << "\".\n");
    8787        fid=fopen(filkml,"w");
    8888
    8989        /* Run core computations: */
    90         if (verbose) _printf_("Calling core:" << "\n");
     90        if (verbose) _printf_("Calling core:\n");
    9191        KMLOverlayx(&ierror,lataxis,longaxis,nimages,pimages,fid);
    9292
    93         if (verbose) _printf_("Closing file \"" << filkml << "\"." << "\n");
     93        if (verbose) _printf_("Closing file \"" << filkml << "\".\n");
    9494        fclose(fid);
    9595
     
    108108                                strcat(czip,pimages[i]);
    109109                        }
    110                 if (verbose) _printf_("Zipping file \"" << filkmz << "\"." << "\n");
     110                if (verbose) _printf_("Zipping file \"" << filkmz << "\".\n");
    111111                if (verbose) _printf_(czip << "\n");
    112112
  • TabularUnified issm/trunk-jpl/src/wrappers/Kml2Exp/Kml2Exp.cpp

    r15100 r15105  
    55
    66void Kml2ExpUsage(void){/*{{{*/
    7         _printf0_("Kml2Exp - kml to exp file conversion module:" << "\n");
    8         _printf0_("" << "\n");
    9         _printf0_("   This module converts a file from kml to exp format." << "\n");
    10         _printf0_("" << "\n");
    11         _printf0_("   Usage:" << "\n");
    12         _printf0_("      [ret]=Kml2Exp(filexp,filkml,sgn,'param name',param,...);" << "\n");
    13         _printf0_("" << "\n");
    14         _printf0_("      filkml      file name of kml file to be read (char)" << "\n");
    15         _printf0_("      filexp      file name of exp file to be written (char)" << "\n");
    16         _printf0_("      sgn         sign for hemisphere (double, +1 (north) or -1 (south))" << "\n");
    17         _printf0_("" << "\n");
    18         _printf0_("      central_meridian     central meridian (double, optional, but must specify with sp)" << "\n");
    19         _printf0_("      standard_parallel    standard parallel (double, optional, but must specify with cm)" << "\n");
    20         _printf0_("" << "\n");
    21         _printf0_("      ret         return code (non-zero for warning)" << "\n");
    22         _printf0_("" << "\n");
    23         _printf0_("   Examples:" << "\n");
    24         _printf0_("      [ret]=Kml2Exp('file.kml','file.exp', 1);" << "\n");
    25         _printf0_("      [ret]=Kml2Exp('file.kml','file.exp', 1,'central_meridian',45,'standard_parallel',70);" << "\n");
    26         _printf0_("      [ret]=Kml2Exp('file.kml','file.exp',-1,'central_meridian', 0,'standard_parallel',71);" << "\n");
    27         _printf0_("" << "\n");
     7        _printf0_("Kml2Exp - kml to exp file conversion module:\n");
     8        _printf0_("\n");
     9        _printf0_("   This module converts a file from kml to exp format.\n");
     10        _printf0_("\n");
     11        _printf0_("   Usage:\n");
     12        _printf0_("      [ret]=Kml2Exp(filexp,filkml,sgn,'param name',param,...);\n");
     13        _printf0_("\n");
     14        _printf0_("      filkml      file name of kml file to be read (char)\n");
     15        _printf0_("      filexp      file name of exp file to be written (char)\n");
     16        _printf0_("      sgn         sign for hemisphere (double, +1 (north) or -1 (south))\n");
     17        _printf0_("\n");
     18        _printf0_("      central_meridian     central meridian (double, optional, but must specify with sp)\n");
     19        _printf0_("      standard_parallel    standard parallel (double, optional, but must specify with cm)\n");
     20        _printf0_("\n");
     21        _printf0_("      ret         return code (non-zero for warning)\n");
     22        _printf0_("\n");
     23        _printf0_("   Examples:\n");
     24        _printf0_("      [ret]=Kml2Exp('file.kml','file.exp', 1);\n");
     25        _printf0_("      [ret]=Kml2Exp('file.kml','file.exp', 1,'central_meridian',45,'standard_parallel',70);\n");
     26        _printf0_("      [ret]=Kml2Exp('file.kml','file.exp',-1,'central_meridian', 0,'standard_parallel',71);\n");
     27        _printf0_("\n");
    2828}/*}}}*/
    2929WRAPPER(Kml2Exp){
  • TabularUnified issm/trunk-jpl/src/wrappers/Kriging/Kriging.cpp

    r15100 r15105  
    99        num=_NUMTHREADS_;
    1010#endif
    11         _printf0_("" << "\n");
    12         _printf0_("   usage: predictions=" << __FUNCT__ << "(x,y,observations,x_interp,y_interp,'options');" << "\n");
    13         _printf0_("   available options:" << "\n");
    14         _printf0_("      -'model': Available variogram models 'gaussian' (default),'spherical','power','exponential'" << "\n");
    15         _printf0_("         -'nugget': nugget effect (default 0.2)" << "\n");
    16         _printf0_("         -'range':  for gaussian, spherical and exponential models (default sqrt(3))" << "\n");
    17         _printf0_("         -'sill':   for gaussian, spherical and exponential models (default 1)" << "\n");
    18         _printf0_("         -'slope':  for power model (default 1)" << "\n");
    19         _printf0_("         -'power':  for power model (default 1)" << "\n");
    20         _printf0_("      -'searchradius': search radius for each prediction (default is observations span)" << "\n");
    21         _printf0_("      -'boxlength':    minimum length of quadtree boxes (useful to decrease the number of observations)" << "\n");
    22         _printf0_("      -'maxdata':      minimum number of observations for a prediction (default is 50)" << "\n");
    23         _printf0_("      -'mindata':      maximum number of observations for a prediction (default is 1)" << "\n");
    24         _printf0_("      -'maxtrimming':  maximum trimming value (default is -1.e+21)" << "\n");
    25         _printf0_("      -'mintrimming':  minimum trimming value (default is +1.e+21)" << "\n");
    26         _printf0_("      -'minspacing':   minimum distance between observation (default is 0.01)" << "\n");
     11        _printf0_("\n");
     12        _printf0_("   usage: predictions=" << __FUNCT__ << "(x,y,observations,x_interp,y_interp,'options');\n");
     13        _printf0_("   available options:\n");
     14        _printf0_("      -'model': Available variogram models 'gaussian' (default),'spherical','power','exponential'\n");
     15        _printf0_("         -'nugget': nugget effect (default 0.2)\n");
     16        _printf0_("         -'range':  for gaussian, spherical and exponential models (default sqrt(3))\n");
     17        _printf0_("         -'sill':   for gaussian, spherical and exponential models (default 1)\n");
     18        _printf0_("         -'slope':  for power model (default 1)\n");
     19        _printf0_("         -'power':  for power model (default 1)\n");
     20        _printf0_("      -'searchradius': search radius for each prediction (default is observations span)\n");
     21        _printf0_("      -'boxlength':    minimum length of quadtree boxes (useful to decrease the number of observations)\n");
     22        _printf0_("      -'maxdata':      minimum number of observations for a prediction (default is 50)\n");
     23        _printf0_("      -'mindata':      maximum number of observations for a prediction (default is 1)\n");
     24        _printf0_("      -'maxtrimming':  maximum trimming value (default is -1.e+21)\n");
     25        _printf0_("      -'mintrimming':  minimum trimming value (default is +1.e+21)\n");
     26        _printf0_("      -'minspacing':   minimum distance between observation (default is 0.01)\n");
    2727        _printf0_("      -'numthreads':   number of threads, default is "<<num << "\n");
    28         _printf0_("" << "\n");
     28        _printf0_("\n");
    2929}/*}}}*/
    3030WRAPPER(Kriging){
  • TabularUnified issm/trunk-jpl/src/wrappers/Ll2xy/Ll2xy.cpp

    r15100 r15105  
    55
    66void Ll2xyUsage(void){/*{{{*/
    7         _printf0_("Ll2xy - lat/long to x/y coordinate transformation module:" << "\n");
    8         _printf0_("" << "\n");
    9         _printf0_("   This module transforms lat/long to x/y coordinates." << "\n");
    10         _printf0_("" << "\n");
    11         _printf0_("   Usage:" << "\n");
    12         _printf0_("      [x,y]=Ll2xy(lat,lon,sgn,'param name',param,...);" << "\n");
    13         _printf0_("" << "\n");
    14         _printf0_("      lat         latitude coordinates (double vector)" << "\n");
    15         _printf0_("      lon         longitude coordinates (double vector)" << "\n");
    16         _printf0_("      sgn         sign for hemisphere (double, +1 (north) or -1 (south))" << "\n");
    17         _printf0_("" << "\n");
    18         _printf0_("      central_meridian     central meridian (double, optional, but must specify with sp)" << "\n");
    19         _printf0_("      standard_parallel    standard parallel (double, optional, but must specify with cm)" << "\n");
    20         _printf0_("" << "\n");
    21         _printf0_("      x           x coordinates (double vector)" << "\n");
    22         _printf0_("      y           y coordinates (double vector)" << "\n");
    23         _printf0_("" << "\n");
    24         _printf0_("   Examples:" << "\n");
    25         _printf0_("      [x,y]=Ll2xy(lat,lon, 1);" << "\n");
    26         _printf0_("      [x,y]=Ll2xy(lat,lon, 1,'central_meridian',45,'standard_parallel',70);" << "\n");
    27         _printf0_("      [x,y]=Ll2xy(lat,lon,-1,'central_meridian', 0,'standard_parallel',71);" << "\n");
    28         _printf0_("" << "\n");
     7        _printf0_("Ll2xy - lat/long to x/y coordinate transformation module:\n");
     8        _printf0_("\n");
     9        _printf0_("   This module transforms lat/long to x/y coordinates.\n");
     10        _printf0_("\n");
     11        _printf0_("   Usage:\n");
     12        _printf0_("      [x,y]=Ll2xy(lat,lon,sgn,'param name',param,...);\n");
     13        _printf0_("\n");
     14        _printf0_("      lat         latitude coordinates (double vector)\n");
     15        _printf0_("      lon         longitude coordinates (double vector)\n");
     16        _printf0_("      sgn         sign for hemisphere (double, +1 (north) or -1 (south))\n");
     17        _printf0_("\n");
     18        _printf0_("      central_meridian     central meridian (double, optional, but must specify with sp)\n");
     19        _printf0_("      standard_parallel    standard parallel (double, optional, but must specify with cm)\n");
     20        _printf0_("\n");
     21        _printf0_("      x           x coordinates (double vector)\n");
     22        _printf0_("      y           y coordinates (double vector)\n");
     23        _printf0_("\n");
     24        _printf0_("   Examples:\n");
     25        _printf0_("      [x,y]=Ll2xy(lat,lon, 1);\n");
     26        _printf0_("      [x,y]=Ll2xy(lat,lon, 1,'central_meridian',45,'standard_parallel',70);\n");
     27        _printf0_("      [x,y]=Ll2xy(lat,lon,-1,'central_meridian', 0,'standard_parallel',71);\n");
     28        _printf0_("\n");
    2929}/*}}}*/
    3030WRAPPER(Ll2xy){
     
    7070
    7171        /*some checks*/
    72         if (verbose) _printf_("Checking inputs:" << "\n");
     72        if (verbose) _printf_("Checking inputs:\n");
    7373        if (nlat != nlon){_error_("Must have same number of lat[" << nlat << "] and lon[" << nlon << "] coordinates.");}
    7474        else                ncoord=nlat;
  • TabularUnified issm/trunk-jpl/src/wrappers/MeshPartition/MeshPartition.cpp

    r15100 r15105  
    66
    77void MeshPartitionUsage(void){/*{{{*/
    8         _printf_("   usage:" << "\n");
     8        _printf_("   usage:\n");
    99        _printf_("   [element_partitioning,node_partitioning]=MeshPartition(md.mesh,numpartitions)");
    10         _printf_("   where:" << "\n");
    11         _printf_("      element_partitioning is a vector of partitioning area numbers, for every element." << "\n");
    12         _printf_("      node_partitioning is a vector of partitioning area numbers, for every node." << "\n");
    13         _printf_("" << "\n");
     10        _printf_("   where:\n");
     11        _printf_("      element_partitioning is a vector of partitioning area numbers, for every element.\n");
     12        _printf_("      node_partitioning is a vector of partitioning area numbers, for every node.\n");
     13        _printf_("\n");
    1414}/*}}}*/
    1515WRAPPER(MeshPartition){
  • TabularUnified issm/trunk-jpl/src/wrappers/MeshProfileIntersection/MeshProfileIntersection.cpp

    r15100 r15105  
    1919
    2020void MeshProfileIntersectionUsage(void){/*{{{*/
    21         _printf_("   usage:" << "\n");
    22         _printf_("   [segments]=MeshProfileIntersection(index,x,y,filename);" << "\n");
    23         _printf_("   where:" << "\n");
    24         _printf_("   input:" << "\n");
    25         _printf_("        index,x,y is a triangulation" << "\n");
    26         _printf_("        filename: name of Argus style .exp file containing the segments (can be groups of disconnected segments)" << "\n");
    27         _printf_("   output:" << "\n");
    28         _printf_("        segments: array made of x1,y1,x2,y2,element_id lines (x1,y1) and (x2,y2) are segment extremities for a segment " << "\n");
    29         _printf_("        belonging to the elemnt_id element. there are as many lines in segments as there are segments intersecting the " << "\n");
    30         _printf_("        mesh." << "\n");
     21        _printf_("   usage:\n");
     22        _printf_("   [segments]=MeshProfileIntersection(index,x,y,filename);\n");
     23        _printf_("   where:\n");
     24        _printf_("   input:\n");
     25        _printf_("        index,x,y is a triangulation\n");
     26        _printf_("        filename: name of Argus style .exp file containing the segments (can be groups of disconnected segments)\n");
     27        _printf_("   output:\n");
     28        _printf_("        segments: array made of x1,y1,x2,y2,element_id lines (x1,y1) and (x2,y2) are segment extremities for a segment \n");
     29        _printf_("        belonging to the elemnt_id element. there are as many lines in segments as there are segments intersecting the \n");
     30        _printf_("        mesh.\n");
    3131}/*}}}*/
    3232WRAPPER(MeshProfileIntersection){
  • TabularUnified issm/trunk-jpl/src/wrappers/NodeConnectivity/NodeConnectivity.cpp

    r15100 r15105  
    66
    77void NodeConnectivityUsage(void){/*{{{*/
    8         _printf0_("" << "\n");
    9         _printf0_("   usage: connectivity = " << __FUNCT__ << "(elements, numnodes);" << "\n");
    10         _printf0_("" << "\n");
     8        _printf0_("\n");
     9        _printf0_("   usage: connectivity = " << __FUNCT__ << "(elements, numnodes);\n");
     10        _printf0_("\n");
    1111}/*}}}*/
    1212WRAPPER(NodeConnectivity){
  • TabularUnified issm/trunk-jpl/src/wrappers/PointCloudFindNeighbors/PointCloudFindNeighbors.cpp

    r15100 r15105  
    66
    77void PointCloudFindNeighborsUsage(void){/*{{{*/
    8         _printf_("   usage:" << "\n");
    9         _printf_("   [flags]=PointCloudFindNeighbors(x,y,mindistance,multithread);" << "\n");
    10         _printf_("   where:" << "\n");
    11         _printf_("      x,y: list of points." << "\n");
    12         _printf_("      mindistance: minimum distance that should exist between points in the cloud." << "\n");
    13         _printf_("      multithread: run multithreaded or not. with multithreads, flags can get 1 and 2 values in duplicates." << "\n");
    14         _printf_("      flags: array of flags (flag==1 means point is within mindistance of another point)" << "\n");
    15         _printf_("" << "\n");
     8        _printf_("   usage:\n");
     9        _printf_("   [flags]=PointCloudFindNeighbors(x,y,mindistance,multithread);\n");
     10        _printf_("   where:\n");
     11        _printf_("      x,y: list of points.\n");
     12        _printf_("      mindistance: minimum distance that should exist between points in the cloud.\n");
     13        _printf_("      multithread: run multithreaded or not. with multithreads, flags can get 1 and 2 values in duplicates.\n");
     14        _printf_("      flags: array of flags (flag==1 means point is within mindistance of another point)\n");
     15        _printf_("\n");
    1616}/*}}}*/
    1717WRAPPER(PointCloudFindNeighbors){
  • TabularUnified issm/trunk-jpl/src/wrappers/PropagateFlagsFromConnectivity/PropagateFlagsFromConnectivity.cpp

    r15100 r15105  
    66
    77void PropagateFlagsFromConnectivityUsage(void) {/*{{{*/
    8         _printf_("" << "\n");
    9         _printf_("   usage: [pool] = " << __FUNCT__ << "(connectivity,pool,index,flags);" << "\n");;
    10         _printf_("" << "\n");
     8        _printf_("\n");
     9        _printf_("   usage: [pool] = " << __FUNCT__ << "(connectivity,pool,index,flags);\n");;
     10        _printf_("\n");
    1111}/*}}}*/
    1212WRAPPER(PropagateFlagsFromConnectivity){
  • TabularUnified issm/trunk-jpl/src/wrappers/Shp2Exp/Shp2Exp.cpp

    r15100 r15105  
    1212
    1313void Shp2ExpUsage(void){/*{{{*/
    14         _printf0_("Shp2Exp - shp to exp file conversion module:" << "\n");
    15         _printf0_("" << "\n");
    16         _printf0_("   This module converts a file from shp to exp format." << "\n");
    17         _printf0_("" << "\n");
    18         _printf0_("   Usage:" << "\n");
    19         _printf0_("      [ret]=Shp2Exp(filshp,filexp,sgn,'param name',param,...);" << "\n");
    20         _printf0_("" << "\n");
    21         _printf0_("      filshp      file name of shp file to be read (char, extension optional)" << "\n");
    22         _printf0_("      filexp      file name of exp file to be written (char)" << "\n");
    23         _printf0_("" << "\n");
    24         _printf0_("      ret         return code (non-zero for warning)" << "\n");
    25         _printf0_("" << "\n");
    26         _printf0_("   Examples:" << "\n");
    27         _printf0_("      [ret]=Shp2Exp('file.shp','file.exp');" << "\n");
    28         _printf0_("" << "\n");
     14        _printf0_("Shp2Exp - shp to exp file conversion module:\n");
     15        _printf0_("\n");
     16        _printf0_("   This module converts a file from shp to exp format.\n");
     17        _printf0_("\n");
     18        _printf0_("   Usage:\n");
     19        _printf0_("      [ret]=Shp2Exp(filshp,filexp,sgn,'param name',param,...);\n");
     20        _printf0_("\n");
     21        _printf0_("      filshp      file name of shp file to be read (char, extension optional)\n");
     22        _printf0_("      filexp      file name of exp file to be written (char)\n");
     23        _printf0_("\n");
     24        _printf0_("      ret         return code (non-zero for warning)\n");
     25        _printf0_("\n");
     26        _printf0_("   Examples:\n");
     27        _printf0_("      [ret]=Shp2Exp('file.shp','file.exp');\n");
     28        _printf0_("\n");
    2929}/*}}}*/
    3030WRAPPER(Shp2Exp){
  • TabularUnified issm/trunk-jpl/src/wrappers/Shp2Kml/Shp2Kml.cpp

    r15100 r15105  
    1212
    1313void Shp2KmlUsage(void){/*{{{*/
    14         _printf0_("Shp2Kml - shp to kml file conversion module:" << "\n");
    15         _printf0_("" << "\n");
    16         _printf0_("   This module converts a file from shp to kml format." << "\n");
    17         _printf0_("" << "\n");
    18         _printf0_("   Usage:" << "\n");
    19         _printf0_("      [ret]=Shp2Kml(filshp,filkml,sgn,'param name',param,...);" << "\n");
    20         _printf0_("" << "\n");
    21         _printf0_("      filshp      file name of shp file to be read (char, extension optional)" << "\n");
    22         _printf0_("      filkml      file name of kml file to be written (char)" << "\n");
    23         _printf0_("      sgn         sign for hemisphere (double, +1 (north) -1 (south) or 0 (no translation))" << "\n");
    24         _printf0_("" << "\n");
    25         _printf0_("      central_meridian     central meridian (double, optional, but must specify with sp)" << "\n");
    26         _printf0_("      standard_parallel    standard parallel (double, optional, but must specify with cm)" << "\n");
    27         _printf0_("" << "\n");
    28         _printf0_("      ret         return code (non-zero for warning)" << "\n");
    29         _printf0_("" << "\n");
    30         _printf0_("   Examples:" << "\n");
    31         _printf0_("      [ret]=Shp2Kml('file.shp','file.kml', 0);" << "\n");
    32         _printf0_("      [ret]=Shp2Kml('file.shp','file.kml', 1,'central_meridian',45,'standard_parallel',70);" << "\n");
    33         _printf0_("      [ret]=Shp2Kml('file.shp','file.kml',-1,'central_meridian', 0,'standard_parallel',71);" << "\n");
    34         _printf0_("" << "\n");
     14        _printf0_("Shp2Kml - shp to kml file conversion module:\n");
     15        _printf0_("\n");
     16        _printf0_("   This module converts a file from shp to kml format.\n");
     17        _printf0_("\n");
     18        _printf0_("   Usage:\n");
     19        _printf0_("      [ret]=Shp2Kml(filshp,filkml,sgn,'param name',param,...);\n");
     20        _printf0_("\n");
     21        _printf0_("      filshp      file name of shp file to be read (char, extension optional)\n");
     22        _printf0_("      filkml      file name of kml file to be written (char)\n");
     23        _printf0_("      sgn         sign for hemisphere (double, +1 (north) -1 (south) or 0 (no translation))\n");
     24        _printf0_("\n");
     25        _printf0_("      central_meridian     central meridian (double, optional, but must specify with sp)\n");
     26        _printf0_("      standard_parallel    standard parallel (double, optional, but must specify with cm)\n");
     27        _printf0_("\n");
     28        _printf0_("      ret         return code (non-zero for warning)\n");
     29        _printf0_("\n");
     30        _printf0_("   Examples:\n");
     31        _printf0_("      [ret]=Shp2Kml('file.shp','file.kml', 0);\n");
     32        _printf0_("      [ret]=Shp2Kml('file.shp','file.kml', 1,'central_meridian',45,'standard_parallel',70);\n");
     33        _printf0_("      [ret]=Shp2Kml('file.shp','file.kml',-1,'central_meridian', 0,'standard_parallel',71);\n");
     34        _printf0_("\n");
    3535}/*}}}*/
    3636WRAPPER(Shp2Kml){
  • TabularUnified issm/trunk-jpl/src/wrappers/StringToEnum/StringToEnum.cpp

    r15100 r15105  
    66
    77void StringToEnumUsage(void){/*{{{*/
    8         _printf0_("" << "\n");
    9         _printf0_("   usage: " << __FUNCT__ << "enum = StringToEnum(string);" << "\n");
    10         _printf0_("" << "\n");
     8        _printf0_("\n");
     9        _printf0_("   usage: " << __FUNCT__ << "enum = StringToEnum(string);\n");
     10        _printf0_("\n");
    1111}/*}}}*/
    1212WRAPPER(StringToEnum){
  • TabularUnified issm/trunk-jpl/src/wrappers/TriMesh/TriMesh.cpp

    r15100 r15105  
    66
    77void TriMeshUsage(void){/*{{{*/
    8         _printf_("" << "\n");
    9         _printf_("   usage: [index,x,y,segments,segmentmarkers]=TriMesh(domainoutlinefilename,rifts,area) " << "\n");
    10         _printf_("      where: index,x,y defines a triangulation, segments is an array made " << "\n");
    11         _printf_("      of exterior segments to the mesh domain outline, segmentmarkers is an array flagging each segment, " << "\n");
    12         _printf_("      outlinefilename an Argus domain outline file, " << "\n");
    13         _printf_("      area is the maximum area desired for any element of the resulting mesh, " << "\n");
    14         _printf_("" << "\n");
     8        _printf_("\n");
     9        _printf_("   usage: [index,x,y,segments,segmentmarkers]=TriMesh(domainoutlinefilename,rifts,area) \n");
     10        _printf_("      where: index,x,y defines a triangulation, segments is an array made \n");
     11        _printf_("      of exterior segments to the mesh domain outline, segmentmarkers is an array flagging each segment, \n");
     12        _printf_("      outlinefilename an Argus domain outline file, \n");
     13        _printf_("      area is the maximum area desired for any element of the resulting mesh, \n");
     14        _printf_("\n");
    1515}/*}}}*/
    1616WRAPPER(TriMesh){
  • TabularUnified issm/trunk-jpl/src/wrappers/TriMeshProcessRifts/TriMeshProcessRifts.cpp

    r15100 r15105  
    66
    77void TriMeshProcessRiftsUsage(void){/*{{{*/
    8         _printf_("" << "\n");
    9         _printf_("   usage: [index2,x2,y2,segments2,segmentmarkers2,rifts2]=TriMeshProcessrifts(index1,x1,y1,segments1,segmentmarkers1) " << "\n");
    10         _printf_("      where: (index1,x1,y1,segments1,segmentmarkers1) is an initial triangulation." << "\n");
    11         _printf_("      index2,x2,y2,segments2,segmentmarkers2,rifts2 is the resulting triangulation where rifts have been processed." << "\n");
     8        _printf_("\n");
     9        _printf_("   usage: [index2,x2,y2,segments2,segmentmarkers2,rifts2]=TriMeshProcessrifts(index1,x1,y1,segments1,segmentmarkers1) \n");
     10        _printf_("      where: (index1,x1,y1,segments1,segmentmarkers1) is an initial triangulation.\n");
     11        _printf_("      index2,x2,y2,segments2,segmentmarkers2,rifts2 is the resulting triangulation where rifts have been processed.\n");
    1212}/*}}}*/
    1313WRAPPER(TriMeshProcessRifts){
  • TabularUnified issm/trunk-jpl/src/wrappers/TriaSearch/TriaSearch.cpp

    r15100 r15105  
    55
    66void TriaSearchUsage(void){/*{{{*/
    7         _printf0_("TriaSearch- find triangle holding a point (x0,y0) in a mesh" << "\n");
    8         _printf0_("" << "\n");
    9         _printf0_("   Usage:" << "\n");
    10         _printf0_("         tria=TriaSearch(index,x,y,x0,y0);" << "\n");
    11         _printf0_("      index,x,y: mesh triangulatrion" << "\n");
    12         _printf0_("      x0,y0: coordinates of the point for which we are trying to find a triangle" << "\n");
    13         _printf0_("      x0,y0 can be an array of points" << "\n");
    14         _printf0_("" << "\n");
     7        _printf0_("TriaSearch- find triangle holding a point (x0,y0) in a mesh\n");
     8        _printf0_("\n");
     9        _printf0_("   Usage:\n");
     10        _printf0_("         tria=TriaSearch(index,x,y,x0,y0);\n");
     11        _printf0_("      index,x,y: mesh triangulatrion\n");
     12        _printf0_("      x0,y0: coordinates of the point for which we are trying to find a triangle\n");
     13        _printf0_("      x0,y0 can be an array of points\n");
     14        _printf0_("\n");
    1515}/*}}}*/
    1616WRAPPER(TriaSearch){
  • TabularUnified issm/trunk-jpl/src/wrappers/Xy2ll/Xy2ll.cpp

    r15100 r15105  
    55
    66void Xy2llUsage(void){/*{{{*/
    7         _printf0_("Xy2ll - x/y to lat/long coordinate transformation module:" << "\n");
    8         _printf0_("" << "\n");
    9         _printf0_("   This module transforms x/y to lat/long coordinates." << "\n");
    10         _printf0_("" << "\n");
    11         _printf0_("   Usage:" << "\n");
    12         _printf0_("      [lat,lon]=Xy2ll(x,y,sgn,'param name',param,...);" << "\n");
    13         _printf0_("" << "\n");
    14         _printf0_("      x           x coordinates (double vector)" << "\n");
    15         _printf0_("      y           y coordinates (double vector)" << "\n");
    16         _printf0_("      sgn         sign for hemisphere (double, +1 (north) or -1 (south))" << "\n");
    17         _printf0_("" << "\n");
    18         _printf0_("      central_meridian     central meridian (double, optional, but must specify with sp)" << "\n");
    19         _printf0_("      standard_parallel    standard parallel (double, optional, but must specify with cm)" << "\n");
    20         _printf0_("" << "\n");
    21         _printf0_("      lat         latitude coordinates (double vector)" << "\n");
    22         _printf0_("      lon         longitude coordinates (double vector)" << "\n");
    23         _printf0_("" << "\n");
    24         _printf0_("   Examples:" << "\n");
    25         _printf0_("      [lat,lon]=Xy2ll(x,y, 1);" << "\n");
    26         _printf0_("      [lat,lon]=Xy2ll(x,y, 1,'central_meridian',45,'standard_parallel',70);" << "\n");
    27         _printf0_("      [lat,lon]=Xy2ll(x,y,-1,'central_meridian', 0,'standard_parallel',71);" << "\n");
    28         _printf0_("" << "\n");
     7        _printf0_("Xy2ll - x/y to lat/long coordinate transformation module:\n");
     8        _printf0_("\n");
     9        _printf0_("   This module transforms x/y to lat/long coordinates.\n");
     10        _printf0_("\n");
     11        _printf0_("   Usage:\n");
     12        _printf0_("      [lat,lon]=Xy2ll(x,y,sgn,'param name',param,...);\n");
     13        _printf0_("\n");
     14        _printf0_("      x           x coordinates (double vector)\n");
     15        _printf0_("      y           y coordinates (double vector)\n");
     16        _printf0_("      sgn         sign for hemisphere (double, +1 (north) or -1 (south))\n");
     17        _printf0_("\n");
     18        _printf0_("      central_meridian     central meridian (double, optional, but must specify with sp)\n");
     19        _printf0_("      standard_parallel    standard parallel (double, optional, but must specify with cm)\n");
     20        _printf0_("\n");
     21        _printf0_("      lat         latitude coordinates (double vector)\n");
     22        _printf0_("      lon         longitude coordinates (double vector)\n");
     23        _printf0_("\n");
     24        _printf0_("   Examples:\n");
     25        _printf0_("      [lat,lon]=Xy2ll(x,y, 1);\n");
     26        _printf0_("      [lat,lon]=Xy2ll(x,y, 1,'central_meridian',45,'standard_parallel',70);\n");
     27        _printf0_("      [lat,lon]=Xy2ll(x,y,-1,'central_meridian', 0,'standard_parallel',71);\n");
     28        _printf0_("\n");
    2929}/*}}}*/
    3030WRAPPER(Xy2ll){
     
    7979
    8080        /* Run core computations: */
    81         if (verbose) _printf_("Calling core:" << "\n");
     81        if (verbose) _printf_("Calling core:\n");
    8282        if (options->GetOption("central_meridian") && options->GetOption("standard_parallel"))
    8383                iret=Xy2llx(lat,lon,x,y,ncoord,sgn,cm,sp);
  • TabularUnified issm/trunk-jpl/src/wrappers/matlab/io/FetchMatlabData.cpp

    r15100 r15105  
    3838                else{
    3939                        if(!mxIsClass(dataref,"double") && !mxIsClass(dataref,"single")){
    40                                 _printf_("Warning: converting matlab data from '" << mxGetClassName(dataref) << "' to 'double'" << "\n");
     40                                _printf_("Warning: converting matlab data from '" << mxGetClassName(dataref) << "' to 'double'\n");
    4141                        }
    4242                        /*Convert matlab matrix to double* matrix: */
     
    8585                else{
    8686                        if(!mxIsClass(dataref,"double") && !mxIsClass(dataref,"single")){
    87                                 _printf_("Warning: converting matlab data from '" << mxGetClassName(dataref) << "' to 'double'" << "\n");
     87                                _printf_("Warning: converting matlab data from '" << mxGetClassName(dataref) << "' to 'double'\n");
    8888                        }
    8989                        /*Convert matlab n-dim array to double* matrix: */
     
    132132                else{
    133133                        if(!mxIsClass(dataref,"double") && !mxIsClass(dataref,"single")){
    134                                 _printf_("Warning: converting matlab data from '" << mxGetClassName(dataref) << "' to 'double'" << "\n");
     134                                _printf_("Warning: converting matlab data from '" << mxGetClassName(dataref) << "' to 'double'\n");
    135135                        }
    136136                        /*Convert matlab matrix to double* matrix: */
  • TabularUnified issm/trunk-jpl/src/wrappers/matlab/io/OptionParse.cpp

    r15100 r15105  
    190190         option=(Option*)OptionCellParse(name,prhs);
    191191        else {
    192                 _printf0_("  Converting value of option \"" << name << "\" from unrecognized class \"" << mxGetClassName(prhs[0]) << "\" to class \"" << "struct" << "\"." << "\n");
     192                _printf0_("  Converting value of option \"" << name << "\" from unrecognized class \"" << mxGetClassName(prhs[0]) << "\" to class \"" << "struct" << "\".\n");
    193193                if (!mexCallMATLAB(1,lhs,1,(mxArray**)prhs,"struct")) {
    194194                        option=(Option*)OptionStructParse(name,(const mxArray**)lhs);
  • TabularUnified issm/trunk-jpl/src/wrappers/python/io/FetchPythonData.cpp

    r15100 r15105  
    728728                if(i+1 == nrhs) _error_("Argument " << i+2 << " must exist and be value of option \"" << name << "\".");
    729729
    730                 _printf0_("FetchData for Options not implemented yet, ignoring option \"" << name << "\"!" << "\n");
     730                _printf0_("FetchData for Options not implemented yet, ignoring option \"" << name << "\"!\n");
    731731
    732732//              option=(Option*)OptionParse(name,&PyTuple_GetItem(py_tuple,(Py_ssize_t)(i+1)));
Note: See TracChangeset for help on using the changeset viewer.