I have the following coordinates stored in arrays that I want to convert into polar coordinates :
import numpy as np R = 1.; NcellB = 5; xm = np.linspace(-R,