coolest.api.profiles.light#

Classes#

BaseLightProfile

Sersic

Elliptical Sersic

Shapelets

Elliptical Sersic

Uniform

Uniform light distribution

PixelatedRegularGrid

Pixelated profile on a regular grid

IrregularGrid

Pixelated profile on an irregular grid of points {x, y, z}

Module Contents#

class BaseLightProfile[source]#
abstract surface_brightness(**params)[source]#
abstract evaluate_surface_brightness(**params)[source]#
get_extent()[source]#
get_coordinates()[source]#
property units[source]#
property template_class[source]#
property type[source]#
property parameter_names[source]#
class Sersic[source]#

Elliptical Sersic

surface_brightness(I_eff=1.0, theta_eff=2.0, n=4.0, phi=0.0, q=1.0, center_x=0.0, center_y=0.0)[source]#
evaluate_surface_brightness(x, y, I_eff=1.0, theta_eff=2.0, n=4.0, phi=0.0, q=1.0, center_x=0.0, center_y=0.0)[source]#

Returns the surface brightness at the given position (x, y)

class Shapelets[source]#

Elliptical Sersic

The implementation uses functions from lenstronomy (, Birrer et al. [BirrerShajibGilman+21]), based on the developments of Refregier [Refregier03].

surface_brightness(amps=0, n_max=0, beta=0, center_x=0, center_y=0)[source]#
evaluate_surface_brightness(x, y, amps=0, n_max=0, beta=0, center_x=0, center_y=0)[source]#

Returns the surface brightness at the given position (x, y)

class Uniform[source]#

Uniform light distribution

surface_brightness(A=1.0)[source]#
evaluate_surface_brightness(x, y, A=1.0)[source]#

Returns the surface brightness at the given position (x, y)

class PixelatedRegularGrid(field_of_view_x, field_of_view_y, num_pix_x, num_pix_y, interpolation_method='cubic')[source]#

Pixelated profile on a regular grid

surface_brightness(pixels=None)[source]#

Returns the surface brightness pixels

evaluate_surface_brightness(x, y, pixels=None)[source]#
get_extent()[source]#
get_coordinates()[source]#
class IrregularGrid(field_of_view_x, field_of_view_y, num_pix, interpolation_method='cubic')[source]#

Pixelated profile on an irregular grid of points {x, y, z}

surface_brightness(x=None, y=None, z=None)[source]#

Returns the surface brightness pixels

evaluate_surface_brightness(x_eval, y_eval, x=None, y=None, z=None)[source]#
get_extent()[source]#