sersic_profile¶
-
simcado.source.
sersic_profile
(r_eff=100, n=4, ellipticity=0.5, angle=30, normalization='total', width=1024, height=1024, x_offset=0, y_offset=0, oversample=1)[source]¶ Returns a 2D array with a normalised Sersic profile
- Parameters
- r_efffloat
[pixel] Effective (half-light) radius
- nfloat
Power law index. - n=1 for exponential (spiral), - n=4 for de Vaucouleurs (elliptical)
- ellipticityfloat
Ellipticity is defined as (a - b)/a. Default = 0.5
- anglefloat
[deg] Default = 30. Rotation anti-clockwise from the x-axis
- normalizationstr, optional
[“half-light”, “centre”, “total”] Where the profile equals unity If normalization equals: - “half-light” : the pixels at the half-light radius are set to 1 - “centre” : the maximum values are set to 1 - “total” : the image sums to 1
- width, heightint
[pixel] Dimensions of the image
- x_offset, y_offsetfloat
[pixel] The distance between the centre of the profile and the centre of the image
- oversampleint
Factor of oversampling, default factor = 1. If > 1, the model is discretized by taking the average of an oversampled grid.
- Returns
- img2D array
Notes
Most units are in [pixel] in this function. This differs from
galaxy()
where parameter units are in [arcsec] or [pc]