Ignore:
Timestamp:
Dec 11, 2017, 1:15:03 AM (7 years ago)
Author:
sommeria
Message:

opendap reading intreoduced

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/fullfile_uvmat.m

    r977 r1022  
    9393
    9494%% look for NomType with pairs (separator '-' or terminasion ab or AB
    95 if strcmp(NomType,'level')% organisation with a sub-folder for the files of each index i
    96     filename=fullfile(RootPath,SubDir,['level' num2str(j1)],[RootFile num2str(i1) FileExt]);
    97 else
     95% if strcmp(NomType,'level')% organisation with a sub-folder for the files of each index i
     96%     filename=fullfile(RootPath,SubDir,['level' num2str(j1)],[RootFile num2str(i1) FileExt]);
     97% else
    9898    if ~isempty(regexp(NomType,'^_\d'))
    9999        sep1='_';
     
    136136        end
    137137    end
     138    if isempty(regexp(RootPath,'^http://'))
    138139    filename=fullfile(RootPath,SubDir,RootFile);
     140    else
     141        filename=[RootPath '/' SubDir '/' RootFile];
     142    end
    139143    filename=[filename sep1 i1_str sep2 i2_str sep3 j1_str sep4 j2_str];
    140144    filename=[regexprep(filename,'_$','') FileExt];%suppress possible '_' at the end of the string and add the extension
    141 end
     145% end
    142146
    143147function test
Note: See TracChangeset for help on using the changeset viewer.