Ignore:
Timestamp:
Jan 29, 2012, 2:31:56 PM (12 years ago)
Author:
sommeria
Message:

reading of civ data, new format, improved: bugs for reading u and v repairedd

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/read_civxdata.m

    r247 r380  
    4949function [Field,VelTypeOut,errormsg]=read_civxdata(filename,FieldNames,VelType)
    5050errormsg='';
    51 DataTest=nc2struct(filename,'ListGlobalAttribute','Conventions');
     51DataTest=nc2struct(filename,'ListGlobalAttribute','Conventions','CivStage');
    5252if isfield(DataTest,'Txt')
    53     errormsg=DataTest.Txt;   
     53    errormsg=DataTest.Txt;
     54    return
    5455elseif isequal(DataTest.Conventions,'uvmat/civdata')%test for new civ format
    55      [Field,VelTypeOut]=read_civdata(filename,FieldNames,VelType);
     56     [Field,VelTypeOut,errormsg]=read_civdata(filename,FieldNames,VelType,DataTest.CivStage);
     57%      if ~isempty(errormsg)
     58%          msgbox_uvmat('ERROR',errormsg)
     59%      end
    5660     return
    5761end
Note: See TracChangeset for help on using the changeset viewer.