Changeset 782 for trunk/src/read_field.m


Ignore:
Timestamp:
Jun 3, 2014, 8:10:03 PM (10 years ago)
Author:
sommeria
Message:

AX and AY changed to Coord_x and Coord_y

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/read_field.m

    r769 r782  
    234234    Field.NbDim=2;%default
    235235    Field.AName='image';
    236     Field.ListVarName={'AY','AX','A'}; %
     236    Field.ListVarName={'Coord_y','Coord_x','A'}; %
    237237    if ndims(A)==3
    238238        if Npz==1;%color
    239             Field.VarDimName={'AY','AX',{'AY','AX','rgb'}}; %
    240             Field.AY=[npxy(1)-0.5 0.5];
    241             Field.AX=[0.5 npxy(2)-0.5]; % coordinates of the first and last pixel centers
     239            Field.VarDimName={'Coord_y','Coord_x',{'Coord_y','Coord_x','rgb'}}; %
     240            Field.Coord_y=[npxy(1)-0.5 0.5];
     241            Field.Coord_x=[0.5 npxy(2)-0.5]; % coordinates of the first and last pixel centers
    242242            if isstruct(ParamOut)
    243243                ParamOut.Npx=npxy(2);% display image size on the interface
     
    248248            Field.NbDim=3;
    249249            Field.ListVarName=['AZ' Field.ListVarName];
    250             Field.VarDimName={'AZ','AY','AX',{'AZ','AY','AX'}};
     250            Field.VarDimName={'AZ','Coord_y','Coord_x',{'AZ','Coord_y','Coord_x'}};
    251251            Field.AZ=[npxy(1)-0.5 0.5];
    252             Field.AY=[npxy(2)-0.5 0.5];
    253             Field.AX=[0.5 npxy(3)-0.5]; % coordinates of the first and last pixel centers
     252            Field.Coord_y=[npxy(2)-0.5 0.5];
     253            Field.Coord_x=[0.5 npxy(3)-0.5]; % coordinates of the first and last pixel centers
    254254            if isstruct(ParamOut)
    255255                ParamOut.Npx=npxy(3);% display image size on the interface
     
    259259        end
    260260    else
    261         Field.VarDimName={'AY','AX',{'AY','AX'}}; %
    262         Field.AY=[npxy(1)-0.5 0.5];
    263         Field.AX=[0.5 npxy(2)-0.5]; % coordinates of the first and last pixel centers
     261        Field.VarDimName={'Coord_y','Coord_x',{'Coord_y','Coord_x'}}; %
     262        Field.Coord_y=[npxy(1)-0.5 0.5];
     263        Field.Coord_x=[0.5 npxy(2)-0.5]; % coordinates of the first and last pixel centers
    264264        ParamOut.Npx=npxy(2);% display image size on the interface
    265265        ParamOut.Npy=npxy(1);
Note: See TracChangeset for help on using the changeset viewer.