Changeset 940 for trunk/src/series.m


Ignore:
Timestamp:
Apr 12, 2016, 4:01:13 PM (9 years ago)
Author:
sommeria
Message:

merge_proj_polar made

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/series.m

    r937 r940  
    14241424    return
    14251425end
    1426 if isfield(Param,'InputFields')&& isequal(Param.InputFields.FieldName,'get_field...')
     1426if isfield(Param,'InputFields')&& isfield(Param.InputFields,'FieldName')&& isequal(Param.InputFields.FieldName,'get_field...')
    14271427    errormsg='input field name(s) not defined, select get_field...';
    14281428    return
     
    22942294
    22952295%% Detect the types of input files and set menus and default options in 'FieldName'
    2296 if FieldNameRequest && numel(iview_netcdf)>=1
    2297     set(handles.InputFields,'Visible','on')
    2298     %if CheckList==0        % not civ input made
    2299         if isfield(SeriesData.FileInfo{iview_netcdf(1)},'ListVarName')
     2296if (FieldNameRequest || VelTypeRequest) && numel(iview_netcdf)>=1
     2297    set(handles.InputFields,'Visible','on')   
     2298    if FieldNameRequest && isfield(SeriesData.FileInfo{iview_netcdf(1)},'ListVarName')
     2299        set(handles.FieldName,'Visible','on')
    23002300        ListVarName=SeriesData.FileInfo{iview_netcdf(1)}.ListVarName;
    23012301        ind_var=get(handles.FieldName,'Value');%indices of previously selected variables
     
    23542354            set(handles.FieldName_1,'Visible','off')
    23552355        end
    2356         end
    2357 %     else
    2358 %         set(handles_coord,'Visible','off')% no coord display for civ data
    2359 %     end
     2356    else
     2357        set(handles.FieldName,'Visible','off')
     2358    end
    23602359    set(handles.FieldName,'String',FieldList)
    23612360else
Note: See TracChangeset for help on using the changeset viewer.