Changeset 1171


Ignore:
Timestamp:
06/30/09 09:07:44 (16 years ago)
Author:
Mathieu Morlighem
Message:

Use mex interpolation routines

Location:
issm/trunk/src/m/classes/public
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/classes/public/SectionValues.m

    r27 r1171  
    7272
    7373        %Interpolation of data on specified points
    74         data_interp=griddata_mesh_to_mesh(md.elements,md.x,md.y,data,X,Y);
     74        data_interp=InterpFromMesh2d(md.elements,md.x,md.y,data,X,Y);
    7575
    7676        %Compute index
     
    8383        %Get bed and surface for each 2d point, offset to make sure that it is inside the glacier system
    8484        offset=10^-10;
    85         bed=griddata_mesh_to_mesh(md.elements2d,md.x2d,md.y2d,project2d(md,md.bed,1),X,Y,'node')+offset;
    86         surface=griddata_mesh_to_mesh(md.elements2d,md.x2d,md.y2d,project2d(md,md.surface,1),X,Y,'node')+offset;
     85        bed=InterpFromMesh2d(md.elements2d,md.x2d,md.y2d,project2d(md,md.bed,1),X,Y)+offset;
     86        surface=InterpFromMesh2d(md.elements2d,md.x2d,md.y2d,project2d(md,md.surface,1),X,Y)-offset;
    8787
    8888        %Some useful parameters
     
    109109
    110110        %Interpolation of data on specified points
    111         data_interp=griddata_mesh_to_mesh_3d(md.elements,md.x,md.y,md.z,data,X3,Y3,Z3);
     111        data_interp=InterpFromMesh3d(md.elements,md.x,md.y,md.z,data,X3,Y3,Z3);
    112112
    113113        %build outputs
  • issm/trunk/src/m/classes/public/plot/plot_section.m

    r27 r1171  
    1919        index1=i;
    2020end
    21 
    2221
    2322%process data and model
  • issm/trunk/src/m/classes/public/plot/processdata.m

    r1124 r1171  
    1111        error('plotmodel error message: data provided is empty');
    1212end
     13
     14%make a column out of data
     15data=data(:);
    1316
    1417%check length
Note: See TracChangeset for help on using the changeset viewer.