gauss_sph
- erwans3.utils.gauss_sph(amp: Union[float, Quantity], center: ndarray, vec: ndarray, sig: Union[float, Quantity], bkg: Optional[Union[float, Quantity]] = None, norm: bool = False) Union[float, Quantity]
Compute a 3D spherical Gaussian function.
- Parameters:
center (
ndarrayorSkyCoordorBaseRepresentation]) – Center of the Gaussian.vec (
ndarrayorSkyCoordorBaseRepresentation) – Vector for the Gaussian.sig (
floatorQuantity) – Standard deviation of the Gaussian in radiant.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:
Value of the spherical Gaussian function.
- Return type: