Check out the Hyperspy Workshop May 13-17, 2024 Online

vectors_to_polar#

pyxem.utils.vectors.vectors_to_polar(vectors, columns=None)[source]#

Converts a list of vectors to polar coordinates.

Parameters:
  • vectors (numpy.ndarray) – Array of vectors.

  • columns – The x and y columns to be used to calculate the polar vector.

Returns:

polar_vectors – Array of vectors in polar coordinates.

Return type:

numpy.ndarray