Changeset 775 for trunk/src/get_field.m
- Timestamp:
- May 16, 2014, 8:40:58 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/get_field.m
r771 r775 66 66 67 67 %% enter input data 68 if ischar(filename) % input file name68 if ischar(filename) % input file name 69 69 set(handles.inputfile,'String',filename)% fill the input file name 70 Field=nc2struct(filename,[]);% reads the field structure, without the variables 71 else 72 'bad input to get_field' 70 [Field,tild,tild,errormsg]=nc2struct(filename,[]);% reads the field structure, without the variables 71 else 72 msgbox_uvmat('ERROR','get_field requires a file name as input')% display error message for input file reading 73 return 74 end 75 if ~isempty(errormsg) 76 msgbox_uvmat('ERROR',['get_field/nc2struct/' errormsg])% display error message for input file reading 77 return 78 end 79 if ~isfield(Field,'ListVarName') 80 msgbox_uvmat('ERROR',['no variable found in ' filename])% display error message for input file reading 81 return 73 82 end 74 83 if ~exist('ParamIn','var') 75 84 ParamIn=[]; 76 end77 if isfield(Field,'Txt')78 msgbox_uvmat('ERROR',['get_field/nc2struct/' Field.Txt])% display error message for input file reading79 return80 end81 if ~isfield(Field,'ListVarName')82 return83 85 end 84 86
Note: See TracChangeset
for help on using the changeset viewer.