- Timestamp:
- Jul 16, 2018, 8:02:42 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/turb_correlation_x.m
r1027 r1052 63 63 ParamOut.AllowInputSort='off';% allow alphabetic sorting of the list of input file SubDir (options 'off'/'on', 'off' by default) 64 64 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) 66 66 ParamOut.VelType='off';% menu for selecting the velocity type (options 'off'/'one'/'two', 'off' by default) 67 67 ParamOut.FieldName='one';% menu for selecting the field (s) in the input file(options 'off'/'one'/'two', 'off' by default) … … 211 211 UMean=zeros(npy,npx); 212 212 VMean=zeros(npy,npx); 213 Counter= false(npy,npx);213 Counter=zeros(npy,npx); 214 214 % transcripts the global attributes 215 215 if isfield(Field,'ListGlobalAttribute') … … 228 228 Counter=Counter+~FF; 229 229 end 230 Counter(Counter==0)=1; 230 231 UMean=UMean./Counter; 231 232 VMean=VMean./Counter; … … 288 289 end 289 290 %%%%%%%%%%%%%%%% end loop on field indices %%%%%%%%%%%%%%%% 291 DataOut.Counter(DataOut.Counter==0)=1; 292 size(DataOut.UUCorr) 293 size(DataOut.VVCorr) 294 size(DataOut.Counter) 290 295 DataOut.UUCorr=DataOut.UUCorr./DataOut.Counter; 291 296 DataOut.VVCorr=DataOut.VVCorr./DataOut.Counter;
Note: See TracChangeset
for help on using the changeset viewer.