Changeset 580 for trunk/src/read_field.m


Ignore:
Timestamp:
Mar 7, 2013, 1:47:51 PM (12 years ago)
Author:
sommeria
Message:

bugs corrected for combining fields

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/read_field.m

    r576 r580  
    77% ParamOut: structure representing parameters:
    88%        .FieldName; field name
    9 %        .FieldList: menu of possible fields
    109%        .VelType
    1110%        .CivStage: stage of civx processing (=0, not Civx, =1 (civ1), =2  (fix1)....     
     
    131130if ~isempty(A)
    132131    if isstruct(ParamOut)
    133     ParamOut.FieldName='image';
    134     ParamOut.FieldList={'image'};
     132        ParamOut.FieldName='image';
    135133    end
    136134    Npz=1;%default
    137135    npxy=size(A);
    138 %     Rangx=[0.5 npxy(2)-0.5]; % coordinates of the first and last pixel centers
    139 %     Rangy=[npxy(1)-0.5 0.5]; %
     136    %     Rangx=[0.5 npxy(2)-0.5]; % coordinates of the first and last pixel centers
     137    %     Rangy=[npxy(1)-0.5 0.5]; %
    140138    Field.NbDim=2;%default
    141139    Field.AName='image';
     
    147145            Field.AX=[0.5 npxy(2)-0.5]; % coordinates of the first and last pixel centers
    148146            if isstruct(ParamOut)
    149             ParamOut.Npx=npxy(2);% display image size on the interface
    150             ParamOut.Npy=npxy(1);
     147                ParamOut.Npx=npxy(2);% display image size on the interface
     148                ParamOut.Npy=npxy(1);
    151149            end
    152150            Field.VarAttribute{3}.Mesh=1;
     
    159157            Field.AX=[0.5 npxy(3)-0.5]; % coordinates of the first and last pixel centers
    160158            if isstruct(ParamOut)
    161             ParamOut.Npx=npxy(3);% display image size on the interface
    162             ParamOut.Npy=npxy(2);
    163              end
     159                ParamOut.Npx=npxy(3);% display image size on the interface
     160                ParamOut.Npy=npxy(2);
     161            end
    164162            Field.VarAttribute{4}.Mesh=1;
    165163        end
Note: See TracChangeset for help on using the changeset viewer.