Build_phi

class sf3dmodels.grid.Build_phi(GRID)[source] [edit on github]

Bases: sf3dmodels.grid.GridSet

Computes the azimuthal angle \(\phi\) on each cartesian grid point. Uses numpy.arctan2.

\[\phi = \tan^{-1}\left(\frac{y}{x}\right) + 2\pi\]
Parameters:
GRID : Struct

Grid structure to compute.

Attributes:
phi : numpy.ndarray, shape (GRID.NPoints,)

Array of angles in radians, in the range [0, pi/2].