GenSersic2D

class petrofit.modeling.GenSersic2D(c_0=0, **kwargs)[source]

Bases: Sersic2D

Two dimensional Sersic surface brightness profile with Generalized Ellipses described in Peng et al. 2010.

Parameters:
amplitudefloat

Surface brightness at r_eff.

r_efffloat

Effective (half-light) radius

nfloat

Sersic Index.

x_0float, optional

x position of the center.

y_0float, optional

y position of the center.

ellipfloat, optional

Ellipticity.

thetafloat or Quantity, optional

The rotation angle as an angular quantity (Quantity or Angle) or a value in radians (as a float). The rotation angle increases counterclockwise from the positive x axis.

c_0float

Boxiness of elliptical isophote.

Attributes Summary

c_0

param_names

Names of the parameters that describe models of this type.

Methods Summary

evaluate(x, y, amplitude, r_eff, n, x_0, ...)

Two dimensional Sersic profile function.

Attributes Documentation

c_0 = Parameter('c_0', value=0.0)
param_names = ('amplitude', 'r_eff', 'n', 'x_0', 'y_0', 'ellip', 'theta', 'c_0')

Names of the parameters that describe models of this type.

The parameters in this tuple are in the same order they should be passed in when initializing a model of a specific type. Some types of models, such as polynomial models, have a different number of parameters depending on some other property of the model, such as the degree.

When defining a custom model class the value of this attribute is automatically set by the Parameter attributes defined in the class body.

Methods Documentation

classmethod evaluate(x, y, amplitude, r_eff, n, x_0, y_0, ellip, theta, c_0)[source]

Two dimensional Sersic profile function.