Changeset 1100 for trunk/src/series.m


Ignore:
Timestamp:
Apr 23, 2021, 4:59:15 PM (3 years ago)
Author:
sommeria
Message:

turb_stat updated for multi slices

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/series.m

    r1097 r1100  
    17731773        OutputDir=Param.ActionInput.LogPath;
    17741774    end
    1775    
     1775    if isfield(Param,'OutputSubDir')
    17761776    set(handles.OutputSubDir,'String',Param.OutputSubDir)
    17771777    set(handles.OutputDirExt,'String',Param.OutputDirExt)
    17781778    drawnow
     1779    end
    17791780    if get(handles.Replicate,'Value')
    17801781        set(handles.InputTable,'Data',Param.InputTable)
    1781         check_input_file_series(handles)
     1782        set(handles.OutputPath,'String',Pathout)
     1783        set(handles.Experiment,'String',ListExp{iexp})
     1784        set(handles.Device,'String',ListDevices{iexp})
     1785        check_input_file_series(handles)     
    17821786    end
    17831787    DirXml=fullfile(OutputDir,'0_XML');
     
    24772481
    24782482%% Detect the types of input files and set menus and default options in 'VelType'
    2479 iview_civ=find(strcmp('civx',SeriesData.FileType)|strcmp('civdata',SeriesData.FileType));
     2483if ~isfield(SeriesData,'FileType')
     2484    SeriesData.FileType={'none'};
     2485end
     2486iview_civ=find( strcmp('civx',SeriesData.FileType)|strcmp('civdata',SeriesData.FileType));
    24802487iview_netcdf=find(strcmp('netcdf',SeriesData.FileType)|strcmp('civx',SeriesData.FileType)|strcmp('civdata',SeriesData.FileType)); % all nc files, icluding civ
    24812488FieldList=get(handles.FieldName,'String'); % previous list as default
     
    26522659%% enable or desable j index visibility
    26532660status_j='on'; % default
    2654 if isempty(find(~cellfun(@isempty,SeriesData.j1_series), 1)); % case of empty j indices
     2661if isfield(SeriesData,'j1_series') && isempty(find(~cellfun(@isempty,SeriesData.j1_series), 1)) % case of empty j indices
    26552662    status_j='off'; % no j index needed
    26562663elseif strcmp(get(handles.PairString,'Visible'),'on')
Note: See TracChangeset for help on using the changeset viewer.