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:
center (
ndarray) – The center coordinates of the Gaussian in the form of a 3-element array [x, y, z].sig (
floatorQuantity) – Standard deviation of the Gaussian along the sphere in radiant.nside (
int) – Healpix nside parameter.bkg (
floatorQuantityorNone, 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:
Notes
The returned function takes a single argument, ipix, which is the pixel index on the sphere.