Changeset 15105
- Timestamp:
- 05/24/13 19:12:27 (12 years ago)
- Location:
- issm/trunk-jpl/src/wrappers
- Files:
-
- 40 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified issm/trunk-jpl/src/wrappers/AverageFilter/AverageFilter.cpp ¶
r15100 r15105 13 13 14 14 void 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"); 22 22 }/*}}}*/ 23 23 WRAPPER(AverageFilter){ -
TabularUnified issm/trunk-jpl/src/wrappers/BamgConvertMesh/BamgConvertMesh.cpp ¶
r15100 r15105 6 6 void BamgConvertMeshUsage(void){/*{{{*/ 7 7 _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"); 14 14 }/*}}}*/ 15 15 WRAPPER(BamgConvertMesh){ -
TabularUnified issm/trunk-jpl/src/wrappers/BamgMesher/BamgMesher.cpp ¶
r15100 r15105 5 5 6 6 void 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"); 10 10 }/*}}}*/ 11 11 WRAPPER(BamgMesher){ -
TabularUnified issm/trunk-jpl/src/wrappers/BamgTriangulate/BamgTriangulate.cpp ¶
r15100 r15105 6 6 void BamgTriangulateUsage(void){/*{{{*/ 7 7 _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"); 14 14 }/*}}}*/ 15 15 WRAPPER(BamgTriangulate){ … … 36 36 37 37 /*Input datasets: */ 38 if (verbose) _printf_("Fetching inputs " << "\n");38 if (verbose) _printf_("Fetching inputs\n"); 39 39 FetchData(&x,&nods,&x_cols,XHANDLE); 40 40 FetchData(&y,&y_rows,&y_cols,YHANDLE); … … 46 46 47 47 /* Run core computations: */ 48 if (verbose) _printf_("Call core " << "\n");48 if (verbose) _printf_("Call core\n"); 49 49 BamgTriangulatex(&index,&nels,x,y,nods); 50 50 -
TabularUnified issm/trunk-jpl/src/wrappers/Chaco/Chaco.cpp ¶
r15100 r15105 12 12 13 13 void 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"); 17 17 }/*}}}*/ 18 18 WRAPPER(Chaco){ … … 89 89 _printf_("options: ["); 90 90 for(i=0;i<10;i++)_printf_(options[i] << "|"); 91 _printf_("] " << "\n");92 _printf_("start: " << "\n");91 _printf_("]\n"); 92 _printf_("start: \n"); 93 93 for (i=0; i<nvtxs+1;i++)_printf_(start[i] << " "); 94 _printf_(" " << "\n");95 _printf_("adjacency: " << "\n");94 _printf_("\n"); 95 _printf_("adjacency: \n"); 96 96 for (i=0; i<mxGetNzmax(A_IN);i++)_printf_("" <<adjacency[i]<< " ");i++) 97 _printf_(" " << "\n");97 _printf_("\n"); 98 98 _printf_("nedges: " << nedges << " " << ewgts << "\n"); 99 99 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"); 102 102 for (i = 0; i < nvtxs; i++)_printf_(vwgts[i] << " "); 103 _printf_(" " << "\n");103 _printf_("\n"); 104 104 _printf_("nparts: " << nparts[0] << "\n"); 105 105 _printf_("goal: " << goal << "\n"); -
TabularUnified issm/trunk-jpl/src/wrappers/ContourToMesh/ContourToMesh.cpp ¶
r15100 r15105 7 7 8 8 void 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"); 28 28 }/*}}}*/ 29 29 WRAPPER(ContourToMesh){ -
TabularUnified issm/trunk-jpl/src/wrappers/ContourToNodes/ContourToNodes.cpp ¶
r15100 r15105 6 6 7 7 void 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"); 16 16 }/*}}}*/ 17 17 WRAPPER(ContourToNodes){ -
TabularUnified issm/trunk-jpl/src/wrappers/EdgeDetection/EdgeDetection.cpp ¶
r15100 r15105 6 6 7 7 void 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"); 19 19 }/*}}}*/ 20 20 WRAPPER(EdgeDetection){ -
TabularUnified issm/trunk-jpl/src/wrappers/ElementConnectivity/ElementConnectivity.cpp ¶
r15100 r15105 6 6 7 7 void 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"); 11 11 }/*}}}*/ 12 12 WRAPPER(ElementConnectivity){ -
TabularUnified issm/trunk-jpl/src/wrappers/EnumToString/EnumToString.cpp ¶
r15100 r15105 6 6 7 7 void 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"); 11 11 }/*}}}*/ 12 12 WRAPPER(EnumToString){ -
TabularUnified issm/trunk-jpl/src/wrappers/Exp2Kml/Exp2Kml.cpp ¶
r15100 r15105 5 5 6 6 void 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"); 29 29 }/*}}}*/ 30 30 WRAPPER(Exp2Kml){ -
TabularUnified issm/trunk-jpl/src/wrappers/ExpSimplify/ExpSimplify.cpp ¶
r15100 r15105 5 5 6 6 void 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"); 21 21 }/*}}}*/ 22 22 void simplify(Contour<double>* contour,bool* flags,int ind0,int ind1,double tolerance){/*{{{*/ … … 202 202 } 203 203 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"); 205 205 } 206 206 -
TabularUnified issm/trunk-jpl/src/wrappers/HoleFiller/HoleFiller.cpp ¶
r15100 r15105 13 13 14 14 void 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"); 22 22 }/*}}}*/ 23 23 WRAPPER(HoleFiller){ -
TabularUnified issm/trunk-jpl/src/wrappers/InternalFront/InternalFront.cpp ¶
r15100 r15105 6 6 7 7 void 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"); 11 11 }/*}}}*/ 12 12 WRAPPER(InternalFront){ -
TabularUnified issm/trunk-jpl/src/wrappers/InterpFromGridToMesh/InterpFromGridToMesh.cpp ¶
r15100 r15105 6 6 7 7 void 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"); 26 26 }/*}}}*/ 27 27 WRAPPER(InterpFromGridToMesh){ -
TabularUnified issm/trunk-jpl/src/wrappers/InterpFromMesh2d/InterpFromMesh2d.cpp ¶
r15100 r15105 6 6 7 7 void 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"); 21 21 }/*}}}*/ 22 22 WRAPPER(InterpFromMesh2d){ … … 117 117 _printf_(" Number of vertices " << contouri->nods << "\n"); 118 118 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"); 120 120 } 121 121 }*/ -
TabularUnified issm/trunk-jpl/src/wrappers/InterpFromMeshToGrid/InterpFromMeshToGrid.cpp ¶
r15100 r15105 6 6 7 7 void 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"); 21 21 }/*}}}*/ 22 22 WRAPPER(InterpFromMeshToGrid){ -
TabularUnified issm/trunk-jpl/src/wrappers/InterpFromMeshToMesh2d/InterpFromMeshToMesh2d.cpp ¶
r15100 r15105 5 5 6 6 void 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"); 29 29 }/*}}}*/ 30 30 WRAPPER(InterpFromMeshToMesh2d){ -
TabularUnified issm/trunk-jpl/src/wrappers/InterpFromMeshToMesh3d/InterpFromMeshToMesh3d.cpp ¶
r15100 r15105 6 6 7 7 void 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"); 27 27 }/*}}}*/ 28 28 WRAPPER(InterpFromMeshToMesh3d){ -
TabularUnified issm/trunk-jpl/src/wrappers/KMLFileRead/KMLFileRead.cpp ¶
r15100 r15105 5 5 6 6 void 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"); 26 26 }/*}}}*/ 27 27 WRAPPER(KMLFileRead){ … … 84 84 if (!strlen(filnam)) strcpy(filnam,"stdout"); 85 85 86 if (verbose) _printf_("Opening file \"" << filnam << "\". " << "\n");86 if (verbose) _printf_("Opening file \"" << filnam << "\".\n"); 87 87 fidi=fopen(filnam,"r"); 88 88 89 89 /* Run core computations: */ 90 if (verbose) _printf_("Calling core: " << "\n");90 if (verbose) _printf_("Calling core:\n"); 91 91 kobj=KMLFileReadx(fidi); 92 92 93 if (verbose) _printf_("Closing file \"" << filnam << "\". " << "\n");93 if (verbose) _printf_("Closing file \"" << filnam << "\".\n"); 94 94 fclose(fidi); 95 95 … … 104 104 } 105 105 else { 106 if (verbose) _printf_("Opening file \"" << write << "\". " << "\n");106 if (verbose) _printf_("Opening file \"" << write << "\".\n"); 107 107 fido=fopen(write,"w"); 108 108 kobj->Write(fido,""); 109 if (verbose) _printf_("Closing file \"" << write << "\". " << "\n");109 if (verbose) _printf_("Closing file \"" << write << "\".\n"); 110 110 ierror=fclose(fido); 111 111 } -
TabularUnified issm/trunk-jpl/src/wrappers/KMLMeshWrite/KMLMeshWrite.cpp ¶
r15100 r15105 5 5 6 6 void 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"); 30 30 }/*}}}*/ 31 31 WRAPPER(KMLMeshWrite){ -
TabularUnified issm/trunk-jpl/src/wrappers/KMLOverlay/KMLOverlay.cpp ¶
r15100 r15105 5 5 6 6 void 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"); 26 26 }/*}}}*/ 27 27 WRAPPER(KMLOverlay){ … … 67 67 if (verbose && longaxis) for (i=0; i<nlong; i++) _printf_(" longaxis[" << i << "]=" << longaxis[i] << "\n"); 68 68 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"); 70 70 options->Get(&dzip,(char*)"zip",0.); 71 71 if (verbose) _printf_(" dzip=" << dzip << "\n"); … … 84 84 if(!strlen(filkml)) strcpy(filkml,"stdout"); 85 85 86 if(verbose) _printf_("Opening kml overlay file \"" << filkml << "\". " << "\n");86 if(verbose) _printf_("Opening kml overlay file \"" << filkml << "\".\n"); 87 87 fid=fopen(filkml,"w"); 88 88 89 89 /* Run core computations: */ 90 if (verbose) _printf_("Calling core: " << "\n");90 if (verbose) _printf_("Calling core:\n"); 91 91 KMLOverlayx(&ierror,lataxis,longaxis,nimages,pimages,fid); 92 92 93 if (verbose) _printf_("Closing file \"" << filkml << "\". " << "\n");93 if (verbose) _printf_("Closing file \"" << filkml << "\".\n"); 94 94 fclose(fid); 95 95 … … 108 108 strcat(czip,pimages[i]); 109 109 } 110 if (verbose) _printf_("Zipping file \"" << filkmz << "\". " << "\n");110 if (verbose) _printf_("Zipping file \"" << filkmz << "\".\n"); 111 111 if (verbose) _printf_(czip << "\n"); 112 112 -
TabularUnified issm/trunk-jpl/src/wrappers/Kml2Exp/Kml2Exp.cpp ¶
r15100 r15105 5 5 6 6 void 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"); 28 28 }/*}}}*/ 29 29 WRAPPER(Kml2Exp){ -
TabularUnified issm/trunk-jpl/src/wrappers/Kriging/Kriging.cpp ¶
r15100 r15105 9 9 num=_NUMTHREADS_; 10 10 #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"); 27 27 _printf0_(" -'numthreads': number of threads, default is "<<num << "\n"); 28 _printf0_(" " << "\n");28 _printf0_("\n"); 29 29 }/*}}}*/ 30 30 WRAPPER(Kriging){ -
TabularUnified issm/trunk-jpl/src/wrappers/Ll2xy/Ll2xy.cpp ¶
r15100 r15105 5 5 6 6 void 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"); 29 29 }/*}}}*/ 30 30 WRAPPER(Ll2xy){ … … 70 70 71 71 /*some checks*/ 72 if (verbose) _printf_("Checking inputs: " << "\n");72 if (verbose) _printf_("Checking inputs:\n"); 73 73 if (nlat != nlon){_error_("Must have same number of lat[" << nlat << "] and lon[" << nlon << "] coordinates.");} 74 74 else ncoord=nlat; -
TabularUnified issm/trunk-jpl/src/wrappers/MeshPartition/MeshPartition.cpp ¶
r15100 r15105 6 6 7 7 void MeshPartitionUsage(void){/*{{{*/ 8 _printf_(" usage: " << "\n");8 _printf_(" usage:\n"); 9 9 _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"); 14 14 }/*}}}*/ 15 15 WRAPPER(MeshPartition){ -
TabularUnified issm/trunk-jpl/src/wrappers/MeshProfileIntersection/MeshProfileIntersection.cpp ¶
r15100 r15105 19 19 20 20 void 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"); 31 31 }/*}}}*/ 32 32 WRAPPER(MeshProfileIntersection){ -
TabularUnified issm/trunk-jpl/src/wrappers/NodeConnectivity/NodeConnectivity.cpp ¶
r15100 r15105 6 6 7 7 void 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"); 11 11 }/*}}}*/ 12 12 WRAPPER(NodeConnectivity){ -
TabularUnified issm/trunk-jpl/src/wrappers/PointCloudFindNeighbors/PointCloudFindNeighbors.cpp ¶
r15100 r15105 6 6 7 7 void 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"); 16 16 }/*}}}*/ 17 17 WRAPPER(PointCloudFindNeighbors){ -
TabularUnified issm/trunk-jpl/src/wrappers/PropagateFlagsFromConnectivity/PropagateFlagsFromConnectivity.cpp ¶
r15100 r15105 6 6 7 7 void 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"); 11 11 }/*}}}*/ 12 12 WRAPPER(PropagateFlagsFromConnectivity){ -
TabularUnified issm/trunk-jpl/src/wrappers/Shp2Exp/Shp2Exp.cpp ¶
r15100 r15105 12 12 13 13 void 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"); 29 29 }/*}}}*/ 30 30 WRAPPER(Shp2Exp){ -
TabularUnified issm/trunk-jpl/src/wrappers/Shp2Kml/Shp2Kml.cpp ¶
r15100 r15105 12 12 13 13 void 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"); 35 35 }/*}}}*/ 36 36 WRAPPER(Shp2Kml){ -
TabularUnified issm/trunk-jpl/src/wrappers/StringToEnum/StringToEnum.cpp ¶
r15100 r15105 6 6 7 7 void 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"); 11 11 }/*}}}*/ 12 12 WRAPPER(StringToEnum){ -
TabularUnified issm/trunk-jpl/src/wrappers/TriMesh/TriMesh.cpp ¶
r15100 r15105 6 6 7 7 void 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"); 15 15 }/*}}}*/ 16 16 WRAPPER(TriMesh){ -
TabularUnified issm/trunk-jpl/src/wrappers/TriMeshProcessRifts/TriMeshProcessRifts.cpp ¶
r15100 r15105 6 6 7 7 void 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"); 12 12 }/*}}}*/ 13 13 WRAPPER(TriMeshProcessRifts){ -
TabularUnified issm/trunk-jpl/src/wrappers/TriaSearch/TriaSearch.cpp ¶
r15100 r15105 5 5 6 6 void 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"); 15 15 }/*}}}*/ 16 16 WRAPPER(TriaSearch){ -
TabularUnified issm/trunk-jpl/src/wrappers/Xy2ll/Xy2ll.cpp ¶
r15100 r15105 5 5 6 6 void 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"); 29 29 }/*}}}*/ 30 30 WRAPPER(Xy2ll){ … … 79 79 80 80 /* Run core computations: */ 81 if (verbose) _printf_("Calling core: " << "\n");81 if (verbose) _printf_("Calling core:\n"); 82 82 if (options->GetOption("central_meridian") && options->GetOption("standard_parallel")) 83 83 iret=Xy2llx(lat,lon,x,y,ncoord,sgn,cm,sp); -
TabularUnified issm/trunk-jpl/src/wrappers/matlab/io/FetchMatlabData.cpp ¶
r15100 r15105 38 38 else{ 39 39 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"); 41 41 } 42 42 /*Convert matlab matrix to double* matrix: */ … … 85 85 else{ 86 86 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"); 88 88 } 89 89 /*Convert matlab n-dim array to double* matrix: */ … … 132 132 else{ 133 133 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"); 135 135 } 136 136 /*Convert matlab matrix to double* matrix: */ -
TabularUnified issm/trunk-jpl/src/wrappers/matlab/io/OptionParse.cpp ¶
r15100 r15105 190 190 option=(Option*)OptionCellParse(name,prhs); 191 191 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"); 193 193 if (!mexCallMATLAB(1,lhs,1,(mxArray**)prhs,"struct")) { 194 194 option=(Option*)OptionStructParse(name,(const mxArray**)lhs); -
TabularUnified issm/trunk-jpl/src/wrappers/python/io/FetchPythonData.cpp ¶
r15100 r15105 728 728 if(i+1 == nrhs) _error_("Argument " << i+2 << " must exist and be value of option \"" << name << "\"."); 729 729 730 _printf0_("FetchData for Options not implemented yet, ignoring option \"" << name << "\"! " << "\n");730 _printf0_("FetchData for Options not implemented yet, ignoring option \"" << name << "\"!\n"); 731 731 732 732 // option=(Option*)OptionParse(name,&PyTuple_GetItem(py_tuple,(Py_ssize_t)(i+1)));
Note:
See TracChangeset
for help on using the changeset viewer.