Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions docs/overview/images/overview_3/shapelets_illustration.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Conceptual illustration generated with the built-in image tool, 2026-11-12; maintainer-approved. Not a fitted reconstruction or the exact sum of displayed modes.

Create a striking scientific educational illustration for the PyAutoLens feature named exactly "shapelets". Wide landscape with TWO panels on midnight navy. Minimal text. Main title exactly "shapelets" all lowercase in large clean type. Left panel label only "Basis functions". Show four elegant luminous mathematical basis-function tiles in a compact 2x2 arrangement: a smooth central gaussian, a dipole with one cyan positive lobe and one magenta negative lobe, a quadrupole with alternating cyan/magenta lobes, a circular mode with cyan center and magenta annulus. These are smooth continuous signed fields fading into dark background, not separate physical galaxies. No axes, numbers, colour bars or extra labels. Small subtle plus signs between tiles convey combination, and a single arrow leads toward right panel.
Right panel label only "Source model". Show a large beautiful resolved background galaxy's illustrative reconstructed surface-brightness distribution, viewed near face-on, with a luminous center, asymmetric diffuse light and gently curving broad structures. It should look like smooth light reconstructed from a finite basis, not a sharp photographic spiral full of tiny unresolved stars. Use luminous pale cyan and warm white gold for the physical positive light. NO magenta negative holes in the galaxy, no gravitational ring, no foreground lens, no observer, no puzzle pieces. This panel represents the summed model, not an individual basis function. Artistic astronomical quality with ample negative space, simple composition, readable labels. Footer only "Illustration · Not a fitted reconstruction". Do not add any other text. This is conceptual, not an exact mathematical sum of four modes; avoid equals signs or numerical weights. Make the galaxy the visual focus and clearly distinct from the small mathematical mode tiles.
31 changes: 22 additions & 9 deletions docs/overview/overview_3_features.md
Original file line number Diff line number Diff line change
Expand Up @@ -249,18 +249,31 @@ Checkout `autolens_workspace/notebooks/features/ellipse_fitting.ipynb` to learn

## Shapelets

Shapelets are a set of orthogonal basis functions that can be combined the represent galaxy structures:
Shapelets provide a flexible model of galaxy light beyond a single smooth profile. A key application is
source science: reconstructing the resolved morphology of a background galaxy from its lensed images.
They can also model foreground light and help test how the chosen light representation affects a lens fit.

```{image} https://raw.githubusercontent.com/PyAutoLabs/PyAutoLens/main/docs/overview/images/overview_3/shapelets.png
:alt: Alternative text
:width: 600
```
[Birrer, Amara & Refregier (2015)](https://arxiv.org/abs/1504.07629) demonstrate lens modelling with basis
sets on RX J1131-1231. This illustrates the method rather than a PyAutoLens application.

![Shapelet basis building blocks and an illustrative source model](images/overview_3/shapelets_illustration.png)

*Conceptual illustration, not a fitted reconstruction or the exact sum of the displayed modes.*

Shapelets combine localized mathematical basis functions with linearly solved coefficients. The basis
order, scale and shared geometry control the structures a finite expansion can describe. Signed coefficients
are valid mathematical weights; negative brightness in the combined galaxy model is the physical concern.
Inspect the reconstructed light and residuals together, and test whether added flexibility follows signal
rather than noise.

The existing grid below shows individual polar basis functions. These patterns are mathematical building
blocks, not separate physical components of a galaxy:

Scientific Applications include capturing symmetric structures in a galaxy which are more complex than a Sersic profile,
irregular and asymmetric structures in a galaxy like spiral arms and providing a flexible model to deblend the emission
of point sources (e.g. quasars) from the emission of their host galaxy.
![Individual polar shapelet basis functions](images/overview_3/shapelets.png)

Checkout `autolens_workspace/notebooks/features/shapelets.ipynb` to learn how to use shapelets.
Start with the [feature introduction](https://github.com/PyAutoLabs/autolens_workspace/blob/main/notebooks/imaging/features/advanced/shapelets/start_here.ipynb)
for scientific uses, basis construction, signed coefficients and limitations. The fit.py and modeling.py
examples show fixed-model fits, non-linear fitting, and alternative source and lens-light constructions.

## Operated Light Profiles

Expand Down
Loading