pol2cart#

movement.utils.vector.pol2cart(data)[source]#

Transform polar coordinates to Cartesian.

Parameters:

data (xarray.DataArray) – The input data containing space_pol as a dimension, with rho and phi in the dimension coordinate.

Returns:

An xarray DataArray containing the Cartesian coordinates stored in the space dimension, with x and y in the dimension coordinate.

Return type:

xarray.DataArray