xarray.DataArray.kspace.set_normal¶
- DataArray.kspace.set_normal(self, alpha, beta, *, delta=None)[source]¶
Set offsets from normal emission angles.
This method sets the angle offsets so that the provided normal emission angles \((\alpha, \beta)\) in the data map to \((k_x, k_y) = (0, 0)\) in momentum space.
- Parameters:
alpha (
float) – Angle \(\alpha\) in degrees corresponding to sample normal emission.beta (
float) – Angle \(\beta\) in degrees corresponding to sample normal emission.delta (
float|None, default:None) – Optional azimuthal offset \(\delta\) in degrees. If omitted, the existingdeltaoffset is preserved.
Examples
>>> data.kspace.set_normal(alpha=1.2, beta=-0.4) >>> dict(data.kspace.offsets) {'delta': 0.0, 'xi': -1.2, 'beta': -0.4}
See also
offsetsAttribute used to manipulate angle offsets directly.