Index: /trunk/src/series/turb_correlation_x.m
===================================================================
--- /trunk/src/series/turb_correlation_x.m	(revision 1051)
+++ /trunk/src/series/turb_correlation_x.m	(revision 1052)
@@ -63,5 +63,5 @@
     ParamOut.AllowInputSort='off';% allow alphabetic sorting of the list of input file SubDir (options 'off'/'on', 'off' by default)
     ParamOut.WholeIndexRange='off';% prescribes the file index ranges from min to max (options 'off'/'on', 'off' by default)
-    ParamOut.NbSlice='off'; %nbre of slices ('off' by default)
+    ParamOut.NbSlice=1;%nbre of slices, 1 prevents splitting in several processes, ('off' by default)
     ParamOut.VelType='off';% menu for selecting the velocity type (options 'off'/'one'/'two',  'off' by default)
     ParamOut.FieldName='one';% menu for selecting the field (s) in the input file(options 'off'/'one'/'two', 'off' by default)
@@ -211,5 +211,5 @@
         UMean=zeros(npy,npx);
         VMean=zeros(npy,npx);
-        Counter=false(npy,npx);
+        Counter=zeros(npy,npx);
                 % transcripts the global attributes
         if isfield(Field,'ListGlobalAttribute')
@@ -228,4 +228,5 @@
     Counter=Counter+~FF;
 end
+Counter(Counter==0)=1;
 UMean=UMean./Counter;
 VMean=VMean./Counter;
@@ -288,4 +289,8 @@
 end
 %%%%%%%%%%%%%%%% end loop on field indices %%%%%%%%%%%%%%%%
+DataOut.Counter(DataOut.Counter==0)=1;
+size(DataOut.UUCorr)
+size(DataOut.VVCorr)
+size(DataOut.Counter)
 DataOut.UUCorr=DataOut.UUCorr./DataOut.Counter;
 DataOut.VVCorr=DataOut.VVCorr./DataOut.Counter;
