Changeset 472 for trunk/src/read_civxdata.m
- Timestamp:
- Jun 25, 2012, 12:12:24 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/read_civxdata.m
r420 r472 53 53 DataTest=nc2struct(filename,'ListGlobalAttribute','Conventions','CivStage'); 54 54 if isfield(DataTest,'Txt') 55 errormsg= DataTest.Txt;55 errormsg=['nc2struct:' DataTest.Txt]; 56 56 return 57 57 elseif isequal(DataTest.Conventions,'uvmat/civdata')%test for new civ format 58 58 [Field,VelTypeOut,errormsg]=read_civdata(filename,FieldNames,VelType,DataTest.CivStage); 59 % if ~isempty(errormsg) 60 % msgbox_uvmat('ERROR',errormsg) 61 % end 59 if ~isempty(errormsg),errormsg=['read_civdata:' errormsg];end 62 60 return 63 61 end … … 79 77 [Field,vardetect,ichoice]=nc2struct(filename,var);%read the variables in the netcdf file 80 78 if isfield(Field,'Txt') 81 errormsg= Field.Txt;79 errormsg=['nc2struct:' Field.Txt]; 82 80 return 83 81 end
Note: See TracChangeset
for help on using the changeset viewer.