Changeset 537 for trunk/src/get_file_series.m
 Timestamp:
 Sep 3, 2012, 7:15:36 PM (12 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/src/get_file_series.m
r453 r537 41 41 if isempty(r) 42 42 r=regexp(Param.IndexRange.PairString{iview,1},'(?<num1>\d+)(?<mode>)(?<num2>\d+)','names'); 43 end 43 end 44 44 % TODO case of free pairs: 45 45 %r=regexp(pair_string,'.*\D(?<num1>[\d+*])(?<delim>[])(?<num2>[\d+*])','names'); … … 48 48 r(1).num1=''; 49 49 r(1).num2=''; 50 if strcmp(Param.IndexRange.PairString{iview,1},'j=**') 51 r(1).mode='**'; 52 else 50 53 r(1).mode=''; 54 end 51 55 end 52 [i1_series{iview},i2_series{iview},j1_series{iview},j2_series{iview}]=find_file_indices(ref_i,ref_j,str2num(r.num1),str2num(r.num2),r.mode); 56 if isequal(r(1).mode,'**')% free pairs 57 FilePath=fullfile(InputTable{iview,1},InputTable{iview,2}); 58 fileinput=[InputTable{iview,3} InputTable{iview,4} InputTable{iview,5}]; 59 [tild,tild,tild,i1_series{iview},i2_series{iview},j1_series{iview},j2_series{iview},NomType,FileType,MovieObject,i1_input,i2_input,j1_input,j2_input]=find_file_series(FilePath,fileinput); 60 i1_series{iview}=squeeze(i1_series{iview}(1,:,:)); %first pair index 61 check_select=i1_series{iview}>=first_i & i1_series{iview}<=last_i; 62 i1_series{iview}=i1_series{iview}(check_select); 63 i2_series{iview}=[]; %first pair index 64 j1_series{iview}=squeeze(j1_series{iview}(1,:,:)); %first pair index 65 j2_series{iview}=squeeze(j2_series{iview}(1,:,:)); %first pair index 66 j1_series{iview}=j1_series{iview}(check_select); 67 j2_series{iview}=j2_series{iview}(check_select); 68 else 69 [i1_series{iview},i2_series{iview},j1_series{iview},j2_series{iview}]=find_file_indices(ref_i,ref_j,str2num(r.num1),str2num(r.num2),r.mode); 70 end 71 53 72 %case of pairs (.nc files) 54 73 i2=[];j1=[];j2=[]; … … 64 83 j2=j2_series{iview}(ifile); 65 84 end 66 filecell{iview,ifile}=fullfile_uvmat(InputTable{iview,1},InputTable{iview,2},InputTable{iview,3},InputTable{iview,5},InputTable{iview,4}... 67 ,i1,i2,j1,j2); 85 filecell{iview,ifile}=fullfile_uvmat(InputTable{iview,1},InputTable{iview,2},InputTable{iview,3},InputTable{iview,5},InputTable{iview,4},i1,i2,j1,j2); 68 86 end 69 87 end
Note: See TracChangeset
for help on using the changeset viewer.