In this repository you can find a variety of notebooks with tutorials on how to use lenstronomy as well as more advanced and specific example use cases.
If you are new to gravitational lensing, check also out the mini lecture series giving an introduction to gravitational lensing with interactive Jupyter notebooks in the cloud.
You can also check out this self-work tutorial with assignments and Jupyter notebooks designed for undergraduate students to learn the basics of lens modeling with lenstronomy.
- Getting started
- Lens modeling
- Modeling a simple Einstein ring (google colab)
- Modeling a doubly imaged quasar (google colab)
- Modeling a quadruply imaged quasar (google colab)
- Modeling multiple bands simultaneously (google colab)
- Source reconstruction with shapelets (google colab)
- Modeling of catalogue data (google colab)
- Cosmic shear with Einstein ring simulations (google colab)
- Line-of-sight effects
- Numerics
- Simulations
- Galaxy light fitting
- Dark matter substructure
- Time-delay cosmography
- Time delay-cosmography simulations (google colab)
- Time delay-cosmography with uncertain PSF (google colab)
- Sampling of catalogue data with external information (google colab)
- Cosmology sampling of cosmographic posteriors (google colab)
- Cosmographic uncertainty estimation and forecasting (google colab)
- Clusters
The notebooks require lenstronomy release version 1.11.2. Instructions for installing lenstronomy and its dependencies can be found in the Installation section of the lenstronomy documentation.
If you are using the GitHub branch of lenstronomy
, you may be a bit ahead of the notebooks.
Get in touch with the lenstronomy developers (lenstronomy-dev@googlegroups.com) if you encounter problems.
A first set of notebooks were written by Simon Birrer sibirrer as the lenstronomy_extensions package. Please follow the lenstronomy citation guidelines in using these notebooks.