Ignore:
Timestamp:
May 1, 2018, 4:31:01 PM (3 years ago)
Author:
sommeria
Message:

miscellaneous adaptations to opendap

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/browse_data.m

    r1027 r1037  
    8787
    8888%% initialize the GUI
    89 if ~(exist('DataSeries','var') && ischar(DataSeries) && exist(DataSeries,'dir'))
     89if isempty(regexp(DataSeries,'^http:'))&& ~(exist('DataSeries','var') && ischar(DataSeries) && exist(DataSeries,'dir'))
    9090    DataSeries=pwd;% current dir is the starting data series by default
    9191end
     
    210210%------------------------------------------------------------------------
    211211errormsg='';
    212 if exist(Campaign,'dir')
    213     ListStruct=dir(Campaign); %list files and dirs
     212if ~isempty(regexp(Campaign,'^http'))|| exist(Campaign,'dir')
     213    ListStruct=dir_uvmat(Campaign); %list files and dirs
    214214    if numel(ListStruct)>1000% A campaign folder must contain maily a list of 'experiment' sub-folders
    215215        errormsg=[Campaign ' contains too many items (>1000) to be a Campaign folder'];
Note: See TracChangeset for help on using the changeset viewer.