diff --git a/docs/_static/pyautolens.css b/docs/_static/pyautolens.css index 7ec8cb5e9..c192a7aa1 100644 --- a/docs/_static/pyautolens.css +++ b/docs/_static/pyautolens.css @@ -69,3 +69,13 @@ .feature-more-images summary, .directory summary { cursor: pointer; padding: 8px 0; } .directory { padding: 15px 20px; border: 1px solid #dce5ec; border-radius: 6px; } @media (max-width: 600px) { .feature-gallery tr { display: flex; flex-wrap: wrap; } .feature-gallery td { width: 50%; } .feature-gallery img { height: 110px; } } + +/* Features page: tiled cards grouped by section */ +.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 10px 0 30px; } +.feature-grid .feature-entry { display: flex; flex-direction: column; padding: 12px; border: 1px solid var(--color-background-border, #dce5ec); border-radius: 8px; background: var(--color-background-secondary, #f8f9fb); scroll-margin-top: 4rem; } +.feature-grid .feature-entry:target { border-color: var(--color-brand-primary); box-shadow: 0 0 0 2px var(--color-brand-primary); } +.feature-grid .feature-thumb { display: block; margin: -4px -4px 10px; } +.feature-grid .feature-thumb img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: contain; border-radius: 5px; background: #071322; } +.feature-grid .feature-entry h3 { font-size: 1rem; margin: 0 0 6px; } +.feature-grid .feature-entry p { font-size: .88rem; line-height: 1.45; margin: 0 0 8px; } +.feature-grid .feature-entry p:last-child { margin-top: auto; margin-bottom: 0; } diff --git a/docs/overview/images/overview_2/provenance.txt b/docs/overview/images/overview_2/provenance.txt index 0ba4ea97a..125031ecc 100644 --- a/docs/overview/images/overview_2/provenance.txt +++ b/docs/overview/images/overview_2/provenance.txt @@ -3,3 +3,4 @@ AI-generated conceptual illustrations, generated and edited with built-in image_ Dataset illustration extended with a multi-band imaging panel using built-in image_gen on 2026-11-12, following the user's request to distinguish multi_dataset examples from spectral data cubes. Separate image stamps represent the same lens in different wavebands. Edit prompt: multiband_image_edit_prompt.txt. The updated image is shared by the new user guide and workspace README; awaiting visual review. Standalone imaging.png generated with built-in image_gen on 2026-11-12 for the workspace dataset gallery and RTD Imaging card. Conceptual pixelated telescope image, not measured data or a numerical lens model. Reference: the Imaging scene in dataset_types.png. Prompt: imaging_image_prompt.txt. Approved by the user on 2026-11-12. +weak_lensing.png rendered procedurally on 2026-11-13 by weak_lensing_render.py (not AI-generated, not measured data): a cluster with strong arcs near an illustrative Einstein radius and background galaxies whose shapes combine random intrinsic ellipticity with an exaggerated SIS-like tangential shear. Replaces overview_3/strong_weak_lensing.png on the New User Guide card and workspace README. diff --git a/docs/overview/images/overview_2/weak_lensing.png b/docs/overview/images/overview_2/weak_lensing.png new file mode 100644 index 000000000..4192f058d Binary files /dev/null and b/docs/overview/images/overview_2/weak_lensing.png differ diff --git a/docs/overview/images/overview_2/weak_lensing_render.py b/docs/overview/images/overview_2/weak_lensing_render.py new file mode 100644 index 000000000..cb877174f --- /dev/null +++ b/docs/overview/images/overview_2/weak_lensing_render.py @@ -0,0 +1,47 @@ +import numpy as np, sys +from PIL import Image +rng=np.random.default_rng(7) +W,H=1536,1024; img=np.zeros((H,W,3)) +yy,xx=np.mgrid[0:H,0:W].astype(float); cx,cy=W/2,H/2 +# background: dark navy with soft vignette +r=np.hypot(xx-cx,yy-cy)/np.hypot(cx,cy) +bg=np.array([2,4,16])/255; img+=bg*(1.1-0.6*r[...,None]) +def blob(x0,y0,a,b,ang,col,amp=1.0,prof='gauss'): + R=int(max(a,b)*5)+3; x1,x2=max(0,int(x0-R)),min(W,int(x0+R)); y1,y2=max(0,int(y0-R)),min(H,int(y0+R)) + X=xx[y1:y2,x1:x2]-x0; Y=yy[y1:y2,x1:x2]-y0; c,s=np.cos(ang),np.sin(ang) + u=(X*c+Y*s)/a; v=(-X*s+Y*c)/b; q=u*u+v*v + f=np.exp(-0.5*q) if prof=='gauss' else np.exp(-2.0*q**0.4) + img[y1:y2,x1:x2]+=amp*f[...,None]*np.array(col) +# faint stars +for _ in range(260): + blob(rng.uniform(0,W),rng.uniform(0,H),0.7,0.7,0,np.array([0.8,0.85,1.0]),rng.uniform(0.15,0.6)) +thE=150.0 # Einstein radius in px +gold=np.array([1.0,0.62,0.22]); goldw=np.array([1.0,0.85,0.55]) +# background (weakly sheared) galaxies +n=0 +while n<400: + x,y=rng.uniform(-20,W+20),rng.uniform(-20,H+20); dx,dy=x-cx,y-cy; rr=np.hypot(dx,dy) + if rrPixelizations illustration
Pixelizations
Multi Gaussian Expansion (MGE) illustration
MGE
Dark Matter Subhalos illustration
Dark Matter Subhalos
Sensitivity Mapping illustration
Sensitivity Mapping
- *Conceptual illustrations, not measured data or guaranteed reconstructions.* -
More feature illustrations
- ## Reconstruct the source -

Pixelizations

Reconstruct the background galaxy on a mesh to study spiral arms, star-forming clumps and irregular structure. Pixelization is a key tool for source science: measuring intrinsic flux, size and magnification alongside the lens mass.

+
+ +
Pixelizations illustration

Pixelizations

Reconstruct the background galaxy on a mesh to study spiral arms, star-forming clumps and irregular structure. Pixelization is a key tool for source science: measuring intrinsic flux, size and magnification alongside the lens mass.

Start with pixelization.

-

Multi Gaussian Expansion (MGE)

Model foreground lens light that overlaps the arcs, or reconstruct a flexible smooth source, using a sum of Gaussians. An MGE captures changes in shape with radius while solving component brightnesses together. Source examples include flux and magnification measurements.

-

Explore multi gaussian expansion (mge).

+
Shapelets illustration

Shapelets

Study source morphology or flexible foreground light with a sum of spatial basis functions. Shapelets capture structure beyond a simple smooth profile while retaining a compact description of the basis geometry. Inspect the combined light and residuals as you increase flexibility.

+

Explore shapelets.

-

Shapelets

Study source morphology or flexible foreground light with a sum of spatial basis functions. Shapelets capture structure beyond a simple smooth profile while retaining a compact description of the basis geometry. Inspect the combined light and residuals as you increase flexibility.

-

Explore shapelets.

## Model foreground light and neighbours -

Linear Light Profiles

Fit models with many light components using fewer sampled parameters. Component brightnesses are solved together at each likelihood evaluation, leaving the search to explore geometry and lens mass. Useful for lens light, source light and MGE models; solved brightnesses change with the model.

+
+ +
Multi Gaussian Expansion (MGE) illustration

Multi Gaussian Expansion (MGE)

Model foreground lens light that overlaps the arcs using a sum of Gaussians. It can also describe a flexible smooth source. An MGE captures changes in shape with radius while solving component brightnesses together. Source examples include flux and magnification measurements.

+

Explore multi gaussian expansion (mge).

+
+ +
Linear Light Profiles illustration

Linear Light Profiles

Fit models with many light components using fewer sampled parameters. Component brightnesses are solved together at each likelihood evaluation, leaving the search to explore geometry and lens mass. Useful for lens light, source light and MGE models; solved brightnesses change with the model.

Explore linear light profiles.

-

Extra Galaxies

Account for neighbours whose light blends with the arcs or whose gravity changes the lensing. Choose a light model, mass model or both for each companion. Masking its emission does not remove its gravitational effect.

+
Extra Galaxies illustration

Extra Galaxies

Account for neighbours whose light blends with the arcs or whose gravity changes the lensing. Choose a light model, mass model or both for each companion. Masking its emission does not remove its gravitational effect.

Explore extra galaxies.

-

No Lens Light

Fit the lens mass and source when foreground light is negligible or has already been subtracted. The lens still deflects light. For subtracted images, check how residuals and subtraction uncertainty affect the result.

+
No Lens Light illustration

No Lens Light

Fit the lens mass and source when foreground light is negligible or has already been subtracted. The lens still deflects light. For subtracted images, check how residuals and subtraction uncertainty affect the result.

Explore no lens light.

-

Operated Light Profiles

Separate compact emission from extended galaxy light using a component that already includes the imaging PSF response. The surrounding galaxy still receives its appropriate instrumental response. Interferometer examples instead transform the compact sky emission into visibilities.

+
Operated Light Profiles illustration

Operated Light Profiles

Separate compact emission from extended galaxy light using a component that already includes the imaging PSF response. The surrounding galaxy still receives its appropriate instrumental response. Interferometer examples instead transform the compact sky emission into visibilities.

Explore operated light profiles.

-

Sky Background

Fit an uncertain sky level alongside faint lens light and arcs. This helps distinguish galaxy outskirts from residual background, while keeping sky photon noise in the noise model. The example fits a constant level.

+
Sky Background illustration

Sky Background

Fit an uncertain sky level alongside faint lens light and arcs. This helps distinguish galaxy outskirts from residual background, while keeping sky photon noise in the noise model. The example fits a constant level.

Explore sky background.

+
+ **Advanced: ellipse fitting.** Measure foreground-light shape with the [ellipse introduction](https://github.com/PyAutoLabs/autolens_workspace/blob/main/notebooks/imaging/features/advanced/ellipse/start_here.ipynb), then follow the maintained PyAutoGalaxy examples. ## Measure lens mass -

Mass Models

Test how the assumed mass distribution affects the inferred lens and source. Choose total-mass profiles or separate stellar and dark components, and use multipoles to explore departures from elliptical symmetry. Angular structure can otherwise resemble a substructure signal.

+
+ +
Mass models illustration

Mass Models

Test how the assumed mass distribution affects the inferred lens and source. Choose total-mass profiles or separate stellar and dark components, and use multipoles to explore departures from elliptical symmetry. Angular structure can otherwise resemble a substructure signal.

Explore mass models.

-

Stellar + Dark Matter

Measure how stars and dark matter contribute to a lens galaxy’s mass. Combine a stellar component tied to observed light with a separate halo to infer mass-to-light ratios and aperture masses. Lensing measures their combined gravity, so the split depends on the model and priors.

+
Stellar + Dark Matter illustration

Stellar + Dark Matter

Measure how stars and dark matter contribute to a lens galaxy’s mass. Combine a stellar component tied to observed light with a separate halo to infer mass-to-light ratios and aperture masses. Lensing measures their combined gravity, so the split depends on the model and priors.

Explore stellar + dark matter.

-

Scaling Relations

Include a population of companion galaxies without fitting every mass independently. Tie mass normalizations to measured luminosities through a shared relation, while giving influential companions more freedom. The tied masses depend on that population assumption.

+
Scaling Relations illustration

Scaling Relations

Include a population of companion galaxies without fitting every mass independently. Tie mass normalizations to measured luminosities through a shared relation, while giving influential companions more freedom. The tied masses depend on that population assumption.

Explore scaling relations.

-

Multi-Galaxy Lenses, Groups and Clusters

Model systems with several deflectors: multi-galaxy lenses have co-dominant galaxies; groups can include a shared halo; clusters use multiple-image positions from many sources. Choose the scale and observables that match your data.

+
Multi-Galaxy Lenses, Groups and Clusters illustration

Multi-Galaxy Lenses, Groups and Clusters

Model systems with several deflectors: multi-galaxy lenses have co-dominant galaxies; groups can include a shared halo; clusters use multiple-image positions from many sources. Choose the scale and observables that match your data.

Explore multi-galaxy lenses, groups and clusters.

-

Double Source-Plane Lenses

Use two background galaxies at different redshifts to probe lens mass and reconstruct both sources. Their geometry can also constrain cosmological distance ratios. Multi-plane modelling includes the nearer source’s deflection of the farther one; the introductory fit keeps cosmology fixed.

+
Double Source-Plane Lenses illustration

Double Source-Plane Lenses

Use two background galaxies at different redshifts to probe lens mass and reconstruct both sources. Their geometry can also constrain cosmological distance ratios. Multi-plane modelling includes the nearer source’s deflection of the farther one; the introductory fit keeps cosmology fixed.

Explore double source-plane lenses.

-

Weak Lensing

Constrain mass across a wider field using the coherent shape distortions of background galaxies. Fit shear catalogues alone or combine them with central strong-lensing constraints, preserving each dataset’s uncertainties and source-redshift information.

+
Weak Lensing illustration

Weak Lensing

Constrain mass across a wider field using the coherent shape distortions of background galaxies. Fit shear catalogues alone or combine them with central strong-lensing constraints, preserving each dataset’s uncertainties and source-redshift information.

Explore weak lensing.

+
+ ## Probe dark matter and build analyses -

Dark Matter Subhalos

Search for unseen halos through their perturbations to lensed arcs. Compare fits with and without a halo to identify candidates and infer their properties. Check candidates against lens-model flexibility and systematics, then use sensitivity mapping to interpret both detections and non-detections.

+
+ +
Dark Matter Subhalos illustration

Dark Matter Subhalos

Search for unseen halos through their perturbations to lensed arcs. Compare fits with and without a halo to identify candidates and infer their properties. Check candidates against lens-model flexibility and systematics, then use sensitivity mapping to interpret both detections and non-detections.

Explore dark matter subhalos.

Continue to subhalo detection for the search workflow.

-

Line-of-Sight Halos

Simulate the combined effect of a halo population between observer and source. Multi-plane ray tracing includes halos in front of and behind the main lens, providing mock images for dark matter studies and tests of lens-redshift assumptions. These examples generate simulations, not population-inference results.

+
Line-of-Sight Halos illustration

Line-of-Sight Halos

Simulate the combined effect of a halo population between observer and source. Multi-plane ray tracing includes halos in front of and behind the main lens, providing mock images for dark matter studies and tests of lens-redshift assumptions. These examples generate simulations, not population-inference results.

Explore line-of-sight halos.

-

Sensitivity Mapping

Measure which halos your data and modelling procedure could detect. Inject a halo into simulated data, fit with and without it, and repeat across positions or masses. This calibrates non-detections as well as detections; the introductory example uses four positions at one injected mass.

+
Sensitivity Mapping illustration

Sensitivity Mapping

Measure which halos your data and modelling procedure could detect. Inject a halo into simulated data, fit with and without it, and repeat across positions or masses. This calibrates non-detections as well as detections; the introductory example uses four positions at one injected mass.

Explore sensitivity mapping.

-

Potential Correction

Investigate arc residuals by reconstructing small corrections to a smooth lensing potential alongside the source. This gravitational-imaging approach locates candidate mass structure without first choosing a halo profile. A reconstructed feature still needs physical modelling and systematic checks.

+
Potential Correction illustration

Potential Correction

Investigate arc residuals by reconstructing small corrections to a smooth lensing potential alongside the source. This gravitational-imaging approach locates candidate mass structure without first choosing a halo profile. A reconstructed feature still needs physical modelling and systematic checks.

Explore potential correction.

-

Automated Pipelines / SLaM

Build complex lens models through a sequence of simpler fits. The Source, Light and Mass pipelines use earlier results to initialize later searches, progressively refining the source, foreground light and mass model.

+
Automated pipelines slam illustration

Automated Pipelines / SLaM

Build complex lens models through a sequence of simpler fits. The Source, Light and Mass pipelines use earlier results to initialize later searches, progressively refining the source, foreground light and mass model.

Explore automated pipelines / slam.

-

Graphical Models

Study populations of lenses by fitting datasets with shared parameters. Hierarchical models infer a population distribution while retaining an individual model for each lens—for example, a distribution of mass slopes or a common Hubble constant.

+
Graphical models illustration

Graphical Models

Study populations of lenses by fitting datasets with shared parameters. Hierarchical models infer a population distribution while retaining an individual model for each lens—for example, a distribution of mass slopes or a common Hubble constant.

Explore graphical models.

+
+ ## Extend the analysis across observations -

Point Sources

Add flux and time-delay constraints to a point-source lens model, or deblend compact images from foreground light before measuring them.

+
+ +
Point Sources illustration

Point Sources

Add flux and time-delay constraints to a point-source lens model, or deblend compact images from foreground light before measuring them.

Point-source examples.

-

Interferometry

Extend radio and submillimetre modelling with flexible source light, pixelized reconstructions and source-science measurements while fitting the visibilities.

+
Interferometry illustration

Interferometry

Extend radio and submillimetre modelling with flexible source light, pixelized reconstructions and source-science measurements while fitting the visibilities.

Interferometer features.

-

Data Cubes

Map a lensed source across a spectral line by reconstructing each channel with a shared lens model. Each channel keeps its own brightness, sampling and noise. These examples reconstruct emission; a dynamical interpretation needs an additional model.

+
Data Cubes illustration

Data Cubes

Map a lensed source across a spectral line by reconstructing each channel with a shared lens model. Each channel keeps its own brightness, sampling and noise. These examples reconstruct emission; a dynamical interpretation needs an additional model.

Explore data cubes.

-

Multi-Wavelength

Compare stellar, dust and line emission across observations while fitting a shared lens model. Keep each dataset’s brightness distribution, instrumental response and noise distinct; link only the parameters your scientific model shares.

+
Multi-Wavelength illustration

Multi-Wavelength

Compare stellar, dust and line emission across observations while fitting a shared lens model. Keep each dataset’s brightness distribution, instrumental response and noise distinct; link only the parameters your scientific model shares.

Explore multi-wavelength.

+
+

All workspace links

Choose your dataset to browse every feature introduction.

Group · 13 introductions
Imaging · 17 introductions
Interferometer · 12 introductions
Multi dataset · 8 introductions
Multi galaxy · 13 introductions
Point source · 4 introductions
Weak · 1 introductions
\ No newline at end of file