Project

General

Profile

LENSTOOL

A gravitational lensing software for modeling mass distribution of galaxies and clusters (strong and weak regime).

  • Credits: People who contribute on this project (in chronological order): Jean-Paul Kneib, Henri Bonnet, Ghyslain Golse, David Sand, Eric Jullo, Phil Marshall, Julien Zoubian, Mathilde Jauzac, Johan Richard, Benjamin ClĂ©ment, Tomas Verdugo, Soniya Sharma
  • Reference papers: Kneib et al 1996, Jullo et al 2007, Jullo & Kneib 2009

Installation

Starting from version 8, you can install Lenstool using conda on Linux, Mac OSX or the Windows WSL Ubuntu system. This will give you access to the Python wrapper

conda create -n lenstool_env -c conda-forge lenstool astropy matplotlib numpy
conda activate lt_env
>>> import lenstool

On Ubuntu, you can also use the command apt-get from the command line.

apt-get install lenstool

On Mac OSX, you can use Macports (DEPRECATED)

sudo port install lenstool

On Windows you can use Cygwin, following the procedure described here.

If you want to use the generalized NFW profile, you need to prepare the lenstool.tab lookup table with this command

echo "0.01 1.70 0.01 0.01 30.0 1.01 " > config.in
lenstool_tab ./config.in

Source Install

If you want to install specific branch of Lenstool repository different from the master branch, you will have to install it from the source code. For this, we recommend to use a virtual environment, such as conda. The procedure is described here.

Older versions

Please, contact Eric Jullo (eric.jullo AT lam.fr), if you want to provide a compiled version with another operating system. Compiled version have been compiled with option --disable-shared.

Email-list:

lenstool AT googlegroups.com

To be added to the mailing list contact Jean-Paul Kneib: jean-paul.kneib AT lam.fr

Lenstool documentation

Lenstool Papers

Papers using lenstool to model the mass distribution of massive clusters (not exhaustive)

----</pre

Finally, you can compile and install lenstool using the commands