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, R,NcellB);
ym = np.linspace(-R, R,NcellB);
Is there a simple and fast way to do it?
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, R,NcellB);
ym = np.linspace(-R, R,NcellB);
Is there a simple and fast way to do it?