Ignore:
Timestamp:
Apr 7, 2013, 10:14:45 AM (8 years ago)
Author:
sommeria
Message:

bug on compilation solved (still to test with transform_field fct). faster browser inrtroduced. Various bug corrections

File:
1 edited

Legend:

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

    r605 r606  
    4242function ParamOut=time_series(Param)
    4343
    44 %% set the input elements needed on the GUI series when the action is selected in the menu ActionName
     44%% set the input elements needed on the GUI series when the action is selected in the menu ActionName or InputTable refreshed
    4545if isstruct(Param) && isequal(Param.Action.RUN,0)
    4646    ParamOut.AllowInputSort='off';% allow alphabetic sorting of the list of input file SubDir (options 'off'/'on', 'off' by default)
     
    5050    ParamOut.FieldName='two';% menu for selecting the field (s) in the input file(options 'off'/'one'/'two', 'off' by default)
    5151    ParamOut.FieldTransform = 'on';%can use a transform function
     52    ParamOut.TransformPath=fullfile(fileparts(which('uvmat')),'transform_field');% path to transform functions (needed for compilation only)
    5253    ParamOut.ProjObject='on';%can use projection object(option 'off'/'on',
    5354    ParamOut.Mask='off';%can use mask option   (option 'off'/'on', 'off' by default)
     
    7172end
    7273
    73 ParamOut=Param; %default output
     74ParamOut=[]; %default output
    7475OutputDir=[Param.OutputSubDir Param.OutputDirExt];
    7576
     
    8990% i1_series(iview,fileindex) expresses the same indices as a 1D array in file indices
    9091%%%%%%%%%%%%
    91 NbSlice=1;%default
    92 if isfield(Param.IndexRange,'NbSlice')&&~isempty(Param.IndexRange.NbSlice)
    93     NbSlice=Param.IndexRange.NbSlice;
    94 end
     92% NbSlice=1;%default
     93% if isfield(Param.IndexRange,'NbSlice')&&~isempty(Param.IndexRange.NbSlice)
     94%     NbSlice=Param.IndexRange.NbSlice;
     95% end
    9596nbview=numel(i1_series);%number of input file series (lines in InputTable)
    96 nbfield_j=size(i1_series{1},1); %nb of fields for the j index (bursts or volume slices)
     97nbfield_j=size(j1_series{1},1); %nb of fields for the j index (bursts or volume slices)
    9798nbfield_i=size(i1_series{1},2); %nb of fields for the i index
    9899nbfield=nbfield_j*nbfield_i; %total number of fields
    99 nbfield_i=floor(nbfield/NbSlice);%total number of  indexes in a slice (adjusted to an integer number of slices)
    100 nbfield=nbfield_i*NbSlice; %total number of fields after adjustement
    101100
    102101%determine the file type on each line from the first input file
     
    153152end
    154153NomTypeOut='_1-2_1';% output file index will indicate the first and last ref index in the series
    155 if checkrun==1
    156     return % stop here for input checks
    157 end
    158154
    159155%% Set field names and velocity types
     
    419415
    420416%name of result file
    421 OutputFile=fullfile_uvmat(RootPath{1},OutputDir,RootFile{1},FileExtOut,NomTypeOut,i1_series{1}(1),i1_series{1}(end),i_slice,[]);
     417OutputFile=fullfile_uvmat(RootPath{1},OutputDir,RootFile{1},FileExtOut,NomTypeOut,i1_series{1}(1),i1_series{1}(end),j1_series{1}(1),j1_series{1}(end));
    422418errormsg=struct2nc(OutputFile,DataOut); %save result file
    423419if isempty(errormsg)
Note: See TracChangeset for help on using the changeset viewer.