Changeset 188 for trunk/src/nc2struct.m


Ignore:
Timestamp:
Feb 2, 2011, 1:22:05 AM (14 years ago)
Author:
sommeria
Message:

various bug repairs and cleaning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/nc2struct.m

    r150 r188  
    103103        indstr1=regexp(keystr,'\\','once');%detect '\\'
    104104        indstr2=regexp(keystr,'\.','once');%detect '\.'
    105         if isempty(indstr1) && isempty(indstr2)
     105        %indtitle=regexp(keystr,'title','once');%detect 'title'(bad characters)
     106        if isempty(indstr1) && isempty(indstr2)%&&isempty(indtitle)
    106107           valuestr = netcdf.getAtt(nc,netcdf.getConstant('NC_GLOBAL'),keystr);
    107            if ischar(valuestr) && length(valuestr)<200
     108           if ischar(valuestr) & length(valuestr)<200 & double(valuestr)<=122 & double(valuestr)>=48 %usual characters
    108109                iatt_g=iatt_g+1;
    109110                indstr1=regexp(keystr,'\\','once');%detect '\\'
Note: See TracChangeset for help on using the changeset viewer.