Changeset 517 for trunk/src/calc_field.m


Ignore:
Timestamp:
Aug 17, 2012, 11:47:16 PM (12 years ago)
Author:
sommeria
Message:

various bugs corrected. get_field now used in a passive way from uvmat: variable names are transferred from get_field to uvmat.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/calc_field.m

    r515 r517  
    2525% varname_generator.m: determines the field names to read in the netcdf
    2626% file, depending on the scalar
    27 
    28 function [DataOut,errormsg]=calc_field(FieldList,DataIn,Coord_interp)
     27function [FieldOptions,ColorList]=calc_field
     28%function [DataOut,errormsg]=calc_field(FieldList,DataIn,Coord_interp)
    2929
    3030%list of defined scalars to display in menus (in addition to 'ima_cor').
     
    4949    'w_normal';... %w velocity component normal to the plane
    5050    '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 
     51ColorList={'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
     61return
    5762%% check input
    5863if ~exist('DataIn','var')
Note: See TracChangeset for help on using the changeset viewer.