lenstronomy.LensModel.LightConeSim package

Submodules

lenstronomy.LensModel.LightConeSim.light_cone module

class LightCone(mass_map_list, grid_spacing_list, redshift_list)[source]

Bases: object

Class to perform multi-plane ray-tracing from convergence maps at different redshifts From the convergence maps the deflection angles and lensing potential are computed (from different settings) and then an interpolated grid of all those quantities generate an instance of the lenstronomy LensModel multi-plane instance. All features of the LensModel module are supported.

Improvements that can be made for accuracy and speed: 1. adaptive mesh integral for the convergence map 2. Interpolated deflection map on different scales than the mass map.

The design principles should allow those implementations ‘under the hook’ of this class.

__init__(mass_map_list, grid_spacing_list, redshift_list)[source]
Parameters:
  • mass_map_list – 2d numpy array of mass map (in units physical Solar masses enclosed in each pixel/gird point of the map)

  • grid_spacing_list – list of grid spacing of the individual mass maps in units of physical Mpc

  • redshift_list – list of redshifts of the mass maps

cone_instance(z_source, cosmo, multi_plane=True, kwargs_interp=None)[source]
Parameters:
  • z_source – redshift to where lensing quantities are computed

  • cosmo – astropy.cosmology class

  • multi_plane – boolean, if True, computes multi-plane ray-tracing

  • kwargs_interp – interpolation keyword arguments specifying the numerics. See description in the Interpolate() class. Only applicable for ‘INTERPOL’ and ‘INTERPOL_SCALED’ models.

Returns:

LensModel instance, keyword argument list of lens model

class MassSlice(mass_map, grid_spacing, redshift)[source]

Bases: object

Class to describe a single mass slice.

__init__(mass_map, grid_spacing, redshift)[source]
Parameters:
  • mass_map – 2d numpy array of mass map (in units physical Msol)

  • grid_spacing – grid spacing of the mass map (in units physical Mpc)

  • redshift – redshift

interpol_instance(z_source, cosmo)[source]

Scales the mass map integrals (with units of mass not convergence) into a convergence map for the given cosmology and source redshift and returns the keyword arguments of the interpolated reduced deflection and lensing potential.

Parameters:
  • z_source – redshift of the source

  • cosmo – astropy.cosmology instance

Returns:

keyword arguments of the interpolation instance with numerically computed deflection angles and lensing potential

Module contents