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 |
|
---|
18 | function [FieldList,VecColorList]=set_field_list(UName,VName,CName)
|
---|
19 |
|
---|
20 | FieldList={['vec(' UName ',' VName ')'];...
|
---|
21 | ['norm(' UName ',' VName ')'];...
|
---|
22 | ['curl(' UName ',' VName ')'];...
|
---|
23 | ['div(' UName ',' VName ')'];...
|
---|
24 | ['strain(' UName ',' VName ')'];...
|
---|
25 | UName;...
|
---|
26 | VName};
|
---|
27 | VecColorList={['norm(' UName ',' VName ')'];...
|
---|
28 | UName;...
|
---|
29 | VName};...
|
---|
30 | if exist('CName','var') && ~isempty(CName)
|
---|
31 | VecColorList=[{CName};VecColorList];
|
---|
32 | end
|
---|
33 |
|
---|
34 |
|
---|