cart2pol#
- movement.utils.vector.cart2pol(data)[source]#
Transform Cartesian coordinates to polar.
- Parameters:
data (xarray.DataArray) – The input data containing
spaceas a dimension, withxandyin the dimension coordinate.- Returns:
An xarray DataArray containing the polar coordinates stored in the
space_poldimension, withrhoandphiin the dimension coordinate. The anglesphireturned are in radians, in the range[-pi, pi].- Return type: