Changeset 748 for trunk/src/nc2struct.m
- Timestamp:
- Apr 23, 2014, 4:57:58 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/nc2struct.m
r747 r748 183 183 end 184 184 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) 189 187 search_index=find(strcmp(ListVarName{iline,1},ListVarNameNetcdf),1);%look for the first variable name in the list of netcdf variables 190 188 if ~isempty(search_index) … … 206 204 ListVarName=[ListVarName {TimeVarName}]; 207 205 end 206 var_index=zeros(1,size(ListVarName,2));%default list of variable indices 208 207 for ivar=1:size(ListVarName,2) 209 208 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.