Ignore:
Timestamp:
Jun 12, 2012, 12:29:19 AM (12 years ago)
Author:
sommeria
Message:

bugs repaired in aver_stat and check_data_file

sub_background largely modified. Tests needed
other functions not yet translated

File:
1 edited

Legend:

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

    r449 r451  
    9797ImageTypeOptions={'image','multimage','mmreader','video'};
    9898NcTypeOptions={'netcdf','civx','civdata'};
     99   
    99100for iview=1:nbview
    100     [FileType{iview},FileInfo{iview},Object{iview}]=get_file_type(filecell{iview,1});
     101    if ~exist(filecell{iview,1}','file')
     102        msgbox_uvmat('ERROR',['the first input file ' filecell{iview,1} ' does not exist'])
     103        return
     104    end
     105    [FileType{iview},FileInfo{iview},MovieObject{iview}]=get_file_type(filecell{iview,1});
    101106    CheckImage{iview}=~isempty(find(strcmp(FileType{iview},ImageTypeOptions)));% =1 for images
    102107    CheckNc{iview}=~isempty(find(strcmp(FileType{iview},NcTypeOptions)));% =1 for netcdf files
    103108end
    104109
    105 %% Calibration data and timing: read the ImaDoc files
     110%% calibration data and timing: read the ImaDoc files
    106111mode=''; %default
    107112timecell={};
     
    321326                Field=Data{1};
    322327            end
     328           
     329            %field projection on an object
    323330            if Param.CheckObject
    324331                [Field,errormsg]=proj_field(Field,ProjObject);
     
    393400%%%%%%%%%%%%%%%% end loop on slices %%%%%%%%%%%%%%%%
    394401
    395 %% reproduce ImaDoc/GeometryCalib for image series
    396 % if isfield(XmlData{1},'GeometryCalib') && ~isempty(XmlData{1}.GeometryCalib)
    397 %     [tild,RootFile]=fileparts(filebase_out);
    398 %     outputxml=fullfile(pathdir,[RootFile '.xml']);
    399 %     errormsg=update_imadoc(XmlData{1}.GeometryCalib,outputxml);% introduce the calibration data in the xml file
    400 %     if strcmp(errormsg,'')
    401 %         display(['GeometryCalib transferred to ' outputxml])
    402 %     else
    403 %         msgbox_uvmat('ERROR',errormsg);
    404 %     end
    405 % end
    406 
    407 %% open the result file with uvmat
    408 hget_field=findobj(allchild(0),'name','get_field');%find the get_field... GUI
    409 delete(hget_field)
    410 uvmat(OutputFile)% open the last result file with uvmat
     402%% open the result file with uvmat (in RUN mode)
     403if checkrun
     404    hget_field=findobj(allchild(0),'name','get_field');%find the get_field... GUI
     405    delete(hget_field)
     406    uvmat(OutputFile)% open the last result file with uvmat
     407end
Note: See TracChangeset for help on using the changeset viewer.