diff --git a/docs/overview/overview_2_new_user_guide.md b/docs/overview/overview_2_new_user_guide.md index 27ba66773..75c08ec72 100644 --- a/docs/overview/overview_2_new_user_guide.md +++ b/docs/overview/overview_2_new_user_guide.md @@ -2,15 +2,19 @@ # New User Guide -This guide helps you choose a **PyAutoLens example notebook** for your observations. Start with the scale of your lens, then choose your data type. Each example includes Python code you can read, run and adapt. +**PyAutoLens** models strong gravitational lenses, from individual galaxies to groups and clusters. Your starting example depends on the lens system and the observations you want to analyse. -If you use AI, describe your lens and observations to the [PyAutoLens AI Assistant](https://github.com/PyAutoLabs/autolens_assistant). It can help you choose an example and work through it interactively. +The **autolens_workspace** contains Jupyter Notebooks that introduce the modelling workflow using example datasets, with Python code you can read, run and adapt. Start by choosing your lens scale below, then your dataset type where appropriate. You can explore an example before preparing your own data. + +If you would like help along the way, describe your lens and observations to the [PyAutoLens AI Assistant](https://github.com/PyAutoLabs/autolens_assistant). It can suggest a starting notebook, explain the code and help you adapt the example to your science case. (what-scale-lens)= ## What scale lens? -Choose the example that matches the galaxies contributing to the lensing. The distinction is the mass model and fitting approach, not a strict galaxy-count threshold. +Start with the foreground objects responsible for the lensing: is the system dominated by one galaxy, several galaxies, a group or a cluster? Each route introduces a model suited to that kind of system. + +These categories are a starting guide, rather than strict boundaries based on the number of galaxies. For a galaxy-scale lens, continue to the dataset choices below. The other cards take you straight to their starting notebooks. ![Four conceptual lensing scenes: one dominant galaxy, a comparable-mass galaxy pair, a small group and a rich cluster. Gold marks foreground galaxies and blue marks lensed background light. Indicative Einstein radii: galaxy approximately 1 arcsecond; multi-galaxy 1–3 arcseconds; group 3–10 arcseconds; cluster 10–50 arcseconds.](images/overview_2/lens_scales.png) @@ -21,40 +25,40 @@ Choose the example that matches the galaxies contributing to the lensing. The di :::{grid-item-card} Galaxy -Indicative θ_E_: ~1″ +Approximate Einstein radius: ~1″ -One galaxy dominates the lensing. Start with your data type below. +One foreground galaxy dominates the lensing. [Choose your data type below](#what-dataset-type) ::: :::{grid-item-card} Multi-galaxy -Indicative θ_E_: ~1–3″ +Approximate Einstein radius: ~1–3″ -Several galaxies contribute significantly to the lensing, without a dominant shared halo. Model their light and mass together and reconstruct an extended background source. +Several foreground galaxies contribute significantly to the lensing. -[Notebook ](https://github.com/PyAutoLabs/autolens_workspace/blob/main/notebooks/multi_galaxy/start_here.ipynb)·[Google Colab ](https://colab.research.google.com/github/PyAutoLabs/autolens_workspace/blob/2026.11.12.1/notebooks/multi_galaxy/start_here.ipynb) +[Notebook](https://github.com/PyAutoLabs/autolens_workspace/blob/main/notebooks/multi_galaxy/start_here.ipynb) · [Google Colab](https://colab.research.google.com/github/PyAutoLabs/autolens_workspace/blob/2026.11.12.1/notebooks/multi_galaxy/start_here.ipynb) ::: :::{grid-item-card} Group -Indicative θ_E_: ~3–10″ +Approximate Einstein radius: ~3–10″ -A group of galaxies lenses an extended background source. The example introduces an optional shared dark-matter halo and ways to model fainter members. +A small galaxy group lenses a background source. -[Notebook ](https://github.com/PyAutoLabs/autolens_workspace/blob/main/notebooks/group/start_here.ipynb)·[Google Colab ](https://colab.research.google.com/github/PyAutoLabs/autolens_workspace/blob/2026.11.12.1/notebooks/group/start_here.ipynb) +[Notebook](https://github.com/PyAutoLabs/autolens_workspace/blob/main/notebooks/group/start_here.ipynb) · [Google Colab](https://colab.research.google.com/github/PyAutoLabs/autolens_workspace/blob/2026.11.12.1/notebooks/group/start_here.ipynb) ::: :::{grid-item-card} Cluster -Indicative θ_E_: ~10–50″ +Approximate Einstein radius: ~10–50″ -Many member galaxies lens multiple background sources at different redshifts. This example fits their multiple-image positions; it does not fit the lens galaxies’ light. +A galaxy cluster lenses multiple background sources. -[Notebook ](https://github.com/PyAutoLabs/autolens_workspace/blob/main/notebooks/cluster/start_here.ipynb)·[Google Colab ](https://colab.research.google.com/github/PyAutoLabs/autolens_workspace/blob/2026.11.12.1/notebooks/cluster/start_here.ipynb) +[Notebook](https://github.com/PyAutoLabs/autolens_workspace/blob/main/notebooks/cluster/start_here.ipynb) · [Google Colab](https://colab.research.google.com/github/PyAutoLabs/autolens_workspace/blob/2026.11.12.1/notebooks/cluster/start_here.ipynb) ::: :::: -**Einstein radius (θE)** is a characteristic angular scale of strong lensing, approximately the ring radius for an aligned source and a symmetric lens. These values are rough guides in arcseconds (″), not category boundaries; they depend on the mass distribution and lens/source distances. Complex lenses can have several critical curves. +The **Einstein radius** gives a sense of the angular size of a lens, roughly the radius of an Einstein ring. The values above are approximate guides in arcseconds (″); real systems overlap these ranges.
About these scale estimates

