Changeset 1096 for trunk/src/series


Ignore:
Timestamp:
Apr 2, 2021, 3:57:01 PM (3 years ago)
Author:
sommeria
Message:

bugs fixed

Location:
trunk/src/series
Files:
3 edited

Legend:

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

    r1095 r1096  
    331331    end
    332332    if CheckInputFile
    333         OutputPath=fullfile(Param.OutputPath,Param.Experiment,Param.Device);
     333        OutputPath=fullfile(Param.OutputPath,num2str(Param.Experiment),num2str(Param.Device));
    334334        if iview_A==0 % no nc file has been entered
    335335            ncfile=fullfile_uvmat(OutputPath,Param.InputTable{1,2},Param.InputTable{1,3},Param.InputTable{1,5},...
  • trunk/src/series/merge_proj.m

    r1094 r1096  
    8383    if ~exist(FirstFileName,'file')
    8484        msgbox_uvmat('WARNING',['the first input file ' FirstFileName ' does not exist'])
    85     elseif isequal(size(Param.InputTable,1),1) && ~isfield(Param,'ProjObject')
    86         msgbox_uvmat('WARNING','You may need a projection object of type plane for merge_proj')
    8785    end
    8886    return
     
    252250    CheckOverwrite=Param.CheckOverwrite;
    253251end
    254 OutputPath=fullfile(Param.OutputPath,Param.Experiment,Param.Device);
     252OutputPath=fullfile(Param.OutputPath,num2str(Param.Experiment),num2str(Param.Device));
    255253
    256254for index=1:NbField
  • trunk/src/series/sliding_average.m

    r1095 r1096  
    185185
    186186%% initialisation
    187 T=24.4; %main wave period
    188 t0=3; % time for motion start (torus at its maximum x)
     187char_index=regexp(SubDir{1},'waves_L1_');
     188switch(SubDir{1}(char_index+9))
     189    case '1'
     190        amplitude=2.5 %oscillation amplitude
     191        T=24.46;
     192        t0=3 ;% dt=0.5 s, torus at its max x at the beginning of motion, i0=7
     193    case '2'
     194        amplitude=5 %oscillation amplitude
     195        T=24.47;
     196        t0=8.5; % dt=1/3 s -> image index of starting motion = 26, % torus at its max x at the beginning of motion
     197    case '3'
     198        amplitude=10 %oscillation amplitude
     199        T=24.45;
     200        t0=6.5-T/2;% dt=0.25, torus at its minimum x at the beginning of motion
     201    case '4' 
     202        amplitude=15 %oscillation amplitude
     203        T=24.48;
     204        t0=3.4;     %dt=0.2 -> i0=18 image index of starting motion, % torus at its max x at the beginning of motion
     205end
    189206NbPeriod=2; %number of periods for the sliding average
    190207omega=2*pi/T;
    191 amplitude=2.5; %oscillation amplitude
    192208Lscale=15;%diameter of the torus, length scale for normalisation
    193209Uscale=amplitude*omega;
     
    214230NpTime=round(NbPeriod*T/dt+1);
    215231
    216 OutputPath=fullfile(Param.OutputPath,Param.Experiment,Param.Device);
     232OutputPath=fullfile(Param.OutputPath,num2str(Param.Experiment),num2str(Param.Device));
    217233RootFileOut=RootFile{1};
    218234NomTypeOut='_1';
Note: See TracChangeset for help on using the changeset viewer.