Ignore:
Timestamp:
Jun 26, 2012, 8:41:27 AM (12 years ago)
Author:
sommeria
Message:

series fcts updated to fit with new waitbar fct and background run mode, and various bug repairs

File:
1 edited

Legend:

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

    r474 r478  
    7171% RUN case: parameters introduced as the input structure Param
    7272else
    73     hseries=guidata(Param.hseries);%handles of the GUI series
    74     WaitbarPos=get(hseries.waitbar_frame,'Position');%position of the waitbar on the GUI series
    7573    if isfield(Param,'Specific')&& strcmp(Param.Specific,'?')
    7674        checkrun=1;% will only search interactive input parameters (preparation of BATCH mode)
     
    7876        checkrun=2; % indicate the RUN option is used
    7977    end
     78    hseries=guidata(Param.hseries);%handles of the GUI series
    8079end
    8180ParamOut=Param; %default output
     
    137136%% coordinate transform or other user defined transform
    138137transform_fct='';%default
    139 if isfield(Param,'FieldTransform')
     138if isfield(Param,'FieldTransform')&&~isempty(Param.FieldTransform.TransformName)
    140139    addpath(Param.FieldTransform.TransformPath)
    141140    transform_fct=str2func(Param.FieldTransform.TransformName);
     
    192191    for index=index_slice
    193192        if checkrun
    194             update_waitbar(hseries.waitbar_frame,WaitbarPos,index/(nbfield))
     193            update_waitbar(hseries.Waitbar,index/(nbfield))
    195194            stopstate=get(hseries.RUN,'BusyAction');
    196195        else
     
    229228           
    230229            % field calculation (vort, div...)
    231             if strcmp(FileType{1},'civx')||strcmp(FileType{1},'civ')
     230            if strcmp(FileType{1},'civx')||strcmp(FileType{1},'civdata')
    232231                Data{1}=calc_field(InputFields{1}.FieldName,Data{1});%calculate field (vort..)
    233232            end
Note: See TracChangeset for help on using the changeset viewer.