source: trunk/src/set_field_list.m @ 773

Last change on this file since 773 was 769, checked in by sommeria, 11 years ago

corrections to be able to process image correlation in series

File size: 1.1 KB
Line 
1%'set_field_list': defines variables needed for the diff fields(velocity, vort, div...)
2%---------------------------------------------------------------------
3% [FieldList,VecColorList]=set_field_list(UName,VName,CName)
4%
5% OUTPUT:
6% FieldList: list (cell column) of the fields to propose in the menu FieldName
7% VecColorList: list (cell column) of the fields to propose in the menu for vector color
8%
9% INPUT:
10% UName: name of the x vector component
11% VName: name of the y vector component
12% CName: name of an additional scalar for color
13%
14% FUNCTION related
15% varname_generator.m: determines the field names to read in the netcdf
16% file, depending on the scalar
17
18function [FieldList,VecColorList]=set_field_list(UName,VName,CName)
19
20FieldList={['vec(' UName ',' VName ')'];...
21    ['norm(' UName ',' VName ')'];...
22    ['curl(' UName ',' VName ')'];...
23    ['div(' UName ',' VName ')'];...
24    ['strain(' UName ',' VName ')'];...
25    UName;...
26    VName};
27VecColorList={['norm(' UName ',' VName ')'];...
28    UName;...
29    VName};...
30if exist('CName','var') && ~isempty(CName)
31    VecColorList=[{CName};VecColorList];
32end
33
34
Note: See TracBrowser for help on using the repository browser.