Changeset 392 for trunk/src/series
- Timestamp:
- Apr 24, 2012, 10:40:31 AM (13 years ago)
- Location:
- trunk/src/series
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/aver_stat.m
r381 r392 51 51 [filecell,i1_series,i2_series,j1_series,j2_series]=get_file_series(Param); 52 52 53 %% coordinate transform or other user defined transform (TODO: case BATCH ?)54 transform_fct='';%default55 if isfield(Param,'transform_fct') % transform function handle56 transform_fct=Param.transform_fct;57 end58 59 53 %% projection object 60 54 test_object=get(hseries.GetObject,'Value'); … … 63 57 %ProjObject=read_set_object(guidata(hset_object)); 64 58 ProjObject=read_GUI(hset_object); 65 %answeryes=questdlg({['field series projected on ' Series.ProjObject.Style]});66 59 answeryes=msgbox_uvmat('INPUT_Y-N',['field series projected on ' ProjObject.Style ' before averaging']); 67 60 if ~isequal(answeryes,'Yes') … … 138 131 %% number of slices 139 132 NbSlice=Param.IndexRange.NbSlice; 140 NbSlice_name=num2str(NbSlice);141 133 142 134 %% Field and velocity type (the same for the two views) … … 157 149 return 158 150 end 159 %hhget_field=guidata(hget_field);%handles of GUI elements in get_field160 151 SubField=read_get_field(hget_field); %read the names of the variables to plot in the get_field GUI 161 152 end … … 164 155 %% get the velocity type 165 156 testcivx=0; 166 % FileExt=get(hseries.FileExt,'String');167 157 if ~isequal(FieldName,{'get_field...'}) 168 158 testcivx=isequal(FileType{1},'netcdf'); … … 223 213 end 224 214 225 %% check coincidence in time 215 %% check coincidence in time for several input file series 226 216 multitime=0; 227 217 if isempty(timecell) … … 249 239 end 250 240 end 251 if size(time,2) < i2_series{1}(end) || size(time,3) < num_j2{1}(end)% ime array absent or too short in ImaDoc xml file'241 if size(time,2) < i2_series{1}(end) || size(time,3) < num_j2{1}(end)% time array absent or too short in ImaDoc xml file' 252 242 time=[]; 253 243 end … … 269 259 %NomTypeOut=nomtype2pair(Param.InputTable{1,4},i2_series{end}(end)-i1_series{1}(1),j2_series{end}(end)-j1_series{1}(1)); 270 260 NomTypeOut='_1-2'; 271 % RootPath,SubDir,RootFile,FileExt,NomType,i1,i2,j1,j2) 272 fileresult{1}=fullfile_uvmat(RootPath{1},subdir_result,RootFile{1},ext_out,NomTypeOut,i1_series{1}(1),[],[],[]); 273 % fileresult{1}=name_generator(filebase_out,i1_series{1}(1),j1_series{1}(1),ext_out,NomTypeOut,1,i2_series{end}(end),j2_series{end}(end),subdir_result); 261 fileresult{1}=fullfile_uvmat(RootPath{1},subdir_result,RootFile{1},ext_out,NomTypeOut,i1_series{1}(1),i1_series{1}(end),[],[]); 274 262 testexist=exist(fileresult{1},'file'); 275 263 else % simplified indexing with i_slice for multiple slices … … 277 265 for i_slice=1:NbSlice 278 266 fileresult{1}=fullfile_uvmat(RootPath{1},subdir_result,RootFile{1},ext_out,NomTypeOut,i_slice,[],[],[]); 279 %fileresult{i_slice}=name_generator(filebase_out,i_slice,[],ext_out,'_1',1,i_slice,[],subdir_result);280 267 if exist(fileresult{i_slice},'file') 281 268 testexist=1; … … 303 290 %% coordinate transform or other user defined transform 304 291 transform_fct='';%default 305 if isfield(Param,'FieldTransform')&&isfield(Param.FieldTransform,' transform_fct')306 transform_fct=Param.FieldTransform. transform_fct;292 if isfield(Param,'FieldTransform')&&isfield(Param.FieldTransform,'fct_handle') 293 transform_fct=Param.FieldTransform.fct_handle; 307 294 end 308 295 … … 329 316 % reading input file(s) 330 317 for iview=1:nbview 331 % [filename]=...332 % name_generator(filebase{iview},num_i1{iview}(ifile),num_j1{iview}(ifile),FileExt{iview},NomType{iview},1,num_i2{iview}(ifile),j2_series{iview}(ifile),SubDir{iview});333 318 filename=filecell{iview,index}; 334 319 if ~isequal(FileType{iview},'netcdf') … … 442 427 end 443 428 if isempty(time) % time read from files prevails 444 time_end=[];445 429 if isfield(Field,'Time') 446 430 time_end=Field.Time(1);%last time read … … 490 474 %% reproduce ImaDoc/GeometryCalib for image series 491 475 if isfield(XmlData{1},'GeometryCalib') && ~isempty(XmlData{1}.GeometryCalib) 492 [ pp,RootFile]=fileparts(filebase_out);493 outputxml=fullfile(pathdir,[RootFile '.xml']) 476 [tild,RootFile]=fileparts(filebase_out); 477 outputxml=fullfile(pathdir,[RootFile '.xml']); 494 478 errormsg=update_imadoc(XmlData{1}.GeometryCalib,outputxml);% introduce the calibration data in the xml file 495 479 if strcmp(errormsg,'') -
trunk/src/series/time_series.m
r381 r392 43 43 [filecell,i1_series,i2_series,j1_series,j2_series]=get_file_series(Param); 44 44 45 46 %% coordinate transform or other user defined transform (TODO: case BATCH ?) 45 %% coordinate transform or other user defined transform 47 46 transform_fct='';%default 48 if isfield(Param,' transform_fct') % transform function handle49 transform_fct=Param. transform_fct;47 if isfield(Param,'FieldTransform')&&isfield(Param.FieldTransform,'fct_handle') 48 transform_fct=Param.FieldTransform.fct_handle; 50 49 end 51 50
Note: See TracChangeset
for help on using the changeset viewer.