autogalaxy.profiles.light_and_mass_profiles.Chameleon#
- class Chameleon[source]#
Bases:
Chameleon,Chameleon,LightMassProfileThe elliptical Chameleon light profile.
This light profile closely approximes the Elliptical Sersic light profile, by representing it as two cored elliptical isothermal profiles. This is convenient for lensing calculations, because the deflection angles of an isothermal profile can be evaluated analyticially efficiently.
- Parameters:
centre (
Tuple[float,float]) – The (y,x) arc-second coordinates of the profile centre.ell_comps (
Tuple[float,float]) – The first and second ellipticity components of the elliptical coordinate system.intensity (
float) – Overall intensity normalisation of the light profile (units are dimensionless and derived from the data the light profile’s image is compared too, which is expected to be electrons per second).core_radius_0 (
float) – The core size of the first elliptical cored Isothermal profile.core_radius_1 (
float) – The core size of the second elliptical cored Isothermal profile.
Methods
angleThe position angle in degrees of the major-axis of the ellipse defined by profile, defined counter clockwise from the positive x-axis (0.0 > angle > 180.0).
angle_radiansThe position angle in radians of the major-axis of the ellipse defined by profile, defined counter clockwise from the positive x-axis (0.0 > angle > 2pi).
angle_to_profile_grid_fromThe angle between each angle theta on the grid and the profile, in radians.
axis_ratioThe elliptical isothermal mass profile deflection angles break down for perfectly spherical systems where axis_ratio=1.0, thus we remove these solutions.
blurred_image_2d_fromEvaluate the light object's 2D image from a input 2D grid of coordinates and convolve it with a PSF.
convergence_2d_fromCalculate the projected convergence at a given set of arc-second gridded coordinates.
convergence_funcReturns the convergence of the mass profile as a function of the radial coordinate.
deflections_2d_via_analytic_fromCalculate the deflection angles at a given set of arc-second gridded coordinates.
deflections_2d_via_potential_2d_fromReturns the 2D deflection angles of the mass profile by numerically differentiating the lensing potential on the input grid.
deflections_yx_2d_fromReturns the 2D deflection angles of the mass profile from a 2D grid of Cartesian (y,x) coordinates.
density_between_circular_annuliCalculate the mass between two circular annuli and compute the density by dividing by the annuli surface area.
eccentric_radii_grid_fromConvert a grid of (y,x) coordinates to an eccentric radius: :math: axis_ratio^0.5 (x^2 + (y^2/q))^0.5
elliptical_radii_grid_fromConvert a grid of (y,x) coordinates to their elliptical radii values: :math: (x^2 + (y^2/q))^0.5
extract_attributeReturns an attribute of a class and its children profiles in the galaxy as a ValueIrregular or Grid2DIrregular object.
hasReturns True if any attribute of this profile is an instance of the input class cls, else False.
image_2d_fromReturns the Chameleon light profile's 2D image from a 2D grid of Cartesian (y,x) coordinates.
image_2d_via_radii_fromReturns the 2D image of the Sersic light profile from a grid of coordinates which are the radial distances of each coordinate from the its centre.
luminosity_integralRoutine to integrate the luminosity of an elliptical light profile.
luminosity_within_circle_fromIntegrate the light profile to compute the total luminosity within a circle of specified radius.
mass_angular_within_circle_fromIntegrate the mass profiles's convergence profile to compute the total mass within a circle of specified radius.
mass_integralIntegrand used by mass_angular_within_circle_from to compute the total projected mass within a circle.
padded_image_2d_fromEvaluate the light object's 2D image from a input 2D grid of padded coordinates, where this padding is sufficient to encapsulate all surrounding pixels that will blur light into the original image given the 2D shape of the PSF's kernel.
potential_2d_fromReturns the 2D lensing potential of the mass profile from a 2D grid of Cartesian (y,x) coordinates.
potential_funcReturns the integrand of the lensing potential at a single point, used in numerical integration schemes for computing the potential from the mass profile's convergence.
radial_deflection_fromradial_grid_fromConvert a grid of (y, x) coordinates, to their radial distances from the profile centre (e.g. :math: r = sqrt(x**2 + y**2)).
rotated_grid_from_reference_frame_fromRotate a grid of (y,x) coordinates which have been transformed to the elliptical reference frame of a profile back to the original unrotated coordinate grid reference frame.
transformed_from_reference_frame_grid_fromTransform a grid of (y,x) coordinates from the reference frame of the profile to the original observer reference frame.
transformed_to_reference_frame_grid_fromTransform a grid of (y,x) coordinates to the reference frame of the profile.
unmasked_blurred_image_2d_fromEvaluate the light object's 2D image from a input 2D grid of coordinates and convolve it with a PSF, using a grid which is not masked.
visibilities_fromEvaluate the light object's 2D image from a input 2D grid of coordinates and transform this to an array of visibilities using a autoarray.operators.transformer.Transformer object and therefore a Fourier Transform.
vmapped_deflections_fromAttributes
average_convergence_of_1_radiusThe radius a critical curve forms for this mass profile, e.g. where the mean convergence is equal to 1.0.
coefficient_tagA short string tag used to label the intensity coefficient when this profile is used inside a Basis object (e.g. for multi-Gaussian expansion or shapelet decomposition).
ellipticity_rescaleA rescaling factor applied to account for the ellipticity of the mass profile when computing the Einstein radius from the average convergence equals unity criterion.
half_light_radiusThe radius that contains half of the total light of the profile (the half-light radius).