diff --git a/docs/overview/images/overview_2/dataset_image_prompt.txt b/docs/overview/images/overview_2/dataset_image_prompt.txt new file mode 100644 index 000000000..0365017cf --- /dev/null +++ b/docs/overview/images/overview_2/dataset_image_prompt.txt @@ -0,0 +1 @@ +Create one wide four-panel scientific illustration for the PyAutoLens New User Guide showing the FOUR TYPES OF OBSERVATIONAL DATA. Equal rectangular panels left-to-right, thin white gutters, consistent clean navy-black background, luminous cyan and restrained warm gold, sophisticated astronomy textbook visual style. Exact headings only, aligned at top: 'Imaging', 'Interferometer', 'Data cubes', 'Point sources'. No other text, numbers, legends, formulae, equipment, telescopes, or decorative stars. Panel 1 Imaging: a small softly pixelated square astronomical image, foreground golden elliptical lens at centre and resolved cyan Einstein arcs, visibly image pixels not a smooth decorative painting. Panel 2 Interferometer: show the data representation as a two-dimensional u-v sampling plot: delicate orthogonal axes, multiple curved tracks of small discrete cyan and purple sample dots in conjugate symmetric pairs around the origin, sparse central hole, no continuous luminous ring or galaxy image, make it clear these are visibility sample positions on a Fourier plane. Panel 3 Data cubes: an oblique ordered stack of FIVE thin separated square image-channel slices, all showing different portions of the SAME lensed cyan arc at differing spectral channels, spatial axes consistently aligned, emission shifting along arc from slice to slice, modest depth so all layers visible; no changing galaxies, no literal solid glass cube, no rainbow physics. Panel 4 Point sources: one faint compact warm golden foreground lens galaxy at centre, surrounded by FOUR sharp compact cyan point-like images in an asymmetric quadruply imaged quasar configuration, distinct separated point spread functions, no extended cyan ring or arcs. The second panel's point samples and fourth panel's luminous sources must be visibly very different. Keep content large and uncluttered, generous margins, ~3:1 aspect ratio. Conceptual explanatory schematic, not real measurements, not an actual lens model or simulation. Output only the image. diff --git a/docs/overview/images/overview_2/dataset_types.png b/docs/overview/images/overview_2/dataset_types.png new file mode 100644 index 000000000..9514e3be2 Binary files /dev/null and b/docs/overview/images/overview_2/dataset_types.png differ diff --git a/docs/overview/images/overview_2/image_prompt.txt b/docs/overview/images/overview_2/image_prompt.txt new file mode 100644 index 000000000..12c070cd3 --- /dev/null +++ b/docs/overview/images/overview_2/image_prompt.txt @@ -0,0 +1 @@ +Create a polished scientific conceptual illustration for the PyAutoLens New User Guide, a single wide image with FOUR equal panels arranged left-to-right, consistent aesthetic, black/navy space backgrounds with restrained warm-gold foreground galaxies and cyan background-source lensed arcs. Panels visually distinct with thin gutters, large clean exact headings only: 'Galaxy', 'Multi-galaxy', 'Group', 'Cluster'. Do not include any other text, numbers, equations, arrows or legends. Galaxy: one dominant golden elliptical lens galaxy, cyan partial Einstein arcs around it. Multi-galaxy: two similarly bright foreground golden elliptical galaxies in a close pair, cyan arcs distorted around their combined lensing potential. Group: a modest small group of several golden galaxies around one brighter central galaxy, coherent larger cyan arcs spanning the group, subtly suggest an extended common halo by a very faint smooth diffuse gold haze, not a visible hard circle. Cluster: many gold elliptical galaxies of varied sizes distributed across a larger field, multiple distinct cyan lensed arc systems at varied locations and orientations, not a single ring surrounding all galaxies. The field of view increases across panels; these are separate illustrative examples, not an evolutionary sequence, not matched angular scale. Accurate qualitative gravitational lensing visual vocabulary: foreground galaxies are centrally concentrated elliptical glows, background sources are curved tangential elongated arcs; do not depict planets, galaxies arranged on a perfect grid, ray paths, telescopes, fantasy vortex spirals, or literal visible dark matter. Artistic scientific schematic, not claimed observational data or numerical lens-model output. Clear at website width, sophisticated astronomy textbook graphic, minimal clutter. Approximately 3:1 aspect ratio. All headings same size and baseline, generous margin, no global title. diff --git a/docs/overview/images/overview_2/lens_scales.png b/docs/overview/images/overview_2/lens_scales.png new file mode 100644 index 000000000..476cac1e9 Binary files /dev/null and b/docs/overview/images/overview_2/lens_scales.png differ diff --git a/docs/overview/images/overview_2/provenance.txt b/docs/overview/images/overview_2/provenance.txt new file mode 100644 index 000000000..938fa91a1 --- /dev/null +++ b/docs/overview/images/overview_2/provenance.txt @@ -0,0 +1 @@ +AI-generated conceptual illustrations, generated and edited with built-in image_gen for PyAutoLens New User Guide on 2026-11-12. Not observations or numerical models. Lens version 3 approved by James Nightingale. Radii are indicative angular scales, not measured from the artwork; see page references. The prompts are preserved in this directory. diff --git a/docs/overview/images/overview_2/radii_image_edit_prompt.txt b/docs/overview/images/overview_2/radii_image_edit_prompt.txt new file mode 100644 index 000000000..603b05c0d --- /dev/null +++ b/docs/overview/images/overview_2/radii_image_edit_prompt.txt @@ -0,0 +1 @@ +Edit this supplied four-panel lens-scale illustration only to add numerical Einstein-radius labels. Preserve the existing galaxy artwork, colours, borders, four-panel composition and headings unchanged as closely as possible. Directly below each existing white heading, add a clearly legible smaller white sans-serif subtitle on the dark empty background, all four at the same baseline. Exact subtitles left to right: under Galaxy: 'Einstein radius ≈ 1″'; under Multi-galaxy: 'Einstein radius ≈ 1–3″'; under Group: 'Einstein radius ≈ 3–10″'; under Cluster: 'Einstein radius ≈ 10–50″'. Use the double-prime arcsecond symbol ″, not degrees or single prime. Keep text inside each panel with adequate side padding and clear separation from the title. Do not add any other text, scale bars, circles, arrows or annotations. These are indicative ranges, not measurements from the artwork. Retain original wide aspect ratio and image quality. diff --git a/docs/overview/overview_2_new_user_guide.md b/docs/overview/overview_2_new_user_guide.md index 24973b818..3512dffba 100644 --- a/docs/overview/overview_2_new_user_guide.md +++ b/docs/overview/overview_2_new_user_guide.md @@ -2,102 +2,118 @@ # New User Guide -**PyAutoLens** can analyse strong lens systems across a range of physical scales (e.g. galaxy, multi-galaxy, group, and cluster) and for -different types of data (e.g. imaging, interferometer, and point-source observations). Depending on the scientific questions you are interested in, the analysis you perform may differ significantly. +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. -The autolens_workspace contains a suite of example Jupyter Notebooks, organised by lens scale and dataset type. +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. -This guide begins with two simple questions to help you find the most appropriate example notebook for your science case. +(what-scale-lens)= -**In natural language:** if you are using the [PyAutoLens AI Assistant](https://github.com/PyAutoLabs/autolens_assistant), you can skip the -questions below: describe the scale of your lens and your data type to the assistant and it will pick the matching -example and work through it with you. The examples below are what the assistant uses, and they remain the best place -to see the Python. +## 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. -What size and scale of strong lens system are you expecting to work with? +![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) -There are four scales to choose from, which form a ladder: every group and cluster is a multi-galaxy system, -but not vice versa. What changes as you climb is first the mass model, then the entire analysis strategy: +*AI-generated conceptual illustration, not observations or a calculated lens model. Panels are not shown at the same angular scale.* -- **Galaxy Scale**: Made up of a single lens galaxy lensing a single source galaxy, the simplest strong lens you can get! - If you're interested in galaxy scale lenses, go to the question below called "What Dataset Type?". -- **Multi Galaxy**: Two or more galaxies of comparable mass all contribute significantly to the lensing, with no - dominant shared dark-matter halo (systems with one belong on the group or cluster rungs below) — each co-dominant - deflector gets its own free light and mass model, and the source is a single - extended galaxy fitted at pixel level exactly as at galaxy scale. If this is your system, go to the - [multi_galaxy/start_here.ipynb](https://github.com/PyAutoLabs/autolens_workspace/blob/main/notebooks/multi_galaxy/start_here.ipynb) notebook. -- **Group Scale**: Strong lens groups contain 2-10 lens galaxies and typically lens just one source galaxy. A dominant - group-scale dark-matter halo may enter the model as an explicit choice, with fainter members organised into tiers - (scaling relations, tidally truncated profiles). The source modelling is unchanged — one extended source fitted at - pixel level. If you are interested in groups, go to the [group/start_here.ipynb](https://github.com/PyAutoLabs/autolens_workspace/blob/main/notebooks/group/start_here.ipynb) notebook. -- **Cluster Scale**: Strong lens galaxy clusters often contain 20-50, or more, lens galaxies, lensing 10, or more, source - galaxies across a wide range of redshifts. The mass framework is the same as a group's, but the **analysis changes**: - the default workflow fits point-source multiple-image positions (multi-plane, per-source redshifts) rather than - reconstructing extended sources, and the lens galaxies' light is not modeled. If you are interested in clusters, go - to the [cluster/start_here.ipynb](https://github.com/PyAutoLabs/autolens_workspace/blob/main/notebooks/cluster/start_here.ipynb) notebook. +::::{grid} 1 2 2 4 +:gutter: 3 -For a sense of the real science each rung anchors to: multi-galaxy lenses include merging-pair systems like -SDSS J1011+0143 (two SIEs + shear; Shu et al. 2016) and the famous time-delay lens B1608+656; group-scale -lenses include CSWA 19 (Ding et al. 2025, modeled with **PyAutoLens**) and the SL2S group sample; cluster-scale -lenses include the Hubble Frontier Fields clusters, most notably Abell 2744 (Bergamini et al. 2023) — the -system the workspace's cluster `start_here` models. -## What Dataset Type? +:::{grid-item-card} Galaxy +Indicative θ_E_: ~1″ -If you are interested in galaxy-scale strong lenses, you now need to decide what type of strong lens data you are -interested in: +One galaxy dominates the lensing. Start with your data type below. -- **CDD Imaging**: For image data from telescopes like Hubble and James Webb, go to [imaging/start_here.ipynb](https://github.com/PyAutoLabs/autolens_workspace/blob/main/notebooks/imaging/start_here.ipynb). -- **Interferometer**: For radio / sub-mm interferometer from instruments like ALMA, go to [interferometer/start_here.ipynb](https://github.com/PyAutoLabs/autolens_workspace/blob/main/notebooks/interferometer/start_here.ipynb). -- **Data Cubes**: For spectral-line data cubes (e.g. ALMA CO cubes), where many frequency channels are fitted simultaneously with a shared lens model, go to [interferometer/features/datacube/start_here.ipynb](https://github.com/PyAutoLabs/autolens_workspace/blob/main/notebooks/interferometer/features/datacube/start_here.ipynb). -- **Point Sources**: For strongly lensed point sources (e.g. lensed quasars, supernovae), go to [point_source/start_here.ipynb](https://github.com/PyAutoLabs/autolens_workspace/blob/main/notebooks/point_source/start_here.ipynb). +[Choose your data type below](#what-dataset-type) +::: -## Google Colab +:::{grid-item-card} Multi-galaxy +Indicative θ_E_: ~1–3″ -The links above take you to the GitHub page of each notebook, and if you've cloned the workspace you can open them -locally on your machine. +Several galaxies contribute significantly to the lensing, without a dominant shared halo. Model their light and mass together and reconstruct an extended background source. -However, you can also open and run each notebook directly in Google Colab, which provides a free cloud computing -environment with all the required dependencies already installed. +[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) +::: -This is a great way to get started quickly without needing to install **PyAutoLens** on your own machine, -so you can check its the right software for you before going through the installation process: +:::{grid-item-card} Group +Indicative θ_E_: ~3–10″ -> - [imaging/start_here.ipynb](https://colab.research.google.com/github/PyAutoLabs/autolens_workspace/blob/2026.11.12.1/notebooks/imaging/start_here.ipynb): Galaxy scale strong lenses observed with CCD imaging (e.g. Hubble, James Webb). -> - [interferometer/start_here.ipynb](https://colab.research.google.com/github/PyAutoLabs/autolens_workspace/blob/2026.11.12.1/notebooks/interferometer/start_here.ipynb): Galaxy scale strong lenses observed with interferometer data (e.g. ALMA). -> - [point_source/start_here.ipynb](https://colab.research.google.com/github/PyAutoLabs/autolens_workspace/blob/2026.11.12.1/notebooks/point_source/start_here.ipynb): Galaxy scale strong lenses with a lensed point source (e.g. lensed quasars). -> - [multi_galaxy/start_here.ipynb](https://colab.research.google.com/github/PyAutoLabs/autolens_workspace/blob/2026.11.12.1/notebooks/multi_galaxy/start_here.ipynb): Multi-galaxy strong lenses with 2+ co-dominant lens galaxies and no host halo. -> - [group/start_here.ipynb](https://colab.research.google.com/github/PyAutoLabs/autolens_workspace/blob/2026.11.12.1/notebooks/group/start_here.ipynb): Group scale strong lenses where there are 2-10 lens galaxies. -> - [cluster/start_here.ipynb](https://colab.research.google.com/github/PyAutoLabs/autolens_workspace/blob/2026.11.12.1/notebooks/cluster/start_here.ipynb): Cluster scale strong lenses with 20+ lens galaxies and 10+ source galaxies. +A group of galaxies lenses an extended background source. The example introduces an optional shared dark-matter halo and ways to model fainter members. -## Still Unsure? +[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) +::: -Each notebook is short and self-contained, and can be completed and adapted quickly to your particular task. -Therefore, if you're unsure exactly which scale of lensing applies to you, or quite what data you want to use, you -should just read through a few different notebooks and go from there. +:::{grid-item-card} Cluster +Indicative θ_E_: ~10–50″ -## HowToLens +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. -For experienced scientists, the **PyAutoLens** examples will be simple to follow. Concepts surrounding strong lensing may -already be familiar and the statistical techniques used for fitting and modeling already understood. +[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) +::: -For those less familiar with these concepts (e.g. undergraduate students, new PhD students or interested members of the -public), things may have been less clear and a slower more detailed explanation of each concept would be beneficial. +:::: -The **HowToLens** Jupyter Notebook lectures provide exactly this. They are a four-chapter guide which thoroughly -take you through the core concepts of strong lensing, teach you the principles of the statistical techniques -used in modeling and ultimately will allow you to undertake scientific research like a professional astronomer. +**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. -To complete thoroughly, they'll probably take 2-4 days, so you may want try moving ahead to the examples but can -go back to these lectures if you find them hard to follow. +
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.

