Changeset 747 for trunk/src/read_field.m
- Timestamp:
- Apr 22, 2014, 9:44:39 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/read_field.m
r693 r747 36 36 errormsg=''; 37 37 if ~exist(FileName,'file') 38 erro msg=['input file ' FileName ' does not exist'];38 errormsg=['input file ' FileName ' does not exist']; 39 39 return 40 40 end … … 92 92 end 93 93 else % an operator 'vec' or 'norm' is used 94 %Operator=r.Operator;95 94 if ~check_colorvar(ilist) && strcmp(r.Operator,'norm') 96 95 ProjModeRequestVar='interp_lin';%scalar field (requires interpolation for plot) … … 121 120 end 122 121 if isfield(ParamIn,'TimeDimName')% case of reading of a single time index in a multidimensional array 123 [Field,var_detect,ichoice]=nc2struct(FileName,'TimeDimName',ParamIn.TimeDimName,num,[ParamIn.Coord_x (ParamIn.Coord_y) ListVar]); 124 else 125 [Field,var_detect,ichoice]=nc2struct(FileName,[ParamIn.Coord_x (ParamIn.Coord_y) ListVar]); 126 end 127 if isfield(Field,'Txt') 128 errormsg=Field.Txt; 122 [Field,var_detect,ichoice,errormsg]=nc2struct(FileName,'TimeDimName',ParamIn.TimeDimName,num,[ParamIn.Coord_x (ParamIn.Coord_y) ListVar]); 123 elseif isfield(ParamIn,'TimeVarName')% case of reading of a single time in a multidimensional array 124 [Field,var_detect,ichoice,errormsg]=nc2struct(FileName,'TimeVarName',ParamIn.TimeVarName,num,[ParamIn.Coord_x (ParamIn.Coord_y) ListVar]); 125 else 126 [Field,var_detect,ichoice,errormsg]=nc2struct(FileName,[ParamIn.Coord_x (ParamIn.Coord_y) (ParamIn.Coord_z) ListVar]); 127 end 128 if ~isempty(errormsg) 129 129 return 130 130 end
Note: See TracChangeset
for help on using the changeset viewer.