Changeset 1033 for trunk/src/read_civdata.m
- Timestamp:
- Apr 30, 2018, 8:01:35 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/read_civdata.m
r1027 r1033 80 80 VelTypeOut=VelType; 81 81 errormsg=''; 82 if ~exist(FileName,'file')83 errormsg=['input file ' FileName ' does not exist'];84 return85 end86 82 if ischar(FieldNames), FieldNames={FieldNames}; end; 87 83 ProjModeRequest=''; … … 102 98 Data=nc2struct(FileName,'ListGlobalAttribute','CivStage'); 103 99 if isfield(Data,'Txt') 104 erro msg=['error in read_civdata: ' Data.Txt];100 errormsg=['error in read_civdata: ' Data.Txt]; 105 101 return 106 102 end … … 108 104 [varlist,role,VelTypeOut]=varcivx_generator(ProjModeRequest,VelType,Data.CivStage); 109 105 if isempty(varlist) 110 erro msg=['error in read_civdata: unknow velocity type ' VelType];106 errormsg=['error in read_civdata: unknow velocity type ' VelType]; 111 107 return 112 108 else
Note: See TracChangeset
for help on using the changeset viewer.