Changeset 1090 for trunk/src/uvmat.m


Ignore:
Timestamp:
Jan 21, 2021, 3:59:54 PM (3 years ago)
Author:
sommeria
Message:

system of mirror output path introduced, and series/sliding_average added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/uvmat.m

    r1088 r1090  
    468468end
    469469
     470% --------------------------------------------------------------------
     471function MenuBrowseOpendap_Callback(hObject, eventdata, handles)
     472    oldfile=get(hObject,'Label');
     473fileinput=uigetfile_uvmat('pick an input file',oldfile);
     474hh=dir(fileinput);
     475if numel(hh)>1
     476    msgbox_uvmat('ERROR','invalid input, probably a broken link');
     477else
     478
     479    %% display the selected field and related information
     480    if ~isempty(fileinput)
     481        set(handles.SubField,'Value',0)
     482        desable_subfield(handles)
     483        display_file_name(handles,fileinput)
     484    end
     485end
     486
    470487% -----------------------------------------------------------------------
    471488% --- Open again the file whose name has been recorded in MenuFile
     
    486503    end
    487504end
     505
     506
    488507
    489508% -----------------------------------------------------------------------
     
    21042123%% look for the input file existence
    21052124errormsg='';%default
    2106 if isempty(regexp(fileinput,'^http://')) && ~exist(fileinput,'file')
     2125if isempty(regexp(fileinput,'^http')) && ~exist(fileinput,'file')
    21072126    errormsg=['input file ' fileinput  ' does not exist'];
    21082127    msgbox_uvmat('ERROR',errormsg)
     
    22552274       
    22562275        %enable other menus
    2257         set(handles.MenuOpenCampaign,'Enable','on')
     2276%         set(handles.MenuOpenCampaign,'Enable','on')
    22582277        set(handles.MenuExport,'Enable','on')
    22592278        set(handles.MenuExportFigure,'Enable','on')
     
    63026321
    63036322
     6323
     6324
Note: See TracChangeset for help on using the changeset viewer.