Ignore:
Timestamp:
Jun 22, 2016, 1:36:50 PM (5 years ago)
Author:
sommeria
Message:

update calib modfied + various updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/find_field_bounds.m

    r924 r954  
    5454CoordMin=zeros(numel(imax),NbDim);
    5555Mesh=zeros(1,numel(imax));
     56FieldOut.ProjModeRequest='projection';%default
    5657for ind=1:numel(imax)
    5758    if strcmp(CellInfo{imax(ind)}.CoordType,'tps')
     
    9091            Mesh(ind)=min((CoordMax(ind,:)-CoordMin(ind,:))./(NbPoints-1));
    9192    end
     93    if isfield(CellInfo{imax(ind)},'ProjModeRequest')
     94        if strcmp(CellInfo{imax(ind)}.ProjModeRequest,'interp_tps')
     95            FieldOut.ProjModeRequest='interp_tps';
     96        end
     97        if strcmp(CellInfo{imax(ind)}.ProjModeRequest,'interp_lin')&& ~strcmp(FieldOut.ProjModeRequest,'interp_tps')
     98            FieldOut.ProjModeRequest='interp_lin';
     99        end
     100    end 
    92101end
    93102Mesh=min(Mesh);
Note: See TracChangeset for help on using the changeset viewer.