magpie.pixels.pos2pix_polar

magpie.pixels.pos2pix_polar(phi, r, nphi, nr, phimin=0.0, phimax=2 * np.pi, rmin=0.0, rmax=1.0)

Angular and radial coordinates to polar grid.

Parameters
phi, rfloat or array

Angular and radial coordinates.

nphi, nrint

Grid size along the angular and radial axes.

phimin, phimaxfloat, optional

Angular ranges.

rmin, rmaxfloat, optional

Radial ranges.

Returns
pixIDint or array

The pixel the points are located in the polar coordinate grid.