Weak Lensing
GalSim was originally built for the Great03 weak lensing challenge. As such, it includes various classes and routines for accurately handling and constructing weak lensing shear and magnification.
The
Shearclass is our basic object for handling and manipulating shear values.PowerSpectrumcan be used to generate shear and convergence fields according to an input power spectrum function.NFWHalocan generate tangential shear profiles around an NFW halo mass profile.galsim.pse.PowerSpectrumEstimatorcan be used to estimate a shear power spectrum from gridded shear values.