source: trunk/src/set_field_list.m @ 769

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

corrections to be able to process image correlation in series

File size: 1.1 KB
RevLine 
[588]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:
[769]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
[588]8%
9% INPUT:
[769]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
[588]13%
14% FUNCTION related
15% varname_generator.m: determines the field names to read in the netcdf
16% file, depending on the scalar
[769]17
[588]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};...
[769]30if exist('CName','var') && ~isempty(CName)
[588]31    VecColorList=[{CName};VecColorList];
[769]32end
[588]33
34
Note: See TracBrowser for help on using the repository browser.