Changeset 2296


Ignore:
Timestamp:
09/23/09 15:21:29 (15 years ago)
Author:
Mathieu Morlighem
Message:

renaming

Location:
issm/trunk/src/m
Files:
7 edited

Legend:

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

    r1181 r2296  
    7272
    7373        %Interpolation of data on specified points
    74         data_interp=InterpFromMesh2d(md.elements,md.x,md.y,data,X,Y,NaN);
     74        data_interp=InterpFromMeshToMesh2d(md.elements,md.x,md.y,data,X,Y,NaN);
    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=InterpFromMesh2d(md.elements2d,md.x2d,md.y2d,project2d(md,md.bed,1),X,Y,NaN)+offset;
    86         surface=InterpFromMesh2d(md.elements2d,md.x2d,md.y2d,project2d(md,md.surface,1),X,Y,NaN)-offset;
     85        bed=InterpFromMeshToMesh2d(md.elements2d,md.x2d,md.y2d,project2d(md,md.bed,1),X,Y,NaN)+offset;
     86        surface=InterpFromMeshToMesh2d(md.elements2d,md.x2d,md.y2d,project2d(md,md.surface,1),X,Y,NaN)-offset;
    8787
    8888        %Some useful parameters
     
    109109
    110110        %Interpolation of data on specified points
    111         data_interp=InterpFromMesh3d(md.elements,md.x,md.y,md.z,data,X3,Y3,Z3,NaN);
     111        data_interp=InterpFromMeshToMesh3d(md.elements,md.x,md.y,md.z,data,X3,Y3,Z3,NaN);
    112112
    113113        %build outputs
  • issm/trunk/src/m/classes/public/mesh/meshyams.m

    r2173 r2296  
    5454        %interpolate velocities onto mesh
    5555        disp('   interpolating velocities...');
    56         vx_obs=InterpFromGrid(x_m,y_m,vx,md.x,md.y,0);
    57         vy_obs=InterpFromGrid(x_m,y_m,vy,md.x,md.y,0);
     56        vx_obs=InterpFromGridToMesh(x_m,y_m,vx,md.x,md.y,0);
     57        vy_obs=InterpFromGridToMesh(x_m,y_m,vy,md.x,md.y,0);
    5858        field=sqrt(vx_obs.^2+vy_obs.^2);
    5959
     
    9696        md.gridonwater=zeros(md.numberofgrids,1);
    9797end
    98 md.vx_obs=InterpFromGrid(x_m,y_m,vx,md.x,md.y,0);
    99 md.vy_obs=InterpFromGrid(x_m,y_m,vy,md.x,md.y,0);
     98md.vx_obs=InterpFromGridToMesh(x_m,y_m,vx,md.x,md.y,0);
     99md.vy_obs=InterpFromGridToMesh(x_m,y_m,vy,md.x,md.y,0);
    100100md.vel_obs=sqrt(md.vx_obs.^2+md.vy_obs.^2);
  • issm/trunk/src/m/classes/public/modeldefault/defaultparams.m

    r2216 r2296  
    101101        disp('      reading geothermal flux');
    102102        load(heatfluxpath);
    103         md.geothermalflux=InterpFromGrid(x_m,y_m,heatflux_Antarctica,md.x,md.y,80);
     103        md.geothermalflux=InterpFromGridToMesh(x_m,y_m,heatflux_Antarctica,md.x,md.y,80);
    104104        pos=find(md.geothermalflux==0);md.geothermalflux(pos)=80;
    105105        md.geothermalflux=md.geothermalflux/1000; %map is given in mW/m^2, we need it in W/m^2
  • issm/trunk/src/m/classes/public/plugvelocities.m

    r1411 r2296  
    9494
    9595%interpolate
    96 md.vx_obs=InterpFromGrid(x,y,vx,md.x,md.y,default_value);
    97 md.vy_obs=InterpFromGrid(x,y,vy,md.x,md.y,default_value);
     96md.vx_obs=InterpFromGridToMesh(x,y,vx,md.x,md.y,default_value);
     97md.vy_obs=InterpFromGridToMesh(x,y,vy,md.x,md.y,default_value);
    9898md.vx=md.vx_obs;
    9999md.vy=md.vy_obs;
  • issm/trunk/src/m/classes/public/plugvelocitiesraw.m

    r1318 r2296  
    9494
    9595%interpolate
    96 md.vx_obs_raw=InterpFromGrid(x,y,vx,md.x,md.y,default_value);
    97 md.vy_obs_raw=InterpFromGrid(x,y,vy,md.x,md.y,default_value);
     96md.vx_obs_raw=InterpFromGridToMesh(x,y,vx,md.x,md.y,default_value);
     97md.vy_obs_raw=InterpFromGridToMesh(x,y,vy,md.x,md.y,default_value);
    9898md.vel_obs_raw=sqrt(md.vx_obs_raw.^2+md.vy_obs_raw.^2);
  • issm/trunk/src/m/utils/Interp/InterpFromFile.m

    r1183 r2296  
    198198
    199199        %interpolate
    200         data_out=InterpFromMesh2d(index_data,x_data(:),y_data(:),data(:),x(:),y(:),default_value);
     200        data_out=InterpFromMeshToMesh2d(index_data,x_data(:),y_data(:),data(:),x(:),y(:),default_value);
    201201
    202202else
     
    216216
    217217        %interpolate
    218         data_out=InterpFromGrid(x_data(:),y_data(:),data,x(:),y(:),default_value);
    219 end
     218        data_out=InterpFromGridToMesh(x_data(:),y_data(:),data,x(:),y(:),default_value);
     219end
  • issm/trunk/src/m/utils/LatLong/stereomap.m

    r2271 r2296  
    2323%ok, we have the transformed coordinates in the current projection, go pick up the corresponding
    2424%values.
    25 new_data_line=InterpFromGrid(x_m,y_m,data,new_x,new_y,NaN);
     25new_data_line=InterpFromGridToMesh(x_m,y_m,data,new_x,new_y,NaN);
    2626
    2727new_data=zeros(M,N);
Note: See TracChangeset for help on using the changeset viewer.