Ignore:
Timestamp:
Apr 30, 2018, 8:01:35 PM (3 years ago)
Author:
sommeria
Message:

miscellaneous updates

File:
1 edited

Legend:

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

    r1032 r1033  
    114114
    115115%% determine the file type on each line from the first input file
    116 ImageTypeOptions={'image','multimage','mmreader','video','cine_phantom'};
    117116NcTypeOptions={'netcdf','civx','civdata'};
    118117for iview=1:NbView
     
    123122    [FileInfo{iview},MovieObject{iview}]=get_file_info(filecell{iview,1});
    124123    FileType{iview}=FileInfo{iview}.FileType;
    125     CheckImage{iview}=~isempty(find(strcmp(FileType{iview},ImageTypeOptions)));% =1 for images
    126124    CheckNc{iview}=~isempty(find(strcmp(FileType{iview},NcTypeOptions)));% =1 for netcdf files
    127125    if ~isempty(j1_series{iview})
     
    153151 % EDIT FROM HERE
    154152
    155 %% check the validity of  input file types
    156 if CheckImage{1}
    157     FileExtOut='.png'; % write result as .png images for image inputs
    158 elseif CheckNc{1}
    159     FileExtOut='.nc';% write result as .nc files for netcdf inputs
    160 else
    161     msgbox_uvmat('ERROR',['invalid file type input ' FileType{1}])
    162     return
    163 end
    164 
    165 
    166153%% settings for the output file
     154FileExtOut='.nc';% write result as .nc files for netcdf inputs
    167155NomTypeOut=nomtype2pair(NomType{1});% determine the index nomenclature type for the output file
    168156first_i=i1_series{1}(1);
Note: See TracChangeset for help on using the changeset viewer.