Changeset 787 for trunk


Ignore:
Timestamp:
Jun 26, 2014, 7:41:25 PM (7 years ago)
Author:
sommeria
Message:

aver_synchro corrected

File:
1 edited

Legend:

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

    r784 r787  
    229229
    230230%%%%%%%%%%%%%%%%%%%%%%%%
    231 Data.ListVarName={'X','Y','MeanU','MeanV','cos1_U','cos1_V','a1_U','a1_V','a2_U','a2_V','a3_U','a3_V','asub_U','asub_V',...
     231Data.ListVarName={'coord_x','coord_y','MeanU','MeanV','cos1_U','cos1_V','a1_U','a1_V','a2_U','a2_V','a3_U','a3_V','asub_U','asub_V',...
    232232    'phase1_U','phase1_V','phase2_U','phase2_V','phase3_U','phase3_V'};
    233233%Data.ListVarName=[{'coord_y','coord_x'} Data.ListVarName];
    234234%Data.VarDimName={'coord_y', 'coord_x'};
    235 for ilist=1:numel(Data.ListVarName)
    236     %Data.VarDimName{ilist+2}={'coord_y','coord_x'};
    237     Data.VarDimName{ilist}='nb_vectors';
     235for ilist=1:numel(Data.ListVarName)-2
     236    Data.VarDimName{ilist+2}={'coord_y','coord_x'};
     237 %   Data.VarDimName{ilist}='nb_vectors';
    238238end
    239239Data.MeanU=MeanU/nbfield;
     
    275275%% write the results
    276276OutputFile=fullfile_uvmat(RootPath{1},OutputDir,RootFile{1},'.nc','',1);
    277 errormsg=struct2nc(OutputFile,Data)% write the output file
     277errormsg=struct2nc(OutputFile,Data);% write the output file
     278if isempty(errormsg)
     279    disp_uvmat('CONFIRMATION',[OutputFile ' successfully written'],checkrun)
     280else
     281    disp_uvmat('ERROR',errormsg,checkrun)
     282end
     283   
    278284
    279285%% open the result file with uvmat (in RUN mode)
Note: See TracChangeset for help on using the changeset viewer.