Changeset 1171
- Timestamp:
- 06/30/09 09:07:44 (16 years ago)
- Location:
- issm/trunk/src/m/classes/public
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/classes/public/SectionValues.m
r27 r1171 72 72 73 73 %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); 75 75 76 76 %Compute index … … 83 83 %Get bed and surface for each 2d point, offset to make sure that it is inside the glacier system 84 84 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; 87 87 88 88 %Some useful parameters … … 109 109 110 110 %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); 112 112 113 113 %build outputs -
issm/trunk/src/m/classes/public/plot/plot_section.m
r27 r1171 19 19 index1=i; 20 20 end 21 22 21 23 22 %process data and model -
issm/trunk/src/m/classes/public/plot/processdata.m
r1124 r1171 11 11 error('plotmodel error message: data provided is empty'); 12 12 end 13 14 %make a column out of data 15 data=data(:); 13 16 14 17 %check length
Note:
See TracChangeset
for help on using the changeset viewer.