Last change
on this file since 405 was
356,
checked in by sommeria, 13 years ago
|
civ updated with new functions for opening files, consistently with uvmat
Bugs to be expected (use previous version then)
|
File size:
867 bytes
|
Line | |
---|
1 | % 'open_uvmat': open with uvmat the field selected in the list of 'civ/status' or 'series/check_data_files' |
---|
2 | %------------------------------------------------------------------------ |
---|
3 | %function open_uvmat(hObject, eventdata) |
---|
4 | % |
---|
5 | % INPUT: |
---|
6 | % hObject: handle of uicontrol object containing the list |
---|
7 | % eventdata: not used |
---|
8 | function open_uvmat(hObject, eventdata) |
---|
9 | %------------------------------------------------------------------------ |
---|
10 | list=get(hObject,'String'); |
---|
11 | index=get(hObject,'Value'); |
---|
12 | rootroot=get(hObject,'UserData'); |
---|
13 | filename=list{index}; |
---|
14 | ind_dot=strfind(filename,'...'); |
---|
15 | if ~isempty(ind_dot) |
---|
16 | filename=filename(1:ind_dot-1); |
---|
17 | end |
---|
18 | filename=fullfile(rootroot,filename); |
---|
19 | if exist(filename,'file')%visualise the vel field if it exists |
---|
20 | uvmat(filename) |
---|
21 | set(gcbo,'Value',1) |
---|
22 | delete(get(hObject,'parent'))%delete the display figure to stop the check process |
---|
23 | end |
---|
Note: See
TracBrowser
for help on using the repository browser.