Changeset 1024 for trunk/src/sub_field.m


Ignore:
Timestamp:
Dec 24, 2017, 9:50:18 AM (3 years ago)
Author:
sommeria
Message:

pb for reading images repaired

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sub_field.m

    r985 r1024  
    136136for ilist=1:numel(Field_1.VarAttribute)
    137137    % case of variable with a single dimension
    138     if ~isempty(Field_1.VarAttribute{ilist}) && ~isempty(regexp(Field_1.VarAttribute{ilist}.Role,'^coord'))% if variable with Role coord... is found.
     138    if ~isempty(Field_1.VarAttribute{ilist}) && isfield(Field_1.VarAttribute{ilist},'Role')&&~isempty(regexp(Field_1.VarAttribute{ilist}.Role,'^coord'))% if variable with Role coord... is found.
    139139        OldDimName=Field_1.VarDimName{ilist};
    140140        if ischar(OldDimName), OldDimName={OldDimName}; end% transform char string to cell if relevant
Note: See TracChangeset for help on using the changeset viewer.