These are illustrative ranges, not survey limits or predicted radii for the artwork. Multi-galaxy systems overlap galaxy and group scales. The workspace’s lensing guide uses order-one arcsecond galaxy lenses, few-arcsecond multi-galaxy/group lenses and tens-of-arcseconds cluster lenses.

Examples grounding the scale: Euclid galaxy-scale lenses; SL2S groups with 3–8″ Einstein radii; a cluster lens with an effective Einstein radius around 43″. For a complex lens, an effective Einstein radius is often defined from the area enclosed by its tangential critical curve for a specified source redshift.

@@ -62,9 +66,9 @@ Many member galaxies lens multiple background sources at different redshifts. Th ## What dataset type? -The illustrations below are conceptual, not observations; telescope and sky scales are schematic. +For a galaxy-scale lens, choose the notebook that matches the observations you want to analyse. An image, a set of interferometer measurements and the positions of compact lensed sources each call for a different starting workflow. -For galaxy-scale lenses, choose the example for your observations. For multi-galaxy, group or cluster systems, begin with the scale-specific guide above. +Each notebook begins with example data and introduces the relevant model and fitting steps. If you do not have your own dataset yet, choose the example closest to your interests. For multi-galaxy, group or cluster systems, begin with the scale-specific guide above. ![Five conceptual dataset representations: a pixelated lensed image, samples in the interferometer u–v plane, the same lens in three wavebands, stacked spectral-channel images, and four compact quasar images around a lens galaxy.](images/overview_2/dataset_types.png) @@ -75,17 +79,17 @@ For galaxy-scale lenses, choose the example for your observations. For multi-gal :::{grid-item-card} Imaging -Images from telescopes such as Hubble or JWST. Fit the lens light, mass and extended source. +Images of extended lensed sources, from telescopes such as Hubble or JWST. -[Notebook ](https://github.com/PyAutoLabs/autolens_workspace/blob/main/notebooks/imaging/start_here.ipynb)·[Google Colab ](https://colab.research.google.com/github/PyAutoLabs/autolens_workspace/blob/2026.11.12.1/notebooks/imaging/start_here.ipynb) +[Notebook](https://github.com/PyAutoLabs/autolens_workspace/blob/main/notebooks/imaging/start_here.ipynb) · [Google Colab](https://colab.research.google.com/github/PyAutoLabs/autolens_workspace/blob/2026.11.12.1/notebooks/imaging/start_here.ipynb) ::: :::{grid-item-card} Interferometer ![Conceptual illustration of interferometer](images/overview_2/interferometry.png) -Radio or submillimetre observations, such as ALMA data. Fit the measured visibilities directly. +Radio or submillimetre observations, such as ALMA visibilities. -[Notebook ](https://github.com/PyAutoLabs/autolens_workspace/blob/main/notebooks/interferometer/start_here.ipynb)·[Google Colab ](https://colab.research.google.com/github/PyAutoLabs/autolens_workspace/blob/2026.11.12.1/notebooks/interferometer/start_here.ipynb) +[Notebook](https://github.com/PyAutoLabs/autolens_workspace/blob/main/notebooks/interferometer/start_here.ipynb) · [Google Colab](https://colab.research.google.com/github/PyAutoLabs/autolens_workspace/blob/2026.11.12.1/notebooks/interferometer/start_here.ipynb) ::: :::{grid-item-card} Multi-band imaging @@ -97,24 +101,30 @@ The same lens observed in several wavebands. Fit the images together with a shar :::{grid-item-card} Data cubes ![Conceptual illustration of data cubes](images/overview_2/data_cubes.png) -Spectral-line channels, such as an ALMA CO cube. Fit the channels together with a shared lens model. +Spectral-line observations across many channels, such as an ALMA CO cube. -[Notebook ](https://github.com/PyAutoLabs/autolens_workspace/blob/main/notebooks/interferometer/features/datacube/start_here.ipynb)·[Google Colab ](https://colab.research.google.com/github/PyAutoLabs/autolens_workspace/blob/2026.11.12.1/notebooks/interferometer/features/datacube/start_here.ipynb) +[Notebook](https://github.com/PyAutoLabs/autolens_workspace/blob/main/notebooks/interferometer/features/datacube/start_here.ipynb) · [Google Colab](https://colab.research.google.com/github/PyAutoLabs/autolens_workspace/blob/2026.11.12.1/notebooks/interferometer/features/datacube/start_here.ipynb) ::: :::{grid-item-card} Point sources ![Conceptual illustration of point sources](images/overview_2/point_sources.png) -Multiple images of a compact source, such as a quasar or supernova. Start with the point-source example. +Multiple images of a compact source, such as a quasar or supernova. -[Notebook ](https://github.com/PyAutoLabs/autolens_workspace/blob/main/notebooks/point_source/start_here.ipynb)·[Google Colab ](https://colab.research.google.com/github/PyAutoLabs/autolens_workspace/blob/2026.11.12.1/notebooks/point_source/start_here.ipynb) +[Notebook](https://github.com/PyAutoLabs/autolens_workspace/blob/main/notebooks/point_source/start_here.ipynb) · [Google Colab](https://colab.research.google.com/github/PyAutoLabs/autolens_workspace/blob/2026.11.12.1/notebooks/point_source/start_here.ipynb) ::: :::: (google-colab)= -Read each notebook on GitHub, open it locally, or use its Google Colab link to run it in your browser. In Colab, run the setup cell first to install the software and prepare the example. +## Open and run an example + +The **Notebook** links open a readable preview on GitHub. You can browse the explanations and code there before deciding which example to try. + +To run an example in your browser, choose **Google Colab**. Run its setup cell first to install the software and prepare the example, then work through the notebook in order. This lets you try PyAutoLens without setting up a local installation. + +If you already have PyAutoLens installed and a local copy of the workspace, open the same notebook in Jupyter on your machine. Start with the supplied dataset so you can follow the complete workflow, then adapt it to your own observations. (weak-lensing)= @@ -130,16 +140,22 @@ To model the subtle distortions of many background galaxies, start with [weak/]( ## Still unsure? -Tell the [AI Assistant](https://github.com/PyAutoLabs/autolens_assistant) what objects are in your field and what observations you have. It can help you identify a starting example. +You do not need to settle every modelling choice before getting started. Browse the introductions to a couple of notebooks and choose the one closest to your lens and observations. The starting examples establish the workflow; more specialised choices can come later. + +You can also tell the [AI Assistant](https://github.com/PyAutoLabs/autolens_assistant) what objects are in your field, what data you have and what you hope to measure. It can help you find the most relevant example. (howtolens)= ## Learn the science -[HowToLens](https://github.com/PyAutoLabs/HowToLens) teaches gravitational lensing and Bayesian modelling through worked notebooks. Use it for a slower explanation of the concepts behind these examples. +The starting examples introduce how to use PyAutoLens. If gravitational lensing or Bayesian modelling is new to you, you may also want a slower explanation of why the models and fitting methods work. + +[HowToLens](https://github.com/PyAutoLabs/HowToLens) develops these ideas through worked Jupyter Notebooks. It is particularly useful for students and researchers beginning lens modelling, and you can work through it alongside the workspace examples. + +If you already know the underlying science, begin with the example for your observations and return to HowToLens whenever you want more background. (wrap-up)= ## Next steps -Once you have chosen an example, explore the [Features guide](https://pyautolens.readthedocs.io/en/latest/overview/overview_3_features.html) to find the modelling tools relevant to your science. +First, work through your chosen starting notebook and become familiar with its data, model and results. Then explore the [Features guide](https://pyautolens.readthedocs.io/en/latest/overview/overview_3_features.html) for additional modelling tools suited to your science, with links to detailed introductions and worked examples.