source: trunk/src/open_uvmat.m @ 343

Last change on this file since 343 was 343, checked in by sommeria, 9 years ago

-bugs repaired in civ
-change in find_file_series to account for possible file index 0
-name2display suppressed in all functions, replaced by fileparts_uvmat (except incorporated in civ_3D)
-open_uvmat introduced to open files from a list

File size: 722 bytes
Line 
1%------------------------------------------------------------------------   
2% open with uvmat the  field selected in the list of 'civ/status' or 'series/check_data_files'
3function open_uvmat(hObject, eventdata)
4%------------------------------------------------------------------------
5list=get(hObject,'String');
6index=get(hObject,'Value');
7rootroot=get(hObject,'UserData');
8filename=list{index};
9ind_dot=strfind(filename,'...');
10if ~isempty(ind_dot)
11filename=filename(1:ind_dot-1);
12end
13filename=fullfile(rootroot,filename);
14if exist(filename,'file')%visualise the vel field if it exists
15    uvmat(filename)
16    set(gcbo,'Value',1)
17    delete(get(hObject,'parent'))%delete the display figure to stop the check process
18end
Note: See TracBrowser for help on using the repository browser.