gauss_hpx_func

erwans3.utils.gauss_hpx_func(amp: Union[float, Quantity], center: ndarray, sig: Union[float, Quantity], nside: int, bkg: Optional[Union[float, Quantity]] = None, norm: bool = False) Callable[[Union[float, ndarray, Quantity]], Union[float, ndarray, Quantity]]

Create a 1D Gaussian function defined on a Healpix sphere.

Parameters:
  • amp (float or Quantity) – Amplitude of the Gaussian.

  • center (ndarray) – The center coordinates of the Gaussian in the form of a 3-element array [x, y, z].

  • sig (float or Quantity) – Standard deviation of the Gaussian along the sphere in radiant.

  • nside (int) – Healpix nside parameter.

  • bkg (float or Quantity or None, optional) – Background value to add to the Gaussian. Default is None.

  • norm (bool, optional) – If True, normalize the Gaussian. Default is False.

Returns:

A callable function that computes the value of the Gaussian function at a given pixel index on the sphere.

Return type:

Callable

Notes

The returned function takes a single argument, ipix, which is the pixel index on the sphere.