Changeset 546 for trunk/src/calc_tps.m


Ignore:
Timestamp:
Sep 17, 2012, 10:47:38 PM (12 years ago)
Author:
sommeria
Message:

bugs corrected for tps projection on a grid + pb of colorbar display solved

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/calc_tps.m

    r530 r546  
     1%'calc_tps': calculate the thin plate spline (tps) coefficients for interpolation
     2%---------------------------------------------------------------------
     3% DataOut=calc_tps(DataIn,checkall)
     4%
     5% OUTPUT:
     6% DataOut: output field structure
     7%
     8% INPUT:
     9% DataIn: intput field structure
     10% checkall:=1 if tps is needed for all fields (a filter projection is needed), =0 otherwise
     11
    112function DataOut=calc_tps(DataIn,checkall)     
    213DataOut=DataIn;%default
     
    516    SubDomain=DataIn.SubDomain;%
    617end
    7 %[CellVarIndex,NbDimVec,VarTypeCell,errormsg]=find_field_cells(DataIn);
    818[CellInfo,NbDimArray,errormsg]=find_field_cells(DataIn);
    919nbtps=0;
    1020for icell=1:numel(CellInfo);
    11     %VarType=VarTypeCell{icell};
    1221    if NbDimArray(icell)>=2 && strcmp(CellInfo{icell}.CoordType,'scattered')%'&& ~isempty(VarType.coord_x)
    1322        nbtps=nbtps+1;
Note: See TracChangeset for help on using the changeset viewer.