Changeset 329 for trunk/src/proj_field.m


Ignore:
Timestamp:
Dec 10, 2011, 2:24:45 PM (13 years ago)
Author:
sommeria
Message:

bugs repaired in series, default size of view_field changed. ';' added in proj_field

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/proj_field.m

    r258 r329  
    171171[ProjData,errormsg]=proj_heading(FieldData,ObjectData);
    172172ProjData.NbDim=0;
    173 %ProjData.ListDimName= {'nb_points'};
    174 %ProjData.DimValue=siz(1);  %nbre of projection points 
    175 
    176 
    177 % idimvar=0;
    178 [CellVarIndex,NbDimCell,VarTypeCell,errormsg]=find_field_indices(FieldData)
     173[CellVarIndex,NbDimCell,VarTypeCell,errormsg]=find_field_indices(FieldData);
    179174if ~isempty(errormsg)
    180175    errormsg=['error in proj_field/proj_points:' errormsg];
     
    182177end
    183178%LOOP ON GROUPS OF VARIABLES SHARING THE SAME DIMENSIONS
    184 % CellVarIndex=cells of variable index arrays
    185 % ivar_new=0; % index of the current variable in the projected field
    186 % icoord=0;
    187179for icell=1:length(CellVarIndex)
    188180    if NbDimCell(icell)==1
     
    194186    ivar_Y=VarType.coord_y;
    195187    ivar_Z=VarType.coord_z;
    196 %     ivar_U=VarType.vector_x;
    197 %     ivar_V=VarType.vector_y;
    198 %     ivar_W=VarType.vector_z;
    199 %     ivar_C=VarType.scalar ;
    200188    ivar_Anc=VarType.ancillary;
    201 %     test_anc=zeros(size(VarIndex));
    202189    test_anc(ivar_Anc)=ones(size(ivar_Anc));
    203190    ivar_F=VarType.warnflag;
     
    205192    VarIndex([ivar_X ivar_Y ivar_Z ivar_Anc ivar_F ivar_FF])=[];% not projected variables removed frlom list
    206193    if isempty(ivar_X)
    207         test_grid=1;%test for input data on regular grid (e.g. image)coordinates
    208      
     194        test_grid=1;%test for input data on regular grid (e.g. image)coordinates     
    209195    else
    210196        if length(ivar_X)>1 || length(ivar_Y)>1 || length(ivar_Z)>1
Note: See TracChangeset for help on using the changeset viewer.