pol2cart# movement.utils.vector.pol2cart(data)[source]# Transform polar coordinates to Cartesian. Parameters: data (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: DataArray Examples using pol2cart# Compute head direction Compute head direction