Skip to content
Snippets Groups Projects
Commit 3eeb6bee authored by Laura Nervo's avatar Laura Nervo Committed by Nicola Vigano
Browse files

gtCrystCalculateReflections : fix small bug


Signed-off-by: default avatarLaura Nervo <laura.nervo@esrf.fr>

git-svn-id: https://svn.code.sf.net/p/dct/code/trunk@954 4c865b51-4357-4376-afb4-474e03ccb993
parent e9bd6b11
No related branches found
No related tags found
No related merge requests found
......@@ -58,13 +58,13 @@ disp(msg)
[C,Cmat] = gtReadTextFile([filename typelist '.txt'],'%f %f %f %f','\n','#',[1 3]);
hkl = Cmat(:,1:3);
sintheta = Cmat(:,4);
sinth = Cmat(:,4);
if nargout > 1
load parameters;
energy = parameters.acq.energy;
theta = asind(sintheta)*gtConvEnergyToWavelength(energy);
if nargout == 3
theta = asind(sinth)*gtConvEnergyToWavelength(energy);
if nargout > 2
% for planes with Miller Indexes hkl -> hkil
hkil = hkl;
hkil(:,4) = hkl(:,3);
......@@ -75,6 +75,9 @@ if nargout > 1
for ii=1:size(hkl,1)
fprintf('%3d %3d %3d %3d %7.3f\n',hkil(ii,:),theta(ii))
end
if nargout > 3
sintheta = sinth;
end
end
else
disp(' h k l sin(theta)/lambda')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment