Changeset 580 for trunk/src/read_field.m
- Timestamp:
- Mar 7, 2013, 1:47:51 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/read_field.m
r576 r580 7 7 % ParamOut: structure representing parameters: 8 8 % .FieldName; field name 9 % .FieldList: menu of possible fields10 9 % .VelType 11 10 % .CivStage: stage of civx processing (=0, not Civx, =1 (civ1), =2 (fix1).... … … 131 130 if ~isempty(A) 132 131 if isstruct(ParamOut) 133 ParamOut.FieldName='image'; 134 ParamOut.FieldList={'image'}; 132 ParamOut.FieldName='image'; 135 133 end 136 134 Npz=1;%default 137 135 npxy=size(A); 138 % Rangx=[0.5 npxy(2)-0.5]; % coordinates of the first and last pixel centers139 % 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]; % 140 138 Field.NbDim=2;%default 141 139 Field.AName='image'; … … 147 145 Field.AX=[0.5 npxy(2)-0.5]; % coordinates of the first and last pixel centers 148 146 if isstruct(ParamOut) 149 ParamOut.Npx=npxy(2);% display image size on the interface150 ParamOut.Npy=npxy(1);147 ParamOut.Npx=npxy(2);% display image size on the interface 148 ParamOut.Npy=npxy(1); 151 149 end 152 150 Field.VarAttribute{3}.Mesh=1; … … 159 157 Field.AX=[0.5 npxy(3)-0.5]; % coordinates of the first and last pixel centers 160 158 if isstruct(ParamOut) 161 ParamOut.Npx=npxy(3);% display image size on the interface162 ParamOut.Npy=npxy(2);163 159 ParamOut.Npx=npxy(3);% display image size on the interface 160 ParamOut.Npy=npxy(2); 161 end 164 162 Field.VarAttribute{4}.Mesh=1; 165 163 end
Note: See TracChangeset
for help on using the changeset viewer.