Changeset 420


Ignore:
Timestamp:
May 9, 2012, 11:03:37 PM (12 years ago)
Author:
sommeria
Message:

bugs corrected for series: error display in case of input error
;

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/read_civxdata.m

    r415 r420  
    4949function [Field,VelTypeOut,errormsg]=read_civxdata(filename,FieldNames,VelType)
    5050errormsg='';
     51Field=[];
     52VelTypeOut=[];
    5153DataTest=nc2struct(filename,'ListGlobalAttribute','Conventions','CivStage');
    5254if isfield(DataTest,'Txt')
  • trunk/src/series/aver_stat.m

    r394 r420  
    347347                    Data{iview}.CoordUnit='pixel';
    348348                elseif testcivx
    349                     [Data{iview},VelTypeOut]=read_civxdata(filename,FieldName,VelType);
     349                    [Data{iview},VelTypeOut,errormsg]=read_civxdata(filename,FieldName,VelType);
     350                    if ~isempty(errormsg)
     351                          msgbox_uvmat('ERROR',['error of input reading: ' errormsg])
     352                    return
     353                    end
    350354                else
    351355                    [Data{iview},var_detect]=nc2struct(filename,SubField.ListVarName); %read the corresponding input data
Note: See TracChangeset for help on using the changeset viewer.