Changeset 1091 for trunk/src/series


Ignore:
Timestamp:
Feb 9, 2021, 12:52:17 PM (3 years ago)
Author:
sommeria
Message:

Param.incr_slice introduced

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/series/time_series.m

    r1085 r1091  
    248248    last_j=j1_series{1}(end);
    249249end
     250OutputPath=fullfile(Param.OutputPath,Param.Experiment,Param.Device)
    250251
    251252%% Set field names and velocity types
     
    305306    if isfield(Param,'ActionInput') && isfield(Param.ActionInput,'VarMesh')%case of histograms
    306307        VarMesh=Param.ActionInput.VarMesh;
    307     else
     308    elseif isequal(Param.IndexRange.NbSlice,1)
    308309        VarMesh=[];
    309310        disp_uvmat('WARNING','automatic bin size for histograms, select time_series again to set the value',checkrun)
     
    572573
    573574%% name of result file
    574 OutputFile=fullfile_uvmat(RootPath{1},OutputDir,RootFile{1},FileExtOut,NomTypeOut,first_i,last_i,first_j,last_j);
     575OutputFile=fullfile_uvmat(OutputPath,OutputDir,RootFile{1},FileExtOut,NomTypeOut,first_i,last_i,first_j,last_j);
    575576errormsg=struct2nc(OutputFile,DataOut); %save result file
    576577if isempty(errormsg)
     
    581582
    582583%% plot the time series for  (the last one in case of multislices)
    583 if checkrun %&& isfield(Param,'ProjObject') && strcmp(Param.ProjObject.Type,'points')
     584if checkrun && isequal(Param.IndexRange.NbSlice,1)%&& isfield(Param,'ProjObject') && strcmp(Param.ProjObject.Type,'points')
    584585    %% open the result file with uvmat (in RUN mode)
    585586    uvmat(OutputFile)% open the last result file with uvmat
    586587end
    587 %     figure
    588 %     haxes=axes;
    589 %     plot_field(DataOut,haxes)
    590 %     
    591 %     %% display the result file using the GUI get_field
    592 %     hget_field=findobj(allchild(0),'name','get_field');
    593 %     if ~isempty(hget_field)
    594 %         delete(hget_field)
    595 %     end
    596 %     get_field(OutputFile,DataOut)
    597 % end
    598 
    599 
     588
     589
     590
Note: See TracChangeset for help on using the changeset viewer.