-If this sounds like it suits you, checkout the [HowToLens](https://github.com/PyAutoLabs/HowToLens) repository now. +(what-dataset-type)= -## Wrap Up +## What dataset type? -After completing this guide, you should be able to use **PyAutoLens** for your science research. +For galaxy-scale lenses, choose the example for your observations. For multi-galaxy, group or cluster systems, begin with the scale-specific guide above. -The biggest decisions you'll need to make are what features and functionality your specific science case requires, -which the next readthedocs page gives an overview of to help you decide. +![Four conceptual dataset representations: a pixelated lensed image, samples in the interferometer u–v plane, stacked spectral-channel images, and four compact quasar images around a lens galaxy.](images/overview_2/dataset_types.png) + +*AI-generated schematic, not measured data. The interferometer panel shows where visibilities are sampled, not their amplitudes or phases; cube slices represent different spectral channels.* + +::::{grid} 1 2 2 2 +:gutter: 3 + + +:::{grid-item-card} Imaging +Images from telescopes such as Hubble or JWST. Fit the lens light, mass and extended source. + +[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 +Radio or submillimetre observations, such as ALMA data. Fit the measured visibilities directly. + +[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} Data cubes +Spectral-line channels, such as an ALMA CO cube. Fit the channels together with a shared lens model. + +[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 +Multiple images of a compact source, such as a quasar or supernova. Start with the point-source example. + +[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. + +## 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. + +(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. + +(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.