magtomo.Experiment.projection#

projection(field, rot_matrix, pol=0, order=1)#

Calculation of a single projection.

Parameters:
fieldnp.ndarray

The magnetization field.

rot_matrixnp.ndarray

A single rotation matrix.

polnp.ndarray (optional)

Single polarization or a pair of polarizations (if the difference of projections is desired). Linear polarization represented using values from 0 to 180 (in degrees) and circular polarizations represented with +1j and -1j (complex unit values)

orderint (optional)

The interpolation order (0-5) for performing rotations.

Returns:
np.ndarray

The projection of the field at the orientation described by rot_matrix and polarization pol.