xlens.simulator.perturbation.halo

NFW halo lensing perturbation model using lenstronomy.

Classes

ShearHalo

Shear and convergence field generated by an NFW halo lens.

Module Contents

class ShearHalo(*, mass, conc, z_lens, halo_profile='NFW', cosmo=None, no_kappa=False, gmax=0.95)[source]

Bases: object

Shear and convergence field generated by an NFW halo lens.

cosmo = None[source]
mass[source]
z_lens[source]
conc[source]
no_kappa = False[source]
lens[source]
lens_solver[source]
gmax = 0.95[source]
distort_galaxy(src)[source]

This function distorts the galaxy’s shape and position :param src (np.array): :type src (np.array): row of structured array

Return type:

distorted galaxy position and lensing distortions