- Timestamp:
- Mar 29, 2012, 4:50:42 PM (13 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/check_field_structure.m
r382 r385 115 115 else % DimName is detected in the current list of dimension names 116 116 if ~isequal(Data.DimValue(iprev),sizvar(idim)) 117 Data.DimValue(iprev)118 sizvar(idim)119 117 if isequal(Data.DimValue(iprev),2)&& RangeTest(iprev) % the dimension has been already detected as a range [min max] 120 118 Data.DimValue(iprev)=sizvar(idim); %update with actual value -
trunk/src/find_file_series.m
r384 r385 67 67 NomTypePref=''; 68 68 RootFileNew=RootFile; 69 if ~isempty(regexp(NomType,['^_'])) 70 NomTypePref='_'; 71 RootFileNew=[RootFileNew '_']; 72 end 73 r=regexp(NomType,['^' NomTypePref '(?<num1>\d+)'],'names');%look for a number at the beginning of NomTypeSt 69 % if ~isempty(regexp(NomType,['^_'])) 70 % NomTypePref='_'; 71 % RootFileNew=[RootFileNew '_']; 72 % end RootPath=''; 73 r=regexp(NomType,'^(?<tiretnum>_?\d+)','names');%look for a number or _1 at the beginning of NomType 74 % r=regexp(NomType,['^' NomTypePref '(?<num1>\d+)'],'names');%look for a number at the beginning of NomTypeSt 74 75 if ~isempty(r) 75 NomTypePref= [NomTypePref r.num1];76 NomTypePref=r.tiretnum; 76 77 fileinput_end=regexprep(fileinput,['^' RootFileNew],''); 77 78 r=regexp(fileinput_end,'^(?<num1>\d+)','names'); … … 85 86 j1_input=[]; 86 87 j2_input=[]; 88 else 89 NomTypePref=''; 87 90 end 88 91 end … … 154 157 ref_j_list=zeros(1,nbpair); 155 158 if nbpair==0% no detected file 156 RootPath='';159 % RootPath=''; 157 160 RootFile=''; 158 161 end … … 223 226 [tild,ifile_min]=min(ref_ij(ref_ij>0)); 224 227 if isempty(ifile_min) 225 RootPath='';228 % RootPath=''; 226 229 RootFile=''; 227 230 NomType='';
Note: See TracChangeset
for help on using the changeset viewer.