source: trunk/src/open_uvmat.m @ 418

Last change on this file since 418 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
8function open_uvmat(hObject, eventdata)
9%------------------------------------------------------------------------
10list=get(hObject,'String');
11index=get(hObject,'Value');
12rootroot=get(hObject,'UserData');
13filename=list{index};
14ind_dot=strfind(filename,'...');
15if ~isempty(ind_dot)
16filename=filename(1:ind_dot-1);
17end
18filename=fullfile(rootroot,filename);
19if 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
23end
Note: See TracBrowser for help on using the repository browser.