Index: /trunk/src/series.m
===================================================================
--- /trunk/src/series.m	(revision 1029)
+++ /trunk/src/series.m	(revision 1030)
@@ -217,7 +217,4 @@
     end
     %get the menu of actions
-%     if isfield(h,'ActionExtListUser') && iscell(h.ActionExtListUser)
-%         ActionExtList=[ActionExtList; h.ActionExtListUser];
-%     end 
     if isfield(h,'ActionListUser') && iscell(h.ActionListUser) && isfield(h,'ActionPathListUser') && iscell(h.ActionPathListUser)
         ActionList=[ActionList;h.ActionListUser];
@@ -287,10 +284,4 @@
     end
 end
-% if isfield(Param,'Coord_x_str') && ischar(Param.Coord_x_str)
-%         set(handles.Coord_x,'String',Param.Coord_x_str); % list menu fields
-% end
-% if isfield(Param,'Coord_y_str')&& ischar(Param.Coord_y_str)
-%         set(handles.Coord_y,'String',Param.Coord_y_str); % list menu fields
-% end
 
 %% introduce the input file name(s) if defined from input Param,
@@ -1557,5 +1548,5 @@
                 cd(get(handles.ActionPath,'String'))% go to the directory of Action
                 addpath(path_uvmat)% add the path to uvmat to run the fct 'compile'
-                addpath(fullfile(path_uvmat,'transform_field'))% add the path to uvmat to run the fct 'compile'
+                addpath(fullfile(path_uvmat,'transform_field'))% add the path to transform functions to run the fct 'compile'
                 compile(ActionName,TransformPath)
                 cd(currentdir)
@@ -2326,5 +2317,4 @@
 FieldList_1=get(handles.FieldName_1,'String'); % previous list as default
 if ~iscell(FieldList_1),FieldList_1={FieldList_1};end
-%CheckList=0; % indicate whether FieldName has been updated
 CheckList_1=1; % indicate whether FieldName_1 has been updated
 handles_coord=[handles.Coord_x handles.Coord_y handles.Coord_z handles.Coord_x_title handles.Coord_y_title handles.Coord_z_title];
@@ -2335,5 +2325,5 @@
     set(handles.VelType,'Visible','on')
     set(handles.VelType_title,'Visible','on')
-    FieldList=[set_field_list('U','V');{'C'};{'get_field...'}]; % standard menu for civx data
+    FieldList=set_field_list('U','V'); % standard menu for civx data
     %CheckList=1;
     set(handles.FieldName,'Value',1); % velocity vector choice by default
@@ -2388,5 +2378,7 @@
     
     set(handles_coord,'Visible','on')
-    FieldList=[FieldList;{'get_field...'}];
+    if isempty(find(strcmp('get_field...',FieldList)))
+    FieldList=[FieldList;{'get_field...'}];%add 'get_field...' to the menu FieldName if it is not already
+    end
     if FieldNameRequest_1 && numel(iview_netcdf)>=2
         set(handles.FieldName_1,'Visible','on')
@@ -2693,4 +2685,5 @@
                     ['norm(' UName ',' VName ')'];...
                     UName;VName};
+                set(handles.VelType,'Visible','off')
             case {'scalar'}
                 FieldList=GetFieldData.PanelScalar.scalar;
@@ -2699,4 +2692,5 @@
                     FieldList={FieldList};
                 end
+                set(handles.VelType,'Visible','off')
             case 'civdata...'
                 FieldList=[set_field_list('U','V') ;{'C'}];
@@ -2704,4 +2698,5 @@
                 XName='X';
                 YName='y';
+                set(handles.VelType,'Visible','on')
         end
         set(handles.FieldName,'Value',1)
Index: /trunk/src/series/merge_proj.m
===================================================================
--- /trunk/src/series/merge_proj.m	(revision 1029)
+++ /trunk/src/series/merge_proj.m	(revision 1030)
@@ -143,4 +143,7 @@
     [FileInfo{iview},MovieObject{iview}]=get_file_info(filecell{iview,1});
     FileType{iview}=FileInfo{iview}.FileType;
+    if strcmp(FileType{iview},'civdata')&&  ~isfield(Param.InputFields,'VelType')
+        FileType{iview}='netcdf';
+    end
     CheckImage{iview}=~isempty(find(strcmp(FileType{iview},ImageTypeOptions)));% =1 for images
     if CheckImage{iview}
@@ -313,5 +316,7 @@
         
         %% calculate tps coefficients if needed
-        check_proj_tps= isfield(Param,'ProjObject')&&~isempty(Param.ProjObject)&& strcmp(Param.ProjObject.ProjMode,'interp_tps')&&~isfield(Data{iview},'Coord_tps');
+
+        check_proj_tps= strcmp(FileType{iview},'civdata') && isfield(Param,'ProjObject')&&~isempty(Param.ProjObject)...
+            && strcmp(Param.ProjObject.ProjMode,'interp_tps')&&~isfield(Data{iview},'Coord_tps');
         Data{iview}=tps_coeff_field(Data{iview},check_proj_tps);
         
Index: /trunk/src/uigetfile_uvmat.m
===================================================================
--- /trunk/src/uigetfile_uvmat.m	(revision 1029)
+++ /trunk/src/uigetfile_uvmat.m	(revision 1030)
@@ -192,5 +192,6 @@
 end
 set(hObject,'backgroundColor',[0 1 0])% indicate end button activation
-uiresume(get(hObject,'parent'))
+fig_struct=get(hObject,'parent');
+uiresume(fig_struct.Number)
 
 %------------------------------------------------------------------------
@@ -334,5 +335,6 @@
 ListCells=struct2cell(ListStruct);% transform dir struct to a cell arrray
 ListFiles=ListCells(1,:);%list of file names
-check_dir=cell2mat(ListCells(4,:));% =1 for directories, =0 for files
+index_dir=find(strcmp('isdir',fieldnames(ListStruct)));
+check_dir=cell2mat(ListCells(index_dir,:));% =1 for directories, =0 for files
 % for ilist=1:numel(check_dir)
 %     if check_dir(ilist)
