Changeset 517 for trunk/src/calc_field.m
- Timestamp:
- Aug 17, 2012, 11:47:16 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/calc_field.m
r515 r517 25 25 % varname_generator.m: determines the field names to read in the netcdf 26 26 % file, depending on the scalar 27 28 function [DataOut,errormsg]=calc_field(FieldList,DataIn,Coord_interp)27 function [FieldOptions,ColorList]=calc_field 28 %function [DataOut,errormsg]=calc_field(FieldList,DataIn,Coord_interp) 29 29 30 30 %list of defined scalars to display in menus (in addition to 'ima_cor'). … … 49 49 'w_normal';... %w velocity component normal to the plane 50 50 'error'}; %error associated to a vector (for stereo or patch) 51 errormsg=[]; %default error message 52 if ~exist('FieldList','var') 53 DataOut=FieldOptions;% gives the list of possible field inputs in the absence of input 54 return 55 end 56 51 ColorList={'C';...%image correlation corresponding to a vel vector 52 'norm(U,V)';...%norm of the velocity 53 'U';... %u velocity component 54 'V';... %v velocity component 55 } 56 % errormsg=[]; %default error message 57 % if ~exist('FieldList','var') 58 % DataOut=FieldOptions;% gives the list of possible field inputs in the absence of input 59 % return 60 % end 61 return 57 62 %% check input 58 63 if ~exist('DataIn','var')
Note: See TracChangeset
for help on using the changeset viewer.