Changeset 581 for trunk/src/sub_field.m


Ignore:
Timestamp:
Mar 12, 2013, 12:52:13 PM (8 years ago)
Author:
sommeria
Message:

clean the transform field functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sub_field.m

    r580 r581  
    7575
    7676%% field request
    77 FieldRequest=cell(size(Field.ListVarName));
     77ProjModeRequest=cell(size(Field.ListVarName));
    7878for ilist=1:numel(Field.VarAttribute)
    79     if isfield(Field.VarAttribute{ilist},'FieldRequest')
    80         FieldRequest{ilist}=Field.VarAttribute{ilist}.FieldRequest;
     79    if isfield(Field.VarAttribute{ilist},'ProjModeRequest')
     80        ProjModeRequest{ilist}=Field.VarAttribute{ilist}.ProjModeRequest;
    8181    end
    8282end
    83 FieldRequest_1=cell(size(Field_1.ListVarName));
     83ProjModeRequest_1=cell(size(Field_1.ListVarName));
    8484for ilist=1:numel(Field_1.VarAttribute)
    85     if isfield(Field_1.VarAttribute{ilist},'FieldRequest')
    86         FieldRequest_1{ilist}=Field_1.VarAttribute{ilist}.FieldRequest;
     85    if isfield(Field_1.VarAttribute{ilist},'ProjModeRequest')
     86        ProjModeRequest_1{ilist}=Field_1.VarAttribute{ilist}.ProjModeRequest;
    8787    end
    8888end
     
    115115        VarVal=Field_1.(Field_1.ListVarName{ilist});
    116116        for i1=1:numel(Field.ListVarName)
    117             if (isempty(FieldRequest{i1})&&isempty(FieldRequest_1{ilist})||strcmp(FieldRequest{i1},FieldRequest_1{ilist})) && isequal(Field.(Field.ListVarName{i1}),VarVal)
     117            if (isempty(ProjModeRequest{i1})&&isempty(ProjModeRequest_1{ilist})||strcmp(ProjModeRequest{i1},ProjModeRequest_1{ilist})) && isequal(Field.(Field.ListVarName{i1}),VarVal)
    118118               ind_remove(ilist)=1;
    119119               NewDim=Field.VarDimName{i1};
Note: See TracChangeset for help on using the changeset viewer.