Last change
on this file since 352 was
343,
checked in by sommeria, 13 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' |
---|
3 | function open_uvmat(hObject, eventdata) |
---|
4 | %------------------------------------------------------------------------ |
---|
5 | list=get(hObject,'String'); |
---|
6 | index=get(hObject,'Value'); |
---|
7 | rootroot=get(hObject,'UserData'); |
---|
8 | filename=list{index}; |
---|
9 | ind_dot=strfind(filename,'...'); |
---|
10 | if ~isempty(ind_dot) |
---|
11 | filename=filename(1:ind_dot-1); |
---|
12 | end |
---|
13 | filename=fullfile(rootroot,filename); |
---|
14 | if 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 |
---|
18 | end |
---|
Note: See
TracBrowser
for help on using the repository browser.