Changeset 1144 for trunk/src/series.m


Ignore:
Timestamp:
May 13, 2024, 9:49:09 PM (5 months ago)
Author:
sommeria
Message:

false flags modified in civ_series with new conventions, low pass filter adde to transform_field

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/series.m

    r1141 r1144  
    645645    else %scan the input folder
    646646        InputTable{iview,3}=regexprep(InputTable{iview,3},'^/','');%suppress '/' at the beginning of the input name
    647         i1=str2num(get(handles.num_first_i,'String'));
    648         j1=str2num(get(handles.num_first_j,'String'));
    649         InputFile=fullfile_uvmat('','',InputTable{iview,3},InputTable{iview,5},InputTable{iview,4},i1,[],j1,[]);
    650             [RootPath,~,RootFile,i1_series,i2_series,j1_series,j2_series,tild,FileInfo,MovieObject]=...
     647        i1=str2double(get(handles.num_first_i,'String'));
     648        j1=str2double(get(handles.num_first_j,'String'));
     649        j2=[];%default
     650        PairString=get(handles.PairString,'Data');
     651        if numel(PairString)>=iview
     652            checkpair=strfind(PairString{iview},'j=');
     653            if checkpair
     654                j1=str2double(PairString{iview}(4));
     655                j2=str2double(PairString{iview}(6));
     656            end
     657        end
     658        InputFile=fullfile_uvmat('','',InputTable{iview,3},InputTable{iview,5},InputTable{iview,4},i1,[],j1,j2);
     659        [RootPath,~,RootFile,i1_series,i2_series,j1_series,j2_series,tild,FileInfo,MovieObject]=...
    651660                find_file_series(fullfile(InputTable{iview,1},InputTable{iview,2}),InputFile);
    652661    end
     
    13111320function num_last_j_Callback(hObject, eventdata, handles)
    13121321%------------------------------------------------------------------------
    1313 % first_j=str2num(get(handles.num_first_j,'String'));
    1314 % last_j=str2num(get(handles.num_last_j,'String'));
    1315 % ref_j=ceil((first_j+last_j)/2);
    1316 % set(handles.num_ref_j,'String', num2str(ref_j))
    1317 % num_ref_j_Callback(hObject, eventdata, handles)
    13181322SeriesData=get(handles.series,'UserData');
    13191323if ~isfield(SeriesData,'Time')
     
    13461350%Pairs=get(handles.PairString,'Data');
    13471351for iview=1:size(TimeTable,1)
    1348     if size(SeriesData.Time,1)<iview
     1352    if numel(SeriesData.Time)<iview
    13491353        break
    13501354    end
     
    26892693
    26902694%% NbSlice visibility
    2691 if isfield(ParamOut,'OutputFileMode')&& strcmp(ParamOut.OutputFileMode,'NbSlice')
    2692     ParamOut.NbSlice='on';
    2693 end
     2695% if isfield(ParamOut,'OutputFileMode')&& strcmp(ParamOut.OutputFileMode,'NbSlice')
     2696%     ParamOut.NbSlice='on';
     2697% end
    26942698if isfield(ParamOut,'NbSlice') && (strcmp(ParamOut.NbSlice,'on')||isnumeric(ParamOut.NbSlice))
    26952699    set(handles.num_NbSlice,'Visible','on')
    26962700    set(handles.NbSlice_title,'Visible','on')
     2701    if isnumeric(ParamOut.NbSlice)
     2702        set(handles.num_NbSlice,'String',num2str(ParamOut.NbSlice))
     2703    end
    26972704else
    26982705    set(handles.num_NbSlice,'Visible','off')
Note: See TracChangeset for help on using the changeset viewer.