Changeset 317 for trunk/src/civ_matlab.m


Ignore:
Timestamp:
Dec 5, 2011, 7:48:37 PM (9 years ago)
Author:
sommeria
Message:

bug repaired in name2display (names in _000001) and civ.m

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/civ_matlab.m

    r316 r317  
    7979
    8080else
    81     Data=nc2struct(ncfile,'ListGlobalAttribute','absolut_time_T0'); %look for the constant 'absolut_time_T0' to detect old civx data format
     81    Data=nc2struct(ncfile,'ListGlobalAttribute','absolut_time_T0') %look for the constant 'absolut_time_T0' to detect old civx data format
     82    if isfield(Data,'Txt')
     83            errormsg=Data.Txt;
     84        return
     85    end
    8286    if ~isempty(Data.absolut_time_T0')%read civx file
    8387        check_civx=1;% test for old civx data format
     
    9094        end
    9195    end
    92     if isfield(Data,'Txt')
    93         msgbox_uvmat('ERROR',Data.Txt)
    94         return
    95     end
     96
    9697end
    9798
     
    295296
    296297%% write result in a netcdf file if requested
    297 if exist('ncfile','var')
     298if exist('ncfile','var') && ~(isfield(Param,'CheckOuputFile')&&Param.CheckOuputFile)
    298299    errormsg=struct2nc(ncfile,Data);
    299300end
     
    413414
    414415%% compute image correlations: MAINLOOP on velocity vectors
    415 % corrmax=0;
    416 % sum_square=1;% default
     416corrmax=0;
     417sum_square=1;% default
    417418% vector=[0 0];%default
    418419for ivec=1:nbvec
Note: See TracChangeset for help on using the changeset viewer.