Skip to content
Snippets Groups Projects
Commit 272d5261 authored by Peter Reischig's avatar Peter Reischig Committed by Nicola Vigano
Browse files

Corrected: uni.dang angles in degrees instead of radians.

parent bfd1239a
No related branches found
No related tags found
No related merge requests found
......@@ -22,10 +22,10 @@ function grain = gtIndexUniqueReflections(grain, dspref, energy)
% .plref - plane normals in reference crystal (unstrained,
% theoretical)
% .hklind - linear indices of the {hkl} families (=thetaype)
% .theta - theta Bragg angles
% .elo - elongations along 'pl'
% .dang - angular deviations (between two Friedel pairs)
% .dth - theta deviations (between two Friedel pairs)
% .theta - theta Bragg angles in degrees
% .elo - elongations (stretch) along 'pl' (dimensionless, around 1)
% .dang - angular deviations in degrees (between two Friedel pairs)
% .dth - theta deviations in degrees (between two Friedel pairs)
% .delo - elongation deviations (between two Friedel pairs)
lambda = gtConvEnergyToWavelength(energy);
......@@ -59,7 +59,7 @@ for ii = 1:length(grain)
uni.elo = (0.5*lambda./sind(uni.theta))./dspref(grain{ii}.hklind(i1));
uni.dang = gtMathsVectorsAnglesRad(grain{ii}.pl(:,i1), ...
uni.dang = gtMathsVectorsAnglesDeg(grain{ii}.pl(:,i1), ...
grain{ii}.pl(:,i2), 1);
%uni.dom = (grain{ii}.centimB - grain{ii}.centimA)*omstep - 180;
......
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