Changeset 42 for trunk/src/proj_field.m


Ignore:
Timestamp:
Mar 10, 2010, 7:43:51 PM (14 years ago)
Author:
sommeria
Message:

-proj_field, plot_field, civ_3D: bug repair for 3D3C velocity fields (not finished)
-check_function: introduce try/catch for function datenum (error with french systems)
-cleaning of warndlg_uvmat in different fcts (replaced by msgbox_uvmat)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/proj_field.m

    r38 r42  
    11241124        % different cases of projection
    11251125        if isequal(ObjectData.ProjMode,'projection')
    1126             ProjData.ListDimName=[ProjData.ListDimName FieldData.ListDimName(DimIndices(1))];%add the point index to the list of dimensions
     1126            %ProjData.ListDimName=[ProjData.ListDimName
     1127            %FieldData.ListDimName(DimIndices(1))];%add the point index to
     1128            %the list of dimension
     1129            ProjData.ListDimName=[ProjData.ListDimName FieldData.VarDimName(VarIndex(1))];%add the point index to the list of dimensions
    11271130            ProjData.DimValue=[ProjData.DimValue length(coord_X)];
    11281131            nbvar=0;
     
    11381141                if isempty(ivar_Z) || ivar~=ivar_Z
    11391142                    ProjData.ListVarName=[ProjData.ListVarName VarName];
    1140                     ProjData.VarDimIndex=[ProjData.VarDimIndex DimIndices(1)];
     1143                    ProjData.VarDimName=[ProjData.VarDimName DimCell];
    11411144                    nbvar=nbvar+1;
    11421145                    if isfield(FieldData,'VarAttribute') & length(FieldData.VarAttribute) >=ivar
     
    12261229        VarName=FieldData.ListVarName{VarIndex(1)};
    12271230        eval(['DimValue=size(FieldData.' VarName ');'])
    1228         ListDimName=FieldData.ListDimName(DimIndices);
     1231       
     1232        %ListDimName=FieldData.ListDimName(DimIndices);
     1233        ListDimName=FieldData.VarDimName{VarIndex(1)};
    12291234        ProjData.ListVarName=[{AYName} {AXName} ProjData.ListVarName]; %TODO: check if it already exists in Projdata (several cells)
    12301235        ProjData.VarDimName=[{AYName} {AXName} ProjData.VarDimName];
Note: See TracChangeset for help on using the changeset viewer.