Legend:
- Unmodified
- Added
- Removed
-
trunk/src/civ.m
r452 r461 4438 4438 4439 4439 function NomType_Callback(hObject, eventdata, handles) 4440 set(handles.RootPath,'BackgroundColor',[1 1 0])%paint RootName edit box in yellow to indicate that the file input is proceeding4441 RootPath=get(handles.RootPath,'String');4442 RootFile=get(handles.RootFile,'String');4443 ref_i=str2num(get(handles.ref_i,'String'));4444 ref_j=str2num(get(handles.ref_j,'String'));4445 NomType=get(handles.NomType,'String');4446 ImaExt=get(handles.ImaExt,'String');4447 fileinput=fullfile_uvmat(RootPath,'',RootFile,ImaExt,NomType,ref_i,[],ref_j);4448 errormsg=display_file_name(handles,fileinput);4449 if ~isempty(errormsg)4450 msgbox_uvmat('ERROR',errormsg)4451 end4452 set(handles.RootPath,'BackgroundColor',[1 1 1])%paint RootName back to white to indicate that the file input is finished4440 % set(handles.RootPath,'BackgroundColor',[1 1 0])%paint RootName edit box in yellow to indicate that the file input is proceeding 4441 % RootPath=get(handles.RootPath,'String'); 4442 % RootFile=get(handles.RootFile,'String'); 4443 % ref_i=str2num(get(handles.ref_i,'String')); 4444 % ref_j=str2num(get(handles.ref_j,'String')); 4445 % NomType=get(handles.NomType,'String'); 4446 % ImaExt=get(handles.ImaExt,'String'); 4447 % fileinput=fullfile_uvmat(RootPath,'',RootFile,ImaExt,NomType,ref_i,[],ref_j); 4448 % errormsg=display_file_name(handles,fileinput); 4449 % if ~isempty(errormsg) 4450 % msgbox_uvmat('ERROR',errormsg) 4451 % end 4452 % set(handles.RootPath,'BackgroundColor',[1 1 1])%paint RootName back to white to indicate that the file input is finished 4453 4453 4454 4454 % --- Executes on selection change in ListProgram. -
trunk/src/fill_GUI.m
r460 r461 4 4 %------------------------------------------------------------------------ 5 5 errormsg=''; 6 fields=fieldnames(Param); 6 fields=fieldnames(Param);%list of fields in Param 7 7 for ifield=1:numel(fields) 8 8 if isstruct(Param.(fields{ifield})) -
trunk/src/series.m
r460 r461 485 485 MaxIndex_i=max(find(i_sum>0))-1; 486 486 MinIndex_i=min(find(i_sum>0))-1; 487 if isequal(MinIndex_i,1) && exist (fullfile_uvmat(RootPath,SubDir,RootFile,FileExt,NomType,0,i2_series(2,2),j1_series(2,2),j2_series(2,2)),'file') 487 i2_min=[]; 488 if ~isempty(i2_series) 489 i2_min=i2_series(1,2); 490 end 491 j1_min=[]; 492 if ~isempty(j1_series) 493 j1_min=j1_series(1,2); 494 end 495 j2_min=[]; 496 if ~isempty(j2_series) 497 j2_min=j2_series(1,2); 498 end 499 if isequal(MinIndex_i,1) && exist (fullfile_uvmat(RootPath,SubDir,RootFile,FileExt,NomType,0,i2_min, j1_min,j2_min),'file') 488 500 MinIndex_i=0; 489 501 end … … 1367 1379 %------------------------------------------------------------------------ 1368 1380 % --- Main launch command, called by RUN and BATCH 1369 function [h_fun,Series,filexml,errormsg]=prepare_jobs(handles) 1370 %------------------------------------------------------------------------ 1381 function [h_fun,Series,filexml,errormsg]=prepare_jobs(handles,run) 1382 %------------------------------------------------------------------------ 1383 h_fun=[]; 1371 1384 filexml=''; 1372 1385 errormsg=''; 1386 if ~exist('run','var') 1387 run=1; 1388 end 1373 1389 %% Read parameters from series 1374 1390 Series=read_GUI(handles.series); … … 1425 1441 end 1426 1442 1443 if ~run 1444 return 1445 end 1446 1427 1447 %% defining the ActionName function handle 1428 1448 list_action=get(handles.ActionName,'String');% list menu action 1429 1449 index=get(handles.ActionName,'Value'); 1430 1450 action= list_action{index}; % selected string 1431 Series.Action=action;%name of the processing programme1451 %Series.Action=action;%name of the processing programme 1432 1452 Series.hseries=handles.series; % handles to the series GUI 1433 1453 path_series=which('series'); … … 1437 1457 eval(['spath=which(''' action ''');']) %spath = current path of the selected function ACTION 1438 1458 if ~exist(fct_path,'dir') 1439 errormsg=['The presc ibed function path ' fct_path ' does not exist'];1459 errormsg=['The prescribed function path ' fct_path ' does not exist']; 1440 1460 return 1441 1461 end … … 2287 2307 function MenuExportConfig_Callback(hObject, eventdata, handles) 2288 2308 global Series 2289 [tild,Series,errormsg]=prepare_jobs(handles );2309 [tild,Series,errormsg]=prepare_jobs(handles,0); 2290 2310 % Series=read_GUI(handles.series); 2291 2311
Note: See TracChangeset
for help on using the changeset viewer.