Sérsic
:::info Migrated from Old Wiki This content was partially migrated from the old wiki using GitHub Copilot and should be double-checked for accuracy. :::
Usage
sersic
x1c # x-coordinate of centroid
x2c # y-coordinate of centroid
q # axis ratio (minor/major)
pa # position angle (in radians; counter-clockwise from +x)
Amp # amplitude (normalisation, surface brightness at $r = R_{\text{eff}}$)
reff # effective radius (half-light radius)
nsersic # Sersic index
Surface Brightness Profile
After rotating by into the frame of the Sersic light (so the major axis lies along and minor axis along ), define:
The Sersic intensity is approximated using the expression from Dutton et al. (2011), based on Ciotti & Bertin (1999). The approximation for is:
Then, the surface brightness is:
where:
- is the amplitude (
Amp), the surface brightness at - is the Sersic index (
nsersic) - is the effective (half-light) radius
Notes on Accuracy
- The truncated expansion of is accurate to within for and
- Intensity is in surface brightness per arcsec²
Usage in simulate with sersic_mag
When using sersic_mag (Sersic profile via integrated magnitude), amplitude is calculated as:
Amp = texpo * pow(10, -0.4 * (mag - mzpt)) /
(2 * M_PI * exp(kap) * n * kap^{-2n} * r_eff^2 * q * Gamma(2n));
Amp *= dx * dy; // convert to counts per pixel
Where:
magis the total integrated magnitudemzptis the magnitude zeropointtexpois the exposure timedx,dyare pixel scalesGammais the gamma function
The approximation for in this context is:
This gives a robust conversion from magnitude to amplitude for use in image simulations with GLEE.
Units of Amplitude
The amplitude parameter (Amp) is in the same units as the science data image:
- If the science image is in ADU (Analog-to-Digital Units), then
Ampis in ADU - If the science image is in e⁻/s (electrons per second), then
Ampis in e⁻/s
Predicted Image Generation
The predicted image from the light profile is obtained through the following steps:
-
Profile Evaluation:
- The profile is evaluated on a pixel grid
- If subsampling factor = 1: grid matches the science image exactly
- If subsampling factor > 1: grid is supersampled (e.g., 3×3 subpixels per science pixel)
-
PSF Convolution:
- The grid from step 1 is convolved with the PSF
- Uses subsampled PSF if subsampling factor > 1
-
Binning (if subsampled):
- Convolved image is binned down to science image resolution
- Each pixel value is divided by (subsampling factor)² to conserve total flux
The resulting image is directly compared to the science image to compute χ² for the lens light (in regions outside the arc mask and inside the lens mask).
Citations for Profile
@ARTICLE{Sersic63,
author = {{S{\'e}rsic}, J.~L.},
title = "{Influencia de la dispersión atmosférica e instrumental en la distribución de brillo de una galaxia [Influence of the atmospheric and instrumental dispersion on the brightness distribution in a galaxy]}",
journal = {Boletin de la Asociacion Argentina de Astronomia La Plata Argentina},
year = 1963,
month = feb,
volume = {6},
pages = {41-43},
url={http://sedici.unlp.edu.ar/handle/10915/91601}
}