xlens.simulator.mog

Mixture-of-Gaussians approximations for galaxy light profiles.

Implements the Hogg & Lang (2012) decomposition of Exponential (Sersic n=1) and de Vaucouleurs (Sersic n=4) profiles into sums of circular Gaussians, providing fast, analytic alternatives to the native GalSim profiles.

Functions

Exponential(flux, half_light_radius[, M])

Build an Exponential profile as a mixture of M circular Gaussians.

DeVaucouleurs(flux, half_light_radius[, M])

Build a de Vaucouleurs profile as a mixture of M circular Gaussians.

Module Contents

Exponential(flux: float, half_light_radius: float, M: int = M_EXP_DEFAULT)[source]

Build an Exponential profile as a mixture of M circular Gaussians.

Parameters:
  • flux (float) – Total flux of the galaxy.

  • half_light_radius (float) – Half-light radius in arcseconds.

  • M (int, optional) – Number of Gaussian components (4, 6, or 8).

DeVaucouleurs(flux: float, half_light_radius: float, M: int = M_DEV_DEFAULT)[source]

Build a de Vaucouleurs profile as a mixture of M circular Gaussians.

Parameters:
  • flux (float) – Total flux of the galaxy.

  • half_light_radius (float) – Half-light radius in arcseconds.

  • M (int, optional) – Number of Gaussian components (6, 8, or 10).