Euler to polar angles for levelsplot
Posted: Fri Apr 17, 2020 2:39 am
Hello,
Whereas
In the simple case of
Would that be correct?
What if
Maybe
Whereas
curry
and pepper
use the Euler angles of Exp.CrystalOrientation
to calculate properties along specific orientations, levelsplot
uses polar angles in Ori
.In the simple case of
Exp.MolFrame = [0 0 0]
, to transform the Euler angles of Exp.CrystalOrientation
to polar angles, I am using the following transformations:
Code: Select all
Rp = erot(Exp.CrystalOrientation)
v = Rp*[0; 0; 1]
[phi,theta] = vec2ang(v)
Ori=[phi,theta]
What if
Exp.MolFrame
is not zero?Maybe
levelsplot
could use the same Euler angles as curry
and pepper
in a future version, for better integration with the other functions?