Changeset 748 for trunk/src/nc2struct.m


Ignore:
Timestamp:
Apr 23, 2014, 4:57:58 PM (10 years ago)
Author:
sommeria
Message:

update for 3D plots, panel Coordiantes introduces, while coordiantes now called Axes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/nc2struct.m

    r747 r748  
    183183        end
    184184        ListVarName=ListVarName(:,logical(check_keep));
    185         sizvar=size(ListVarName);
    186         var_index=zeros(1,sizvar(2));%default
    187         if sizvar(1)>1 %multiple choice of variable ranked by order of priority
    188             for iline=1:sizvar(1)
     185        if size(ListVarName,1)>1 %multiple choice of variable ranked by order of priority
     186            for iline=1:size(ListVarName,1)
    189187                search_index=find(strcmp(ListVarName{iline,1},ListVarNameNetcdf),1);%look for the first variable name in the list of netcdf variables
    190188                if ~isempty(search_index)
     
    206204            ListVarName=[ListVarName {TimeVarName}];
    207205        end
     206        var_index=zeros(1,size(ListVarName,2));%default list of variable indices
    208207        for ivar=1:size(ListVarName,2)
    209208            search_index=find(strcmp(ListVarName{iline,ivar},ListVarNameNetcdf),1);%look for the variable name in the list of netcdf file
Note: See TracChangeset for help on using the changeset viewer.