Changeset 1052 for trunk


Ignore:
Timestamp:
Jul 16, 2018, 8:02:42 PM (6 years ago)
Author:
sommeria
Message:

turb-correlation_x corrected

File:
1 edited

Legend:

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

    r1027 r1052  
    6363    ParamOut.AllowInputSort='off';% allow alphabetic sorting of the list of input file SubDir (options 'off'/'on', 'off' by default)
    6464    ParamOut.WholeIndexRange='off';% prescribes the file index ranges from min to max (options 'off'/'on', 'off' by default)
    65     ParamOut.NbSlice='off'; %nbre of slices ('off' by default)
     65    ParamOut.NbSlice=1;%nbre of slices, 1 prevents splitting in several processes, ('off' by default)
    6666    ParamOut.VelType='off';% menu for selecting the velocity type (options 'off'/'one'/'two',  'off' by default)
    6767    ParamOut.FieldName='one';% menu for selecting the field (s) in the input file(options 'off'/'one'/'two', 'off' by default)
     
    211211        UMean=zeros(npy,npx);
    212212        VMean=zeros(npy,npx);
    213         Counter=false(npy,npx);
     213        Counter=zeros(npy,npx);
    214214                % transcripts the global attributes
    215215        if isfield(Field,'ListGlobalAttribute')
     
    228228    Counter=Counter+~FF;
    229229end
     230Counter(Counter==0)=1;
    230231UMean=UMean./Counter;
    231232VMean=VMean./Counter;
     
    288289end
    289290%%%%%%%%%%%%%%%% end loop on field indices %%%%%%%%%%%%%%%%
     291DataOut.Counter(DataOut.Counter==0)=1;
     292size(DataOut.UUCorr)
     293size(DataOut.VVCorr)
     294size(DataOut.Counter)
    290295DataOut.UUCorr=DataOut.UUCorr./DataOut.Counter;
    291296DataOut.VVCorr=DataOut.VVCorr./DataOut.Counter;
Note: See TracChangeset for help on using the changeset viewer.