coolest.api.profiles.mass#
Classes#
Base class to define a mass profile to compute lensing quantities. |
|
Power-law Elliptical Mass Distribution (a.k.a. Elliptical Power-law) |
|
Singular Isothermal Elliptical mass profile. |
|
Coordinates of the origin for the external shear profile are assumed to be (0., 0.). |
|
Coordinates of the origin for the convergence sheet are assumed to be (0., 0.). |
|
Pixelated lens mass model defined a regular grid by its potential, derivatives and hessian arrays. |
Module Contents#
- class BaseMassProfile[source]#
Base class to define a mass profile to compute lensing quantities. Each specific class must be consistent with the equivalent class from the coolest.template submodule.
NOTE: in the future, a new coolest.profiles submodule will merge profile definitions that are currently split between coolest.template and coolest.api.
- class PEMD[source]#
Power-law Elliptical Mass Distribution (a.k.a. Elliptical Power-law) This follows implementations in lenstronomy (:, Birrer et al. [BirrerShajibGilman+21]:) based on the formulae [TessoreMetcalf15]:.
- evaluate_potential(x, y, theta_E=1.0, gamma=2.0, phi=0.0, q=1.0, center_x=0.0, center_y=0.0)[source]#
- evaluate_deflection(x, y, theta_E=1.0, gamma=2.0, phi=0.0, q=1.0, center_x=0.0, center_y=0.0)[source]#
- class ExternalShear[source]#
Coordinates of the origin for the external shear profile are assumed to be (0., 0.).
- class ConvergenceSheet[source]#
Coordinates of the origin for the convergence sheet are assumed to be (0., 0.).
- class PixelatedRegularGridFullyDefined(field_of_view_x, field_of_view_y, num_pix_x, num_pix_y, interpolation_method='cubic')[source]#
Pixelated lens mass model defined a regular grid by its potential, derivatives and hessian arrays.
- potantial(pixels=None, pixels_derivative=None, pixels_hessian=None)[source]#
Returns the lensing potential
- deflection(pixels=None, pixels_derivative=None, pixels_hessian=None)[source]#
Returns the deflection angles
- convergence(pixels=None, pixels_derivative=None, pixels_hessian=None)[source]#
Returns the deflection angles