paramagpy.metal.unique_eulers

paramagpy.metal.unique_eulers(eulers)[source]

Calculate Euler angles in unique tensor representation.

Given general Euler angles by ZYZ convention, this function accounts for the symmetry of a second rank symmetric tensor to map all angles within the range [0, pi].

Parameters

eulers (array of float) – the three Euler angles in radians

Returns

eulers_utr – the euler angles [alpha,beta,gamma] in radians by ZYZ convention

Return type

array of floats

Examples

>>> eulers = np.array([-5.2,10.3,0.1])
>>> unique_eulers(eulers)
np.array([1.08318531 0.87522204 3.04159265])