Ignore:
Timestamp:
Jun 29, 2016, 8:36:44 PM (8 years ago)
Author:
sommeria
Message:

level + 3D projection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/find_file_series.m

    r961 r964  
    5656if isfield(FileInfo,'FileIndexing') && strcmp(FileInfo.FileIndexing,'on')
    5757    [RootPath,SubDir,RootFile,i1_input,i2_input,j1_input,j2_input,FileExt,NomType]=fileparts_uvmat(fullfileinput);
     58    if ~isempty(regexp(SubDir,'^level\d+$')) && exist([RootPath '.xml'],'file')
     59        NomType='level';
     60    end
    5861    i1_series=zeros(1,1,1);
    5962    i2_series=zeros(1,1,1);
     
    176179            cd (FilePath)% move to the local dir to save time in the operation dir.
    177180            dirpair=dir(star_string);% look for relevant files in the file directory
    178             cd(wd)
     181            cd(wd)% back to the working directory
    179182            nbpair=numel(dirpair);
    180183            i1_series=zeros(1,nbpair);
     
    190193            end
    191194            % look for the list of subfolders level#
    192             cd (fullfile(RootPath,SubDir))% move to the local dir to save time in the operation dir.
    193             dirpair=dir('level*');% look for relevant files in the file directory
     195            cd (RootPath)% move to the local dir to save time in the operation dir.
     196            dirpair=dir('level*');% look for relevant subfolders named with leve#
    194197            cd(wd)
     198            [RootPath,SubDir]=fileparts(RootPath);
    195199            nbpair=numel(dirpair);
    196200            jfile=0;
     
    202206                end
    203207            end
    204             [i1_series,j1_series]=meshgrid(i1_series,j1_series);
    205             i1_series=reshape(i1_series,1,[]);
    206             j1_series=reshape(j1_series,1,[]);
     208            [j1_series,i1_series]=meshgrid(j1_series,i1_series);
     209%             i1_series=reshape(i1_series,1,[]);
     210%             j1_series=reshape(j1_series,1,[]);
    207211        else
    208212            detect_string=['^' RootFile sep1 i1_str i2_str sep2 j1_str j2_str FileExt '$'];%string used in regexp to detect file indices
Note: See TracChangeset for help on using the changeset viewer.