magpie.pixels.get_polarEA_shape

magpie.pixels.get_polarEA_shape(pixID, nr, rmax=1.0, base_nphi=3, proj='cart', center=[0.0, 0.0], steps=12, returnpoly=False)

Returns a polygon for the shape of a single polar coordinate pixel in polar or cartesian 2D coordinates.

Parameters
pixIDint

Pixel index.

nrint

Number of divisions along the r-axis.

rmaxfloat, optional

Maximum radial value, default=1.

base_nphiint, optional

Number of pixels around r=0, default=3.

projstr, optional

Output coordinate projection. Either ‘cart’ for cartesian or ‘polar’ for polar projection.

centerlist, optional

Center point of the polar grid, only relevant for cartesian projection, default at the origin.

stepsint, optional

Number of steps in the polygon, default=12.

returnpolybool, optional

Return matplotlib polygon object, default=False.

Returns
x, y or p, rarray

Cartesian or polar coordinate elements for the pixel polygon.