Ignore:
Timestamp:
Mar 4, 2015, 12:01:38 AM (9 years ago)
Author:
sommeria
Message:

various bug fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/series/civ2vel_3C.m

    r878 r880  
    169169%% MAIN LOOP ON FIELDS
    170170warning off
    171 if NbField<2
    172     disp_uvmat('ERROR','you need at least 2 images to compute the mean position for the stereo.',checkrun)
    173 return
    174 end
    175 for index=1:NbField-1
     171
     172for index=1:NbField
    176173    update_waitbar(WaitbarHandle,index/NbField)
    177174    if ~isempty(RUNHandle) && ~strcmp(get(RUNHandle,'BusyAction'),'queue')
     
    191188    if NbView==3 % if there is only 1 stereo folder, extract directly Xphys,Yphys and Zphys
    192189       
    193         [Data{3},tild,errormsg] = nc2struct(filecell{3,indextemp});
     190        [Data{3},tild,errormsg] = nc2struct([Param.InputTable{3,1},'/',Param.InputTable{3,2},'/',Param.InputTable{3,3},'_',int2str(indextemp),'.nc']);
     191       
    194192       
    195193        if  exist('Data{3}.Civ3_FF','var') % FF is present, remove wrong vector
     
    221219        end
    222220       
    223         [Data{3},tild,errormsg] = nc2struct(filecell{3,indextemp});
     221        [Data{3},tild,errormsg] = nc2struct([Param.InputTable{3,1},'/',Param.InputTable{3,2},'/',Param.InputTable{3,3},'_',int2str(indextemp),'.nc']);
    224222        if exist('Data{3}.Civ3_FF','var') % if FF is present, remove wrong vector
    225223            temp=find(Data{3}.Civ3_FF==0);
     
    243241       
    244242       
    245         [Data{4},tild,errormsg] = nc2struct(filecell{4,indextemp});
     243        [Data{4},tild,errormsg] = nc2struct([Param.InputTable{4,1},'/',Param.InputTable{4,2},'/',Param.InputTable{4,3},'_',int2str(indextemp),'.nc']);
    246244        if exist('Data{4}.Civ3_FF','var') % if FF is present, remove wrong vector
    247245            temp=find(Data{4}.Civ3_FF==0);
Note: See TracChangeset for help on using the changeset viewer.