Changeset 520 for trunk/src/read_field.m


Ignore:
Timestamp:
Aug 18, 2012, 12:51:28 AM (12 years ago)
Author:
sommeria
Message:

new bugs corrected

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/read_field.m

    r517 r520  
    4545%             ParamOut.FieldName='velocity';%Civx data found, set .FieldName='velocity' by default
    4646%                         ParamOut.ColorVar='ima_cor';
     47                        if isfield(ParamIn,'ColorVar')
    4748                        InputField=[{ParamIn.FieldName} {ParamIn.ColorVar}];
     49                        else
     50                           InputField= {ParamIn.FieldName};
     51                        end
    4852                        [Field,ParamOut.VelType,errormsg]=read_civdata(FileName,InputField,ParamIn.VelType);
    4953                        if ~isempty(errormsg),errormsg=['read_civdata:' errormsg];return,end
     
    5155         case 'civx'
    5256            ParamOut.FieldName='velocity';%Civx data found, set .FieldName='velocity' by default
    53                         ParamOut.ColorVar='ima_cor';
    54                         InputField=[{ParamOut.FieldName} {ParamOut.ColorVar}];
     57                       % ParamOut.ColorVar='ima_cor';
     58                       if isfield(ParamIn,'ColorVar')
     59                        InputField=[{ParamIn.FieldName} {ParamIn.ColorVar}];
     60                        else
     61                           InputField= {ParamIn.FieldName};
     62                        end
    5563                        [Field,ParamOut.VelType]=read_civxdata(FileName,InputField,ParamIn.VelType);
    5664                        if ~isempty(errormsg),errormsg=['read_civxdata:' errormsg];return,end
Note: See TracChangeset for help on using the changeset viewer.