sft2d.create_grid
- sft2d.create_grid(n_theta, n_phi, exclude_poles=True)[source]
Creates a uniform grid in spherical polar coordinates (theta, phi).
- Parameters:
n_theta (int) – Number of grid points in the theta (co-latitude) direction.
n_phi (int) – Number of grid points in the phi (longitude) direction.
exclude_poles (bool) – Whether to exclude 5 degrees near the poles. Default is True.
- Returns:
- A dictionary containing:
’theta’: Array of theta values (in radians).
’phi’: Array of phi values (in radians).
’dtheta’: Spacing in the theta direction (in radians).
’dphi’: Spacing in the phi direction (in radians).
- Return type:
dict