Changeset 1030 for trunk/src/series.m


Ignore:
Timestamp:
Feb 7, 2018, 7:48:52 PM (7 years ago)
Author:
sommeria
Message:

updated for Matlab 2016

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/series.m

    r1027 r1030  
    217217    end
    218218    %get the menu of actions
    219 %     if isfield(h,'ActionExtListUser') && iscell(h.ActionExtListUser)
    220 %         ActionExtList=[ActionExtList; h.ActionExtListUser];
    221 %     end
    222219    if isfield(h,'ActionListUser') && iscell(h.ActionListUser) && isfield(h,'ActionPathListUser') && iscell(h.ActionPathListUser)
    223220        ActionList=[ActionList;h.ActionListUser];
     
    287284    end
    288285end
    289 % if isfield(Param,'Coord_x_str') && ischar(Param.Coord_x_str)
    290 %         set(handles.Coord_x,'String',Param.Coord_x_str); % list menu fields
    291 % end
    292 % if isfield(Param,'Coord_y_str')&& ischar(Param.Coord_y_str)
    293 %         set(handles.Coord_y,'String',Param.Coord_y_str); % list menu fields
    294 % end
    295286
    296287%% introduce the input file name(s) if defined from input Param,
     
    15571548                cd(get(handles.ActionPath,'String'))% go to the directory of Action
    15581549                addpath(path_uvmat)% add the path to uvmat to run the fct 'compile'
    1559                 addpath(fullfile(path_uvmat,'transform_field'))% add the path to uvmat to run the fct 'compile'
     1550                addpath(fullfile(path_uvmat,'transform_field'))% add the path to transform functions to run the fct 'compile'
    15601551                compile(ActionName,TransformPath)
    15611552                cd(currentdir)
     
    23262317FieldList_1=get(handles.FieldName_1,'String'); % previous list as default
    23272318if ~iscell(FieldList_1),FieldList_1={FieldList_1};end
    2328 %CheckList=0; % indicate whether FieldName has been updated
    23292319CheckList_1=1; % indicate whether FieldName_1 has been updated
    23302320handles_coord=[handles.Coord_x handles.Coord_y handles.Coord_z handles.Coord_x_title handles.Coord_y_title handles.Coord_z_title];
     
    23352325    set(handles.VelType,'Visible','on')
    23362326    set(handles.VelType_title,'Visible','on')
    2337     FieldList=[set_field_list('U','V');{'C'};{'get_field...'}]; % standard menu for civx data
     2327    FieldList=set_field_list('U','V'); % standard menu for civx data
    23382328    %CheckList=1;
    23392329    set(handles.FieldName,'Value',1); % velocity vector choice by default
     
    23882378   
    23892379    set(handles_coord,'Visible','on')
    2390     FieldList=[FieldList;{'get_field...'}];
     2380    if isempty(find(strcmp('get_field...',FieldList)))
     2381    FieldList=[FieldList;{'get_field...'}];%add 'get_field...' to the menu FieldName if it is not already
     2382    end
    23912383    if FieldNameRequest_1 && numel(iview_netcdf)>=2
    23922384        set(handles.FieldName_1,'Visible','on')
     
    26932685                    ['norm(' UName ',' VName ')'];...
    26942686                    UName;VName};
     2687                set(handles.VelType,'Visible','off')
    26952688            case {'scalar'}
    26962689                FieldList=GetFieldData.PanelScalar.scalar;
     
    26992692                    FieldList={FieldList};
    27002693                end
     2694                set(handles.VelType,'Visible','off')
    27012695            case 'civdata...'
    27022696                FieldList=[set_field_list('U','V') ;{'C'}];
     
    27042698                XName='X';
    27052699                YName='y';
     2700                set(handles.VelType,'Visible','on')
    27062701        end
    27072702        set(handles.FieldName,'Value',1)
Note: See TracChangeset for help on using the changeset viewer.